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|{{#titleparts:{{PAGENAME}}|1|1}}}}}|description|{{{lang|{{#titleparts:{{PAGENAME}}|1|2}}}}}}}}}}''</includeonly><noinclude> | <includeonly>:''{{{description|{{#invoke:Unit|get|{{{unit|{{#titleparts:{{PAGENAME}}|1|1}}}}}|description|{{{lang|{{#titleparts:{{PAGENAME}}|1|2}}}}}}}}}}''</includeonly><noinclude> | ||
A template for centralized markup management of a unit description section. | |||
===Use=== | ===Use=== | ||
====Automatic==== | ====Automatic==== | ||
| Line 16: | Line 17: | ||
}}</nowiki> | }}</nowiki> | ||
__NOTOC__ | __NOTOC__ | ||
[[Category:Formatting templates]] | |||
Revision as of 17:46, 25 April 2026
A template for centralized markup management of a unit description section.
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=
|lang=
}}
Non-automatic
Allows you to enter the description text completely manually.
{{Unitdesc
|description=
}}


