Template:F: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
N (talk | contribs)
Adjusted so that the icon+faction name never get separated into 2 lines by line breaks. Adjusted spacing between icon and name (now there's no space between them). TODO: consider adjusting faction icon height so that it matches font height)
No edit summary
 
(3 intermediate revisions by 2 users not shown)
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: "creatures of the {{F|Temple}} faction, {{F|Necropolis}} faction".
 
</noinclude><includeonly>{{#switch: {{lc:{{{1}}}}}
==Usage==
| human
 
| temple = <span style="white-space: nowrap;">[[File:Temple_icon.png|x30px|link=Temple]]'''[[Temple]]'''</span>
1. Using the internal id:
| undead
 
| necro
{{Color|yellow|Input:}} <code><nowiki>{{F|human}}</nowiki></code>
| necropolis = <span style="white-space: nowrap;">[[File:Necropolis_icon.png|x30px|link=Necropolis]]'''[[Necropolis]]'''</span>
 
| nature
{{Color|lime|Output:}} {{F|human}}
| grove = <span style="white-space: nowrap;">[[File:Grove_icon.png|x30px|link=Grove]]'''[[Grove]]'''</span>
 
| demon
----
| hive = <span style="white-space: nowrap;">[[File:Hive_icon.png|x30px|link=Hive]]'''[[Hive]]'''</span>
 
| unfrozen
2. Using the in-game name:
| schism = <span style="white-space: nowrap;">[[File:Schism_icon.png|x30px|link=Schism]]'''[[Schism]]'''</span>
 
| dungeon = <span style="white-space: nowrap;">[[File:Dungeon_icon.png|x30px|link=Dungeon]]'''[[Dungeon]]'''</span>
{{Color|yellow|Input:}} <code><nowiki>{{F|Temple}}</nowiki></code>
| <span style="white-space: nowrap;">[[File:{{{1}}}_icon.png|x30px|link={{{1}}}]]'''[[{{{1}}}]]'''</span>
 
}}</includeonly>
{{Color|lime|Output:}} {{F|Temple}}
 
----
 
3. Japanese:
 
{{Color|yellow|Input:}} <code><nowiki>{{F|human|ja}}</nowiki></code>
 
{{Color|lime|Output:}} {{F|human|ja}}
 
----
 
4. Neutral:
 
{{Color|yellow|Input:}} <code><nowiki>{{F|neutral}}</nowiki></code>
 
{{Color|lime|Output:}} {{F|neutral}}
 
----
 
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