Template:LocBase: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="text-align:center; font-size:0.9em; margin-top:0.5em; margin-bottom:1em">
<div style="text-align:center; font-size:0.9em; margin-top:0.5em; margin-bottom:1em">
'''{{#ifeq:{{#titleparts:{{PAGENAME}}|1|2}}|en|English|[[{{{1}}}|English]]}}'''
 
{{#ifexpr: {{#ifeq:{{FULLPAGENAME}}|{{{1}}}|1|0}} |
  '''English''' |
  [[{{{1}}}|English]]
}} •
[[{{{1}}}/de|Deutsch]] •
[[{{{1}}}/de|Deutsch]] •
[[{{{1}}}/es|Español]] •
[[{{{1}}}/es|Español]] •
Line 10: Line 14:
[[{{{1}}}/ru|Русский]] •
[[{{{1}}}/ru|Русский]] •
[[{{{1}}}/zh-hans|中文(简体)]] •
[[{{{1}}}/zh-hans|中文(简体)]] •
[[{{{1}}}/zh-hant|中文(繁體)]]
[[{{{1}}}/zh-hant|中文(繁體)]]
</div>
</div>
{{#if:{{{2|}}}|{{DISPLAYTITLE:{{{2}}}}}}}
{{#if:{{{2|}}}|{{DISPLAYTITLE:{{{2}}}}}}}

Revision as of 23:06, 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)