Template:Unitdesc: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| (24 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>: | <includeonly><div style="border-left: 4px solid #c8b36c; padding-left: 1em; margin: 5px 1em 5px 2em; white-space: pre-wrap;">{{#cargo_query: | ||
tables = | |||
Translation=E, | |||
Translation=T | |||
|join on = | |||
E.target_id = T.target_id | |||
|where = | |||
E.name = "{{{1|{{{name|}}}}}}" | |||
AND E.type = "unit" | |||
AND E.language = "{{{2|{{{lang|en}}}}}}" | |||
AND T.type = "unit" | |||
AND T.language = "{{{2|{{{lang|en}}}}}}" | |||
|fields = | |||
T.description = description | |||
|format | |||
= list | |||
}}</div></includeonly><noinclude> | |||
A template for centralized markup management of a unit description section. | A template for centralized markup management of a unit description section. | ||
===Example=== | |||
<nowiki>{{Unitdesc | |||
|name=phoenix | |||
|lang=ru | |||
}}</nowiki> | |||
{{Unitdesc | |||
|name=Phoenix | |||
|lang=ru | |||
}} | |||
===Use=== | ===Use=== | ||
You must specify the language (language code) and the unit name (in-game name in English). | You must specify the language (language code) and the unit name (in-game name in English). | ||
<nowiki>{{Unitdesc | <nowiki>{</nowiki>{Unitdesc | ||
|unit= | |unit=''Name'' | ||
|lang= | |lang=''Code'' | ||
}} | }} | ||
{{LanguageCodesNote}} | |||
__NOTOC__ | __NOTOC__ | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
Latest revision as of 12:07, 19 July 2026
A template for centralized markup management of a unit description section.
Example
{{Unitdesc
|name=phoenix
|lang=ru
}}
No results
Use
You must specify the language (language code) and the unit name (in-game name in English).
{{Unitdesc
|unit=Name
|lang=Code
}}
The language codes are:
- "en" — for pages in English (pages that are not language subpages)
- "de" — for /de subpages (German)
- "es" — for /es subpages (Spanish)
- "pt-br" — for /pt-br subpages (Portuguese)
- "fr" — for /fr subpages (French)
- "it" — for /it subpages (Italian)
- "ja" — for /ja subpages (Japanese)
- "pl" — for /pl subpages (Polish)
- "ru" — for /ru subpages (Russian)
- "zh-hans" — for /zh-hans subpages (Chinese, Simplified)
- "zh-hant" — for /zh-hant subpages (Chinese, Traditional)


