Template:Unitdesc: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
Editing where selection in cargo query to avoid having multiple times the same string in descriptions |
||
| Line 2: | Line 2: | ||
tables = Translation=unit_t_en, Translation=unit_t | tables = Translation=unit_t_en, Translation=unit_t | ||
|join on = unit_t.target_id = unit_t_en.target_id | |join on = unit_t.target_id = unit_t_en.target_id | ||
|where | |where = unit_t_en.name = '{{{1|{{{name|}}}}}}' AND unit_t_en.type = 'unit' | ||
AND unit_t_en.language = '{{{2|{{{lang|en}}}}}}' | |||
AND unit_t.type = 'unit' AND unit_t.language = '{{{2|{{{lang|en}}}}}}' | |||
|fields = unit_t.description = description | |fields = unit_t.description = description | ||
|format = list | |format = list | ||
Revision as of 15:03, 17 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)


