Template:AbilityMagic: Difference between revisions

From Warma-wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<tr>
<tr>
  <td style="text-align:center; width: 20%;">[[Magic Ability]]</td>
<td style="text-align:center; width: 20%;">[[Magic Ability]]</td>
  <td  colspan=100% style="text-align:left;">
<td  colspan=100% style="text-align:left;">
    <table>
<table>
      <tr>
<tr>
          <td style="text-align:left; width: 100%;">
<td style="text-align:left; width: 100%;">
{{Category:Magic Ability}}
{{Category:Magic Ability}}
{{#if:{{{sub1|}}}|{{#if:{{{sub1box|}}}| {{Spellbox|{{{sub1}}}}}|<table class="wikitable" style="width: 100%;"><tr><th rowspan="2"style="text-align: center; border: 1px solid black;">[[:Category:{{{sub1}}}|{{{sub1}}}]]</th><th style="text-align: left;">Effect</th></tr><tr><td>{{Category:{{{sub1}}}|{{{sub1a}}}|{{{sub1b}}}|{{{sub1c}}}|{{{sub1d}}}|{{{sub1e}}} }}</td></table>}}|}}
{{#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 rowspan="2"style="text-align: center; border: 1px solid black;">[[:Category:{{{sub2}}}|{{{sub2}}}]]</th><th style="text-align: left;">Effect</th></tr><tr><td>{{Category:{{{sub2}}}|{{{sub2a}}}|{{{sub2b}}}|{{{sub2c}}}|{{{sub2d}}}|{{{sub2e}}} }}</td></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 rowspan="2"style="text-align: center; border: 1px solid black;">[[:Category:{{{sub3}}}|{{{sub3}}}]]</th><th style="text-align: left;">Effect</th></tr><tr><td>{{Category:{{{sub3}}}|{{{sub3a}}}|{{{sub3b}}}|{{{sub3c}}}|{{{sub3d}}}|{{{sub3e}}} }}</td></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 rowspan="2"style="text-align: center; border: 1px solid black;">[[:Category:{{{sub4}}}|{{{sub4}}}]]</th><th style="text-align: left;">Effect</th></tr><tr><td>{{Category:{{{sub4}}}|{{{sub4a}}}|{{{sub4b}}}|{{{sub4c}}}|{{{sub4d}}}|{{{sub4e}}} }}</td></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 rowspan="2"style="text-align: center; border: 1px solid black;">[[:Category:{{{sub5}}}|{{{sub5}}}]]</th><th style="text-align: left;">Effect</th></tr><tr><td>{{Category:{{{sub5}}}|{{{sub5a}}}|{{{sub5b}}}|{{{sub5c}}}|{{{sub5d}}}|{{{sub5e}}} }}</td></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>
</td>
</tr></table>
</tr></table>
Line 17: Line 17:
[[Category:Magic Ability]]
[[Category:Magic Ability]]
</includeonly>
</includeonly>
<noinclude>
==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.
<nowiki>{{AbilityMagic|sub1=ExampleSpell|sub1box=y|sub2=ExampleAbility|sub2a=d3}}</nowiki>


<noinclude>
==EXAMPLE==
==EXAMPLE==
<table class="wikitable" style=" width:100%; border-collapse: collapse;">
<table class="wikitable" style=" width:100%; border-collapse: collapse;">
{{AbilityMagic|main=Magic Ability|sub1=Chain Lightning|sub1box=y|sub2=Repair|sub2a=d3}}
{{AbilityMagic|sub1=ExampleSpell|sub1box=y|sub2=ExampleAbility|sub2a=d3}}
</table>
</table>
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

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)