Template:UnitsNavBoxLang: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
Redirected page to Template:UnitsNavbox
Tag: New redirect
 
Line 1: Line 1:
<noinclude>
#REDIRECT [[Template:UnitsNavbox]]
 
== Instructions ==
This template automatically selects the correct language version of the "NavBoxFractions" template.
- Provide the `lang` parameter with the language code (e.g., "en", "ru", "de").
- Optionally, provide the `faction` parameter to show only a specific faction.
 
Example usage:
{{UnitsNavBoxLang|faction=Hive}}
{{UnitsNavBoxLang|faction=Temple|lang=ru}}
{{UnitsNavBoxLang|faction=Neutral|lang=es}}
{{UnitsNavBoxLang|lang=zh-hans}}
[[Category:Navbox templates]]
</noinclude><includeonly>
{{clear}}{{#switch: {{{lang|en}}}
  | en = {{NavBoxFractions/en|faction={{{faction|}}}}}
  | ru = {{NavBoxFractions/ru|faction={{{faction|}}}}}
  | de = {{NavBoxFractions/de|faction={{{faction|}}}}}
  | es = {{NavBoxFractions/es|faction={{{faction|}}}}}
  | ja = {{NavBoxFractions/ja|faction={{{faction|}}}}}
  | pl = {{NavBoxFractions/pl|faction={{{faction|}}}}}
  | zh-hans = {{NavBoxFractions/zh-hans|faction={{{faction|}}}}}
  | zh-hant = {{NavBoxFractions/zh-hant|faction={{{faction|}}}}}
  | #default = {{NavBoxFractions/en|faction={{{faction|}}}}}
}}
</includeonly>

Latest revision as of 20:44, 25 April 2026