Jump to content

Join the Fediverse:Style guide: Difference between revisions

m
m (Text replacement - "Internal Link" to "Internal link")
Line 3: Line 3:
==Links==
==Links==


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 inthernal 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.