Template:LocBase: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
Created page with "<includeonly> {{Loc | {{LocSwitch | en = {{{1}}} | ru = {{{1}}}/ru | de = {{{1}}}/de | es = {{{1}}}/es | it = {{{1}}}/it | pl = {{{1}}}/pl | ja = {{{1}}}/ja | pt-br = {{{1}}}/pt-br | zh-hans = {{{1}}}/zh-hans | zh-hant = {{{1}}}/zh-hant }} | {{{2|}}} }} </includeonly><noinclude> ===Usage=== Short version of <code>{{Loc}}</code> when your base English page name is known. Example: <pre> {{LocBase|Heroes|Герои}} </pre> * The first parameter — E..."
 
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{Loc
{{#invoke:LangSwitcher|render|{{{1}}}}}
| {{LocSwitch
{{#if:{{{2|}}}|{{DISPLAYTITLE:{{{2}}}}}}}
  | en = {{{1}}}
  | ru = {{{1}}}/ru
  | de = {{{1}}}/de
  | es = {{{1}}}/es
  | it = {{{1}}}/it
  | pl = {{{1}}}/pl
  | ja = {{{1}}}/ja
  | pt-br = {{{1}}}/pt-br
  | zh-hans = {{{1}}}/zh-hans
  | zh-hant = {{{1}}}/zh-hant
}}
| {{{2|}}}
}}
</includeonly><noinclude>
</includeonly><noinclude>
===Usage===
===Usage===

Revision as of 22:57, 3 November 2025

Usage

Short version of

when your base English page name is known.

Example:

{{LocBase|Heroes|Герои}}
  • The first parameter — English base page name (without /lang)
  • The second (optional) — localized display title (sets page title if on a /lang page)