Template:Unitdesc: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Line 3: Line 3:
===Example===
===Example===
{{Unitdesc
{{Unitdesc
|unit=Angel
|unit=Angel
|lang=en
|lang=en
}}
}}
===Use===
===Use===
====Automatic====
====Automatic====
Based on the page title, the template automatically selects the language and chooses a description from the database.
Based on the page title, the template automatically selects the language and chooses a description from the database.
  <nowiki>{{Unitdesc}}</nowiki>
  <nowiki> {{Unitdesc}}</nowiki>
====Semi-automatic====
====Semi-automatic====
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> {{Unitdesc
|unit=
  |unit=
|lang=
  |lang=
  }}</nowiki>
  }}</nowiki>
====Non-automatic====
====Non-automatic====
Allows you to enter the description text completely manually.
Allows you to enter the description text completely manually.
  <nowiki>{{Unitdesc
  <nowiki> {{Unitdesc
|description=
  |description=
  }}</nowiki>
  }}</nowiki>
__NOTOC__
__NOTOC__
[[Category:Formatting templates]]
[[Category:Formatting templates]]

Revision as of 17:55, 25 April 2026

A template for centralized markup management of a unit description section.

Example

The inquisition’s greatest belief is that angels still accompany their mission. The beings that aid the Templars in combat are but a mere imitation — a human soul willingly fused with winged armor, destined to continue the fight.

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