Template:Ability: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
GKP light (talk | contribs)
Created page with "<onlyinclude>{{#switch:{{{1|}}} |Flying = <span style="color: #b88a2e; font-weight: 500;" title="Movement ignores obstacles and traps">24px Flying{{#if:{{{text|}}}| ∶ Movement ignores obstacles and traps|}}</span> |Magic immunity V = <span style="color: #b88a2e; font-weight: 500;" title="Immune to tier-5 or lower spells and creature's abilities.">24px Magic immunity V{{#if:{{{text|}}}|..."
 
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<onlyinclude>{{#switch:{{{1|}}}
<onlyinclude>{{#switch:{{{1|}}}
|Flying              = <span style="color: #b88a2e; font-weight: 500;" title="Movement ignores obstacles and traps">[[File:Ability_Flying.png|24px]] Flying{{#if:{{{text|}}}| ∶ Movement ignores obstacles and traps|}}</span>
|Flying              = <span style="color: #b88a2e; font-weight: 500;" title="Movement ignores obstacles and traps">[[File:Ability_Flying.png|24px]] Flying{{#if:{{{text|}}}| ∶ Movement ignores obstacles and traps.|}}</span>
|Magic immunity V    = <span style="color: #b88a2e; font-weight: 500;" title="Immune to tier-5 or lower spells and creature's abilities.">[[File:Ability_Magic_immunity_v.png|24px]] Magic immunity V{{#if:{{{text|}}}| ∶ Immune to tier-5 or lower spells and creature's abilities.|}}</span>
|Magic immunity V    = <span style="color: #b88a2e; font-weight: 500;" title="Immune to tier-5 or lower spells and creature's abilities">[[File:Ability_Magic_immunity_v.png|24px]] Magic immunity V{{#if:{{{text|}}}| ∶ Immune to tier-5 or lower spells and creature's abilities.|}}</span>
}}</onlyinclude><noinclude>
}}</onlyinclude><noinclude>
Warning, the "∶" use in this template is not a normal ":" (it is the "ratio" math symbol), to not interfere with the code of the template. to add things, you need to copy-past it.
Warning, the "∶" use in this template is not a normal ":" (it is the "ratio" math symbol), to not interfere with the code of the template. to add things, you need to copy-past it.


<code>some text ; <code>{{Ability|Flying}}</code> ; some text</code> <br>
<code><nowiki>{{Ability|Flying}}</nowiki></code> <br>
some text ; {{Ability|Flying}} ; some text
{{Ability|Flying}}


<code><nowiki>aaaa {{Ability|Magic immunity V|text=true}} cccc</nowiki></code> <br>
<code><nowiki>{{Ability|Flying|text=true}}</nowiki></code> <br>
aaaa {{Ability|Magic immunity V|text=true}} cccc
{{Ability|Flying|text=true}}
 
<code><nowiki>test {{Ability|Magic immunity V|text=true}} test</nowiki></code> <br>
test {{Ability|Magic immunity V|text=true}} test
[[Category:Formatting templates]]
</noinclude>
</noinclude>

Latest revision as of 19:48, 21 October 2025

Warning, the "∶" use in this template is not a normal ":" (it is the "ratio" math symbol), to not interfere with the code of the template. to add things, you need to copy-past it.

{{Ability|Flying}}
Flying

{{Ability|Flying|text=true}}
Flying∶ Movement ignores obstacles and traps.

test {{Ability|Magic immunity V|text=true}} test
test Magic immunity V∶ Immune to tier-5 or lower spells and creature's abilities. test