Template:AbilityMagic: Difference between revisions

From Warma-wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<tr>
<td style="text-align:center; width: 20%;">[[Magic Ability]]</td>
<td  colspan=100% style="text-align:left;">
<table>
<tr>
<td style="text-align:left; width: 100%;">
{{Category:Magic Ability}}
{{#if:{{{sub1|}}}|{{#if:{{{sub1box|}}}| {{Spellbox|{{{sub1}}}}}|<table class="wikitable" style="width: 100%;"><tr><th style="text-align: left; border: 1px solid black;">[[:Category:{{{sub1}}}|{{{sub1}}}]]</th></tr><tr><td>{{Category:{{{sub1}}}|{{{sub1a}}}|{{{sub1b}}}|{{{sub1c}}}|{{{sub1d}}}|{{{sub1e}}} }}</td></tr><tr><td>{{#ifexist: Category:Errata-{{{sub1}}}| {{Category:Errata-{{{sub1}}}}}|No errata for {{{sub1}}} ([[:Category:Errata-{{{sub1}}}|Create]]) }}</td></td></tr></table>}}|}}
{{#if:{{{sub2|}}}|{{#if:{{{sub2box|}}}| {{Spellbox|{{{sub2}}}}}|<table class="wikitable" style="width: 100%;"><tr><th style="text-align: left; border: 1px solid black;">[[:Category:{{{sub2}}}|{{{sub2}}}]]</th></tr><tr><td>{{Category:{{{sub2}}}|{{{sub2a}}}|{{{sub2b}}}|{{{sub2c}}}|{{{sub2d}}}|{{{sub2e}}} }}</td></tr><tr><td>{{#ifexist: Category:Errata-{{{sub2}}}| {{Category:Errata-{{{sub2}}}}}|No errata for {{{sub2}}} ([[:Category:Errata-{{{sub2}}}|Create]]) }}</td></td></tr></table>}}|}}
{{#if:{{{sub3|}}}|{{#if:{{{sub3box|}}}| {{Spellbox|{{{sub3}}}}}|<table class="wikitable" style="width: 100%;"><tr><th style="text-align: left; border: 1px solid black;">[[:Category:{{{sub3}}}|{{{sub3}}}]]</th></tr><tr><td>{{Category:{{{sub3}}}|{{{sub3a}}}|{{{sub3b}}}|{{{sub3c}}}|{{{sub3d}}}|{{{sub3e}}} }}</td></tr><tr><td>{{#ifexist: Category:Errata-{{{sub3}}}| {{Category:Errata-{{{sub3}}}}}|No errata for {{{sub3}}} ([[:Category:Errata-{{{sub3}}}|Create]]) }}</td></td></tr></table>}}|}}
{{#if:{{{sub4|}}}|{{#if:{{{sub4box|}}}| {{Spellbox|{{{sub4}}}}}|<table class="wikitable" style="width: 100%;"><tr><th style="text-align: left; border: 1px solid black;">[[:Category:{{{sub4}}}|{{{sub4}}}]]</th></tr><tr><td>{{Category:{{{sub4}}}|{{{sub4a}}}|{{{sub4b}}}|{{{sub4c}}}|{{{sub4d}}}|{{{sub4e}}} }}</td></tr><tr><td>{{#ifexist: Category:Errata-{{{sub4}}}| {{Category:Errata-{{{sub4}}}}}|No errata for {{{sub4}}} ([[:Category:Errata-{{{sub4}}}|Create]]) }}</td></td></tr></table>}}|}}
{{#if:{{{sub5|}}}|{{#if:{{{sub5box|}}}| {{Spellbox|{{{sub5}}}}}|<table class="wikitable" style="width: 100%;"><tr><th style="text-align: left; border: 1px solid black;">[[:Category:{{{sub5}}}|{{{sub5}}}]]</th></tr><tr><td>{{Category:{{{sub5}}}|{{{sub5a}}}|{{{sub5b}}}|{{{sub5c}}}|{{{sub5d}}}|{{{sub5e}}} }}</td></tr><tr><td>{{#ifexist: Category:Errata-{{{sub5}}}| {{Category:Errata-{{{sub5}}}}}|No errata for {{{sub5}}} ([[:Category:Errata-{{{sub5}}}|Create]]) }}</td></td></tr></table>}}|}}
</td>
</tr></table>
</td></tr>
[[Category:Magic Ability]]
</includeonly>
<noinclude>
<noinclude>
==Purpose==
==Use==
This template allows for embedding actual spell templates within the model advantage block.  
* AbilityMagic: calls the template
* main=Magic Ability: Is not needed. Template assumes it's calling the text for magic ability.
* sub1 through sub5: These are the spells or abilities.
* sub1box=y through sub5box=y: If ommitted, the template wraps the ability in a box. Otherwise, it calls the spellbox template and the spell.
* sub1a through sub5a: If included, passes additional variables to the spell/ability.
<nowiki>{{AbilityMagic|sub1=ExampleSpell|sub1box=y|sub2=ExampleAbility|sub2a=d3}}</nowiki>
 
 


==EXAMPLE==
==EXAMPLE==
<table class="wikitable" style=" width:100%; border-collapse: collapse;">
<table class="wikitable" style=" width:100%; border-collapse: collapse;">
{{AbilityMagic|sp1=Breath Taker|sp1box=no|sp2=Hoarfrost|sp2box=yes|sp3=Winter Storm|sp3box=no}}
{{AbilityMagic|sub1=ExampleSpell|sub1box=y|sub2=ExampleAbility|sub2a=d3}}
 
</table>
</table>
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>
<includeonly><tr><td style="text-align:center; width: 20%;">[[:Category:Magic Ability|Magic Ability]]</td>
<td  colspan=100% style="text-align:left;">
<table>
<tr><td style="text-align:left; width: 100%;">{{Category:Magic Ability}}</td></tr>
{{#if:{{{sp1|}}}|
{{#ifeq:{{{sp1box}}}|no|<tr><td style="text-align:left; width: 100%;">{{Category:{{{sp1}}}}}</td></tr>
{{#ifexist:Category:Errata-{{{sp1}}}|<tr><td>{{Category:Errata-{{{sp1}}}}}</td></tr>|<tr><td>No errata for {{{sp1}}} ([[:Category:Errata-{{{sp1}}}|Create]])</td></tr>}}|{{SpellTable|{{{sp1}}}}} }} |}}
{{#if:{{{sp2|}}}|
{{#ifeq:{{{sp2box}}}|no|<tr><td style="text-align:left; width: 100%;">{{Category:{{{sp2}}}}}</td></tr>
{{#ifexist:Category:Errata-{{{sp2}}}|<tr><td>{{Category:Errata-{{{sp2}}}}}</td></tr>|<tr><td>No errata for {{{sp2}}} ([[:Category:Errata-{{{sp2}}}|Create]])</td></tr>}}|{{SpellTable|{{{sp2}}}}} }} |}}
{{#if:{{{sp3|}}}|
{{#ifeq:{{{sp3box}}}|no|<tr><td style="text-align:left; width: 100%;">{{Category:{{{sp3}}}}}</td></tr>
{{#ifexist:Category:Errata-{{{sp3}}}|<tr><td>{{Category:Errata-{{{sp3}}}}}</td></tr>|<tr><td>No errata for {{{sp3}}} ([[:Category:Errata-{{{sp3}}}|Create]])</td></tr>}}|{{SpellTable|{{{sp3}}}}} }} |}}
{{#if:{{{sp4|}}}|
{{#ifeq:{{{sp4box}}}|no|<tr><td style="text-align:left; width: 100%;">{{Category:{{{sp4}}}}}</td></tr>
{{#ifexist:Category:Errata-{{{sp4}}}|<tr><td>{{Category:Errata-{{{sp4}}}}}</td></tr>|<tr><td>No errata for {{{sp4}}} ([[:Category:Errata-{{{sp4}}}|Create]])</td></tr>}}|{{SpellTable|{{{sp4}}}}} }} |}}
{{#if:{{{sp5|}}}|
{{#ifeq:{{{sp5box}}}|no|<tr><td style="text-align:left; width: 100%;">{{Category:{{{sp5}}}}}</td></tr>
{{#ifexist:Category:Errata-{{{sp5}}}|<tr><td>{{Category:Errata-{{{sp5}}}}}</td></tr>|<tr><td>No errata for {{{sp5}}} ([[:Category:Errata-{{{sp5}}}|Create]])</td></tr>}}|{{SpellTable|{{{sp5}}}}} }} |}}
</table></td></tr></includeonly>

Latest revision as of 20:50, 27 May 2024


Use

  • AbilityMagic: calls the template
  • main=Magic Ability: Is not needed. Template assumes it's calling the text for magic ability.
  • sub1 through sub5: These are the spells or abilities.
  • sub1box=y through sub5box=y: If ommitted, the template wraps the ability in a box. Otherwise, it calls the spellbox template and the spell.
  • sub1a through sub5a: If included, passes additional variables to the spell/ability.

{{AbilityMagic|sub1=ExampleSpell|sub1box=y|sub2=ExampleAbility|sub2a=d3}}


EXAMPLE

Magic Ability

This model can make the following Special Attacks or Special Actions. Doing so counts as casting a spell. If a Cost is listed, the model does not pay that cost. A cost might be listed because the Special Action or Special Attack is also a Spell listed on a Leader model.

If a model uses a Special Action or Special Attack to cast a spell in this manner, they cannot buy additional melee or ranged attacks unless otherwise stated in the spell, because using a Special Action or Special Attack is a Combat Action choice other than using Initial Attacks.


ExampleSpell Cost RNG AOE POW DUR OFF
4 6 - - Upkeep No
Some models gain the following:
ExampleAdvantage:
This is an example of things that has a single option, or multiple options, like a gun mage's gun, or a warp wolf's abilities.
No errata for ExampleAdvantage (Create)
Other things happen.
And some other things happen.
These models gain
ExampleAdvantage:
This is an example of things that has a single option, or multiple options, like a gun mage's gun, or a warp wolf's abilities.
No errata for ExampleAdvantage (Create)
  Errata-ExampleSpell (2024-1-31)
Question: This is where the question goes?
Answer: Yes, and this is a short answer.
Explanation: The quote from the infernal, without interpretation or distillation (as much as possible).
Infernal Ruling: Dark Legacy - PP Community forum
ExampleAbility
This is an example ability.
No errata for ExampleAbility (Create)