Jump to content

Join the Fediverse:Style guide: Difference between revisions

m
no edit summary
m (Text replacement - "What is Mastodon?" to "Mastodon")
mNo edit summary
Line 5: Line 5:
Generally on wikis that use the Mediawiki software (like e.g. Wikipedia) you create external links like this: {{Ic|<nowiki>[https://wikipedia.org Wikipedia]</nowiki>}} and internal links like this {{Ic|<nowiki>[[Main Page|link to main page]]</nowiki>}}. So in both cases the link comes first, but with internal links that's just the name of the article. Then comes the text that should be displayed.<br>
Generally on wikis that use the Mediawiki software (like e.g. Wikipedia) you create external links like this: {{Ic|<nowiki>[https://wikipedia.org Wikipedia]</nowiki>}} and internal links like this {{Ic|<nowiki>[[Main Page|link to main page]]</nowiki>}}. So in both cases the link comes first, but with internal links that's just the name of the article. Then comes the text that should be displayed.<br>
But we do internal links differently. See [[Project:Template_guide#Internal_links]].<br>
But we do internal links differently. See [[Project:Template_guide#Internal_links]].<br>
We use {{Ic|<nowiki>{{Internal link |target=Main Page |link-name=link to main page]]</nowiki>}}. This allows the link also to work on translated pages.
We use {{Ic|<nowiki>{{Internal link |target=Main Page |link-name=link to main page}}</nowiki>}}. This allows the link also to work on translated pages.<br>
If the link name should be identical to the target page's title, then you can simply use {{Ic|<nowiki>{{Internal link |target=Main Page}}</nowiki>}}


Each subject mentioned in an article should be linked to the first time it is mentioned. If that would result in a text with lots and lots of links, then just link the articles that are really relevant.<br>
Each subject mentioned in an article should be linked to the first time it is mentioned. If that would result in a text with lots and lots of links, then just link the articles that are really relevant.<br>
And we should usually link to basic guides/articles about the page, so e.g. if an article mentions the {{Internal link |target=Fediverse |link-name=Fediverse}} we create a link like this {{Ic|<nowiki>{{Internal link |target=Fediverse |link-name=Fediverse}}</nowiki>}}.<br>
Only if the advanced article (if even two articles exist) is more relevant we link e.g. to {{Internal link |target=Hubzilla |link-name=Hubzilla}} instead of {{Internal link |target=What is Hubzilla? |link-name=What is Hubzilla?}}.


==Categories==
==Categories==