Jump to content

Join the Fediverse:Template guide: Difference between revisions

m
Text replacement - "LangSwiInd" to "Language switch"
m (Text replacement - "Infobox App" to "Infobox app")
m (Text replacement - "LangSwiInd" to "Language switch")
Tags: Mobile edit Mobile web edit
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 85: Line 85:
Generally these are mostly used for tables that float on the right side of an article and display basic info about the subject of the article.
Generally these are mostly used for tables that float on the right side of an article and display basic info about the subject of the article.


For pages that are being or should be translated: Add {{Ic|<nowiki>{{LangSwiInd}}</nowiki>}} within the template prompt, so e.g. {{Ic|<nowiki>{{Infobox app{{LangSwiInd}}}}</nowiki>}} and don't put the infobox within {{Ic|<nowiki><translate></translate></nowiki>}} tags. This way they will automatically be translated.
For pages that are being or should be translated: Add {{Ic|<nowiki>{{Language switch}}</nowiki>}} within the template prompt, so e.g. {{Ic|<nowiki>{{Infobox app{{Language switch}}}}</nowiki>}} and don't put the infobox within {{Ic|<nowiki><translate></translate></nowiki>}} tags. This way they will automatically be translated.


{|class="wikitable"
{|class="wikitable"