Template:LanguageBar/doc: Difference between revisions
Jump to navigation
Jump to search

Note:English is the default language and English pages don't need language prefix.
Note:If you encounter {{lang}}, {{langsp}}, {{language subpage}} on pages rewrite them to use LanguageBar. Internally they were edited to use LanguageBar only remaining step is just rewriting them on the used pages. See categories Category:TODO rewrite lang to LanguageBar and Category:TODO rewrite langsp to LanguageBar
Important:LanguageBar should be used only on main, Category, Help and Valve Developer Community namespaces. Other namespaces don't use prefixes
(multipage info not needed) |
No edit summary |
||
Line 1: | Line 1: | ||
{{Doc/subpage}} | {{Doc/subpage}} | ||
This template create a language bar | This template create a language bar that's shown on the upper right corner of the page. The language of a page is determined by language prefixes (like {{Code|Zh/}}, {{Code|Ru/}}, etc) instead of interface language. {{Note|English is the default language and English pages don't need language prefix.}} | ||
== Parameters and Examples == | == Parameters and Examples == | ||
Line 14: | Line 14: | ||
|- | |- | ||
|} | |} | ||
{{Note|If you encounter {{T|lang}}, {{T|langsp}}, {{T|language subpage}} on pages rewrite them to use LanguageBar. Internally they were edited to use LanguageBar only remaining step is just rewriting them on the used pages. See categories [[:Category:TODO rewrite lang to LanguageBar]] and [[:Category:TODO rewrite langsp to LanguageBar]] }} | {{Note|If you encounter {{T|lang}}, {{T|langsp}}, {{T|language subpage}} on pages rewrite them to use LanguageBar. Internally they were edited to use LanguageBar only remaining step is just rewriting them on the used pages. See categories [[:Category:TODO rewrite lang to LanguageBar]] and [[:Category:TODO rewrite langsp to LanguageBar]] }} | ||
{{important|LanguageBar should be used only on main, Category, Help and Valve Developer Community namespaces. Other namespaces don't use prefixes}} | |||
== See Also == | |||
* {{T|L}} | |||
* {{T|Language}} |
Revision as of 12:18, 14 August 2024

This is a documentation subpage for Template:LanguageBar.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
This template create a language bar that's shown on the upper right corner of the page. The language of a page is determined by language prefixes (like Zh/, Ru/, etc) instead of interface language.

Parameters and Examples
Parameter | Description | Example |
---|---|---|
No Parameters | Check for various language translations for this page and create flags for them. | |
{{{title}}} | Allows you to change the title of a page. | |
{{{_}}} | If title param is not used and not in Category namespace then SUBPAGENAME is automatically set as title which doesn't have underscores. Setting this parameter keeps the underscores. |

