Template:Unitdesc: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
Created page with "<includeonly>:''{{{description|{{#invoke:Unit|get|{{{unit|{{#titleparts:{{PAGENAME}}|1|1}}}}}|description|{{{lang|{{#titleparts:{{PAGENAME}}|1|2}}}}}}}}}}''</includeonly><noinclude>Category:Formatting templates"
 
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>[[Category:Formatting templates]]
<includeonly>:''{{{description|{{#invoke:Unit|get|{{{unit|{{#titleparts:{{PAGENAME}}|1|1}}}}}|description|{{{lang|{{#titleparts:{{PAGENAME}}|1|2}}}}}}}}}}''</includeonly><noinclude>[[Category:Formatting templates]]
===Use===
====Automatic====
Based on the page title, the template automatically selects the language and chooses a description from the database.
<nowiki>{{Unitdesc}}</nowiki>
====Semi-automatic====
You must specify the language (language code) and the unit name (in-game name in English).
<nowiki>{{Unitdesc
|unit=
|lang=
}}</nowiki>
====Non-automatic====
Allows you to enter the description text completely manually.
<nowiki>{{Unitdesc
|description=
}}</nowiki>
__NOTOC__

Revision as of 17:42, 25 April 2026

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=
 }}