Template:F: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
N (talk | contribs)
No edit summary
No edit summary
 
Line 1: Line 1:
<noinclude>
<includeonly><!--
-->{{#switch: {{lc:{{{1}}}}}
| human
| temple = {{LinkIcon|type=faction|id=human|suffix=_icon.png|lang={{{2|en}}}|color={{{color|}}}}}
| undead
| necro
| necropolis = {{LinkIcon|type=faction|id=undead|suffix=_icon.png|lang={{{2|en}}}|color={{{color|}}}}}
| nature
| grove = {{LinkIcon|type=faction|id=nature|suffix=_icon.png|lang={{{2|en}}}|color={{{color|}}}}}
| demon
| hive = {{LinkIcon|type=faction|id=demon|suffix=_icon.png|lang={{{2|en}}}|color={{{color|}}}}}
| unfrozen
| schism = {{LinkIcon|type=faction|id=unfrozen|suffix=_icon.png|lang={{{2|en}}}|color={{{color|}}}}}
| dungeon = {{LinkIcon|type=faction|id=dungeon|suffix=_icon.png|lang={{{2|en}}}|color={{{color|}}}}}
| neutral
| #default = {{LinkIcon
    | id = wiki_units_neutral
    | filename = Primordial_Chaos.png
    | size = 24px
    | link = Neutral_Units
    | lang = {{{2|en}}}
    | color = {{{color|}}}
    }}
}}</includeonly><!--
####################################################################
--><noinclude>
Use this template to get a quick and easy reference to any faction, using either the internal or in-game names for those factions.
Use this template to get a quick and easy reference to any faction, using either the internal or in-game names for those factions.
The icon is sized to work inline.
These are sized to work inline:


<pre><nowiki>"creatures of the {{F|Temple}} faction".</nowiki></pre>
==Usage==


"creatures of the {{F|Temple}} faction".
1. Using the internal id:


{{Color|yellow|Input:}} <code><nowiki>{{F|human}}</nowiki></code>


<pre><nowiki>"creatures of the {{F|Temple|pl}} faction".</nowiki></pre>
{{Color|lime|Output:}} {{F|human}}


"creatures of the {{F|Temple|pl}} faction".
----


Custom link colors are supported:
2. Using the in-game name:


<pre><nowiki>"creatures of the {{F|Temple|color=yellow}} faction".</nowiki></pre>
{{Color|yellow|Input:}} <code><nowiki>{{F|Temple}}</nowiki></code>


"creatures of the {{F|Temple|color=yellow}} faction".
{{Color|lime|Output:}} {{F|Temple}}


----


</noinclude><includeonly>{{#switch: {{lc:{{{1}}}}}
3. Japanese:
| human
 
| temple = {{LinkIcon|type=faction|id=human|suffix=_icon.png|lang={{{2|en}}}|color={{{color|}}}}}
{{Color|yellow|Input:}} <code><nowiki>{{F|human|ja}}</nowiki></code>
| undead
 
| necro
{{Color|lime|Output:}} {{F|human|ja}}
| necropolis = {{LinkIcon|type=faction|id=undead|suffix=_icon.png|lang={{{2|en}}}|color={{{color|}}}}}
 
| nature
----
| grove = {{LinkIcon|type=faction|id=nature|suffix=_icon.png|lang={{{2|en}}}|color={{{color|}}}}}
 
| demon
4. Neutral:
| hive = {{LinkIcon|type=faction|id=demon|suffix=_icon.png|lang={{{2|en}}}|color={{{color|}}}}}
 
| unfrozen
{{Color|yellow|Input:}} <code><nowiki>{{F|neutral}}</nowiki></code>
| schism = {{LinkIcon|type=faction|id=unfrozen|suffix=_icon.png|lang={{{2|en}}}|color={{{color|}}}}}
 
| dungeon = {{LinkIcon|type=faction|id=dungeon|suffix=_icon.png|lang={{{2|en}}}|color={{{color|}}}}}
{{Color|lime|Output:}} {{F|neutral}}
| {{LinkIcon|type=faction|id={{{1}}}|suffix=_icon.png|lang={{{2|en}}}|color={{{color|}}}}}
 
}}</includeonly>
----
 
5. Unknown faction:
 
{{Color|yellow|Input:}} <code><nowiki>{{F|foo}}</nowiki></code>
 
{{Color|lime|Output:}} {{F|foo}}
 
----
 
6. With custom {{b|color}}:
 
{{Color|yellow|Input:}} <code><nowiki>{{F|demon|color=magenta}}</nowiki></code>
 
{{Color|lime|Output:}} {{F|demon|color=magenta}}
 
</noinclude>

Latest revision as of 05:07, 17 July 2026

Use this template to get a quick and easy reference to any faction, using either the internal or in-game names for those factions. The icon is sized to work inline.

Usage

1. Using the internal id:

Input: {{F|human}}

Output: Temple


2. Using the in-game name:

Input: {{F|Temple}}

Output: Temple


3. Japanese:

Input: {{F|human|ja}}

Output: テンプル


4. Neutral:

Input: {{F|neutral}}

Output: Neutral


5. Unknown faction:

Input: {{F|foo}}

Output: Neutral


6. With custom color:

Input: {{F|demon|color=magenta}}

Output: Hive