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
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>
{{loc|link={{{1}}}/ru}}<noinclude>[[Category:Utility templates]]
{{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 — English base page name (without /lang)
* The second (optional) — localized display title (sets page title if on a /lang page)
[[Category:Templates]]
</noinclude>

Latest revision as of 11:17, 25 April 2026

[[{{{1}}}|English]] • [[{{{1}}}/pl|Polski]] • [[{{{1}}}/ru|Русский]] • [[{{{1}}}/fr|Français]] • [[{{{1}}}/ja|日本語]] • [[{{{1}}}/zh-hans|中文(简体)]]