Master of Magic Wiki
Register
Advertisement

This is an explanation (and list) of all icon templates used on this wiki. Each template produces a certain icon, possibly followed by additional text in a Bold White Font (or simply a Bold Font on the mobile wikia skin).

The meaning of each icon is discussed in more detail in the Icon Glossary article, this page is oriented more towards how the Icon Templates are actually used. However, each icon displayed by these templates is clickable by the reader, and will generally redirect them to the appropriate page on the wiki (provided there is a relevant article explaining the concept).

Syntax[]

To display an icon and corresponding text in an article, a "template call" must be inserted into the article text at the right position (where the icon needs to appear).

A "template call" looks something like this:

{{Template_Name[| Switch (optional)] [| Text (optional)]}}

The Template_Name determines which template the wiki should use, which, in turn, defines the icon that will be displayed. Some templates represent a collection of icons with similar meanings, in which case a switch parameter can be used to specify the individual icon to display. However, nearly all of these templates have default values, and can thus be used with no parameters whatsoever. This will only insert the corresponding icon into the article text. Some examples are illustrated in the table below:

This code: Results in:
{{Arcane}}
Icon Arcane
{{Research}}
Icon Research
{{Melee}}
Icon Melee Normal
{{Movement}}
Icon Movement Ground

To pass parameters to the template, they need to be included inside the double braces and separated from the Template_Name by the pipeline character: | . The simplest case of this would be a template call with a single switch parameter. This can be used by itself (i.e. with no further parameters) to display only an icon from a group that otherwise shows a different one by default:

This code: Results in:
{{ExpLevel|Veteran}}
Icon ExpLevel 2
{{Ranged|Boulder}}
Icon Ranged Boulder
{{Breath|Lightning}}
Icon Breath Lightning

Those familiar with the MediaWiki template syntax may note that these switch parameters are anonymous rather than named, and are used based on their sequence. That is, the first parameter passed to these templates will always be interpreted as the switch parameter, if applicable. If this first parameter does not match any of the pre-defined switch strings, there will be no icon switching, and the parameter will be used as text to be highlighted instead (using the default icon in the group):

This code: Results in:
{{Melee|Mithral}}
Icon Melee Normal Mithral
{{Ranged|Arrows}}
Icon Ranged Bow Arrows

A full list of the usable switch parameters can be found in the tables below, and also on the individual template pages.

Adding text to a single icon (i.e. non-switching) template is accomplished in a similar manner, just like adding text to the default version of a switchable template. This text will always follow the icon in a bold white font or, in the case of magical Realm icons, a font color matching that of the Realm in question. Because the mobile wikia skin doesn't support font colors the way that desktop skins do, the template text on this skin will instead appear with a simple bold highlight.

This code: Results in:
{{Gold|Gold}}
Icon Gold Gold
{{Production|2000}}
Icon Production 2,000
{{Save|-3}}
Icon SpellSave -3
{{Life|Life Realm}}
Icon LifeLife Realm

Finally, some templates can take two parameters, such as a switch and some text. In this case, the parameters need to be separated from each other by another pipeline ( | ) character:

This code: Results in:
{{Ranged|Missile|Bow & Arrows}}
Icon Ranged Bow Bow & Arrows
{{Movement|Flying|4}}
Icon Movement Air4
{{Melee|Magic|Magic Weapons}}
Icon Melee Magic Magic Weapons
{{ExpLevel|Ultra-Elite|Ultra-Elite}}
Icon ExpLevel 4 Ultra-Elite

Inserting an invalid switch parameter into the template will cause any further parameters to be ignored, as is also the case if the template is called with more parameters than what it requires:

This code: Results in:
{{Melee|Mithral|Mithral Weapons}}
Icon Melee Normal Mithral
{{Ranged|Magic|2|3|4|5}}
Icon Ranged Magic 2

There are also two icon template types that, while not switching, take an additional parameter besides a text one. The first of these are the various magical Realm icons, which can take an extra named parameter called "link" to specify an article that their text will redirect to when clicked. As this is a named parameter, it needs to be passed to the template using an equals sign:

This code: Results in:
{{Sorcery|link = Spell Ward|Chaos Ward}}
Icon SorceryChaos Ward
{{Nature|Nature Aura|link = Nature Node#Combat in a Nature Node}}
Icon NatureNature Aura

If the text that is to be highlighted matches the name of the page to be linked, then there is no need to duplicate it in the template call. Using a single "link" parameter will automatically substitute the text with the name of the linked page:

This code: Results in:
{{Life|link = Consecration}}
Icon LifeConsecration
{{Chaos|link = Chaos Node}}
Icon ChaosChaos Node
{{Death|link = Death}}
Icon DeathDeath

The other template that takes more than one parameter is the Moves template, that can be used to illustrate the various combinations of overland Movement Types that a stack of units can have. Instead of a switch, this template takes a series of pre-defined string variables (separated by commas if more than one) as its first parameter:

This code: Results in:
{{Moves|fly|2}}
Move Flying 2
{{Moves|for,g|Forester}}
Move ForesterMove Boot Forester
{{Moves|ww,pf|Magic Spirit}}
Move SwimmingMove Pathfinding Magic Spirit



Editor's note: Although thematically infoicons, all of the Icon Templates listed here are currently of the Data Template type. This is because the mobile wikia skin (Mercury) removes all text when displaying the infoicon type (in addition to its general stripping of styling), which is counterproductive to the purpose of using these templates in most of our articles. Until such a time that this behaviour is changed, please refrain from changing the types of these templates.

List of Icon Templates[]

Icon Concept Template Switches
Icon Life Life {{Life|Text}}
Icon Nature Nature {{Nature|Text}}
Icon Sorcery Sorcery {{Sorcery|Text}}
Icon Chaos Chaos {{Chaos|Text}}
Icon Death Death {{Death|Text}}
Icon Arcane Arcane {{Arcane|Text}}
Icon Food Food {{Food|Text}}
Icon Gold Gold {{Gold|Text}}
Icon Production Production {{Production|Text}}
Icon Power Power {{Power|Text}}
Icon Mana Mana {{Mana|Text}}
Icon Research Research Points {{Research|Text}}
Icon Fame Fame {{Fame|Text}}
Icon Movement Ground Icon Movement Water Icon Movement Air Icon Movement Sailing Movement Type {{Movement|Switch|Text}}
  • g, ground, walk, walking: Icon Movement GroundWalking
  • swim, swimming, w, water: Icon Movement WaterSwimming
  • a, air, f, flight, fly, flying: Icon Movement AirFlying
  • s, sail, sailing, ship: Icon Movement SailingSailing
  • default: Icon Movement Ground Ground Movement
Move Boot Move Swimming Move Flying Move Sailing
Move Forester Move Mountaineer Move Pathfinding Move Astral
Stack Movement {{Moves|Variable(s)|Text}}
  • g: Move Boot Walk
  • ww: Move Swimming Swim
  • fly: Move Flying Fly
  • s: Move Sailing Sail
  • for: Move Forester Forester
  • mtn: Move Mountaineer Mountaineer
  • pf: Move Pathfinding Pathfinding
  • ps: Move Astral Plane Shift
Icon Melee Normal Icon Melee Magic Icon Melee Mithril Icon Melee Adamantium Melee Attack {{Melee|Switch|Text}}
  • Normal: Icon Melee Normal Normal Weapon
  • Magic: Icon Melee Magic Magic Weapon
  • Mithril: Icon Melee Mithril Mithril Weapon
  • Adamantium: Icon Melee Adamantium Adamantium Weapon
  • default: Icon Melee Normal Normal Weapon
Icon Ranged Bow Icon Ranged Magic Icon Ranged Boulder Ranged Attack {{Ranged|Switch|Text}}
  • General: Icon Ranged Bow Ranged Attack
  • a, arrow, b, bow, missile: Icon Ranged Bow Ranged Missile Attack
  • m, magic, spell: Icon Ranged Magic Ranged Magic Attack
  • boulder, r, rock: Icon Ranged Boulder Ranged Boulder Attack
  • Sling: Icon Ranged Boulder Ranged Missile Attack
  • default: Icon Ranged Bow Ranged Attack
Icon Breath Icon Breath Lightning Breath Attack {{Breath|Switch|Text}}
  • f, fire: Icon Breath Fire Breath Attack
  • l, lightning: Icon Breath Lightning Lightning Breath Attack
  • default: Icon Breath Breath Attack
Icon Thrown Thrown Attack {{Thrown|Text}}
Icon ToHit To Hit {{To Hit|Text}}
Icon Defense Defense {{Defense|Text}}
Icon ToBlock To Block {{To Block|Text}}
Icon Resist Resistance {{Resist|Text}}
Icon Hits Hit Points {{Hits|Text}}
Icon Damage Damage Points {{Damage|Text}}
Icon SpellSave Spell Save {{Save|Text}}
Icon Experience Experience {{Exp|Text}}
Icon Experience Level Experience Level {{ExpLevel|Switch|Text}}
  • 1, recruit, hero: Icon ExpLevel 0 1st Level
  • 2, regular, myrmidon: Icon ExpLevel 1 2nd Level
  • 3, veteran, captain: Icon ExpLevel 2 3rd Level
  • 4, elite, commander: Icon ExpLevel 3 4th Level
  • 5, ultra-elite, championhero: Icon ExpLevel 4 5th Level
  • 6, championunit, lord: Icon ExpLevel 5 6th Level
  • 7, grand lord: Icon ExpLevel 6 7th Level
  • 8, super hero: Icon ExpLevel 7 8th Level
  • 9, demi-god: Icon ExpLevel 8 9th Level
  • default: Icon Experience Level Experience Level
Icon Figure Figure {{Figure|Text}}
Icon SingleFigureUnit Single-Figure Unit {{SFU|Text}}
Icon MultiFigureUnit Multi-Figure Unit {{MFU|Text}}
Advertisement