Join the Fediverse:Template guide: Difference between revisions

m
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 47: Line 47:
====Internal links====
====Internal links====


For internal links, instead of e.g. {{ic|<nowiki>[[Main Page]]</nowiki>}} to link to the [[Main Page]] we use {{ic|<nowiki>{{Internal Link |target=Main Page |link-name=Main Page}}</nowiki>}}.
For internal links, instead of e.g. {{ic|<nowiki>[[Main Page]]</nowiki>}} to link to the [[Main Page]] we use {{ic|<nowiki>{{Internal link |target=Main Page |link-name=Main Page}}</nowiki>}}.


====Categories====
====Categories====
Line 65: Line 65:
Many pages display a navbar on the bottom, but not in mobile view. To add this to the page just put {{Ic|<nowiki>{{Navbar}}</nowiki>}} on the bottom of the page. If it's a page about a software project, e.g. Mastodon, then use e.g. {{Ic|<nowiki>{{Navbar/Mastodon}}</nowiki>}} instead.
Many pages display a navbar on the bottom, but not in mobile view. To add this to the page just put {{Ic|<nowiki>{{Navbar}}</nowiki>}} on the bottom of the page. If it's a page about a software project, e.g. Mastodon, then use e.g. {{Ic|<nowiki>{{Navbar/Mastodon}}</nowiki>}} instead.


====LangSwiInd====
====Language switch====


This one is rarely needed for basic editing. It simply puts a slash followed by the language code in the text. So e.g. /en, /de, /ja, /he, ...<br>
This one is rarely needed for basic editing. It simply puts a slash followed by the language code in the text. So e.g. /en, /de, /ja, /he, ...<br>
To use it simply put {{Ic|<nowiki>{{LangSwiInd}}</nowiki>}} in the code.
To use it simply put {{Ic|<nowiki>{{Language switch}}</nowiki>}} in the code.


===Content templates===
===Content templates===
Line 98: Line 98:
|Same.
|Same.
|-
|-
|{{ic|<nowiki>{{Infobox App}}</nowiki>}}
|{{ic|<nowiki>{{Infobox app}}</nowiki>}}
|Use in [[:Category:Apps]] articles.
|Use in [[:Category:Apps]] articles.
|Same as above: On the very top of the article except articles with translate tags.
|Same as above: On the very top of the article except articles with translate tags.
|-
|-
|{{ic|<nowiki>{{Infobox App short}}</nowiki>}}
|{{ic|<nowiki>{{Infobox app short}}</nowiki>}}
|Same, if there are no media files for the app uploaded yet.
|Same, if there are no media files for the app uploaded yet.
|Same.
|Same.
Line 118: Line 118:
|Same.
|Same.
|-
|-
|{{ic|<nowiki>{{Infobox Platform}}</nowiki>}}
|{{ic|<nowiki>{{Infobox platform}}</nowiki>}}
|Use on a Fediverse project's advanced page.
|Use on a Fediverse project's advanced page.
|This template is more complicated, use only if you are an experienced template editor
|This template is more complicated, use only if you are an experienced template editor