Template:AbilityMagic: Difference between revisions

From Warma-wiki
Jump to navigation Jump to search
m (Undo revision 12803 by Disgruntled-tom (talk))
Tag: Undo
mNo edit summary
 
(6 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
Use: <nowiki>{{AbilityMagic|sp1=ExampleAdvantage|sp2=ExampleSpell|sp2box=y|sp3=ExampleAdvantage}}</nowiki>
* 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;">{{AbilityMagic|sp1=ExampleAdvantage|sp2=ExampleSpell|sp2box=y|sp3=ExampleAdvantage}}</table>
<table class="wikitable" style=" width:100%; border-collapse: collapse;">
{{AbilityMagic|sub1=ExampleSpell|sub1box=y|sub2=ExampleAbility|sub2a=d3}}
</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%>{{Category:Magic Ability}}<table class="wikitable" style="border-style:solid; width:100%; border-collapse:collapse;">{{#if:{{{sp1|}}}|<tr><td colspan=100%><b>{{{sp1}}}:</b>{{Category:{{{sp1}}}}}</td></tr>{{#if:{{{sp1box|}}}||<tr><td colspan=100%>{{#ifExist:[[Category:Errata-{{{sp1}}}]]|{{Category:Errata-{{{sp1}}}}}</td></tr>|&nbsp;&nbsp;&nbsp;No errata for {{{sp1}}} ([[:Category:Errata-{{{sp1}}}|Create]])</td></tr>}}}}|}}{{#if:{{{sp2|}}}|<tr><td colspan=100%><b>{{{sp2}}}:</b> {{Category:{{{sp2}}}}}</td></tr>{{#if:{{{sp2box|}}}||<tr><td colspan=100%>{{#ifExist:[[Category:Errata-{{{sp2}}}]]|{{Category:Errata-{{{sp2}}}}}</td></tr>|&nbsp;&nbsp;&nbsp;No errata for {{{sp2}}} ([[:Category:Errata-{{{sp2}}}|Create]])</td></tr>}}}}|}}{{#if:{{{sp3|}}}|<tr><td colspan=100%><b>{{{sp3}}}:</b> {{Category:{{{sp3}}}}}</td></tr>{{#if:{{{sp3box|}}}||<tr><td colspan=100%>{{#ifExist:[[Category:Errata-{{{sp3}}}]]|{{Category:Errata-{{{sp3}}}}}</td></tr>|&nbsp;&nbsp;&nbsp;No errata for {{{sp3}}} ([[:Category:Errata-{{{sp3}}}|Create]])</td></tr>}}}}|}}{{#if:{{{sp4|}}}|<tr><td colspan=100%><b>{{{sp4}}}:</b>{{Category:{{{sp4}}}}}</td></tr>{{#if:{{{sp4box|}}}||<tr><td colspan=100%>{{#ifExist:[[Category:Errata-{{{sp4}}}]]|{{Category:Errata-{{{sp4}}}}}</td></tr>|&nbsp;&nbsp;&nbsp;No errata for {{{sp4}}} ([[:Category:Errata-{{{sp4}}}|Create]])</td></tr>}}}}|}}{{#if:{{{sp5|}}}|<tr><td colspan=100%><b>{{{sp5}}}:</b> {{Category:{{{sp5}}}}}</td></tr>{{#if:{{{sp5box|}}}||<tr><td colspan=100%>{{#ifExist:[[Category:Errata-{{{sp5}}}]]|{{Category:Errata-{{{sp5}}}}}</td></tr>|&nbsp;&nbsp;&nbsp;No errata for {{{sp5}}} ([[:Category:Errata-{{{sp5}}}|Create]])</td></tr>}}}}|}}{{#if:{{{sp6|}}}|<tr><td colspan=100%><b>{{{sp6}}}:</b> {{Category:{{{sp6}}}}}</td></tr>{{#if:{{{sp6box|}}}||<tr><td colspan=100%>{{#ifExist:[[Category:Errata-{{{sp6}}}]]|{{Category:Errata-{{{sp6}}}}}</td></tr>|&nbsp;&nbsp;&nbsp;No errata for {{{sp6}}} ([[:Category:Errata-{{{sp6}}}|Create]])</td></tr>}}}}|}}</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)