Template:Unitdesc: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>:{{{description|{{#invoke:Unit|get|{{{unit|{{{1|{{#titleparts:{{PAGENAME}}|1|1}}}}}}}}|description|{{{lang|{{#titleparts:{{PAGENAME}}|1|2}}}}}}}}}}</includeonly><noinclude> | <includeonly><div style="border-left: 4px solid #e0e0e0; padding-left: 1em; margin: 5px 1em 5px 4em; white-space: pre-wrap;">{{{description|{{#invoke:Unit|get|{{{unit|{{{1|{{#titleparts:{{PAGENAME}}|1|1}}}}}}}}|description|{{{lang|{{{2|{{#titleparts:{{PAGENAME}}|1|2}}}}}}}}}}}}}</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=== | ===Example=== | ||
| Line 19: | Line 19: | ||
<nowiki>{</nowiki>{Unitdesc | <nowiki>{</nowiki>{Unitdesc | ||
|''Name'' | |''Name'' | ||
| | |''Code'' | ||
}} | }} | ||
{{LanguageCodesNote}} | {{LanguageCodesNote}} | ||
Revision as of 01:20, 8 May 2026
A template for centralized markup management of a unit description section.
Example
Phoenixes are not native to Jadame but travelers who entered the land willingly. Nesting deep within the forest, they display remarkable intelligence.
It is said that a single spark of flame is enough to bring them back to life.
It is said that a single spark of flame is enough to bring them back to life.
Use
Automatic
Based on the page title, the template automatically selects the language and chooses a description from the database.
{{Unitdesc}}
Semi-automatic
You must specify the language (language code) and the unit name (in-game name in English).
{{Unitdesc
|unit=Name
|lang=Code
}}
OR
{{Unitdesc
|Name
|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)
Non-automatic
Allows you to enter the description text completely manually.
{{Unitdesc
|description=
}}


