Template:AbilityLeadership: Difference between revisions

From Warma-wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<onlyinclude><includeonly>[[Category:{{{main}}}]]
<onlyinclude><includeonly>[[Category:{{{main}}}]]
<tr><td rowspan=2 style="text-align:center; width: 20%;">[[:Category:{{{main}}}|{{{main}}}]]</td>
<tr><td rowspan=2 style="text-align:center; width: 20%;">[[:Category:{{{main}}}|{{{main}}}]]</td>
<td colspan=100%>{{Category:{{{main}}}|d={{{d}}}|oc={{{oc}}}|affected={{{model1}}}{{#if:{{{model2|}}}|, {{{model2}}}}}{{#if:{{{model3|}}}|, {{{model3}}}}}{{#if:{{{model4|}}}|, {{{model4}}}}} }}</td></tr><tr>
<td colspan=100%>{{Category:{{{main}}}|d={{{d}}}|oc={{{oc}}}|affected={{{model1}}}{{#if:{{{model2|}}}|, {{{model2}}}}}{{#if:{{{model3|}}}|, {{{model3}}}}}{{#if:{{{model4|}}}|, {{{model4}}}}} }}</td></tr>{{if:{{{oc|}}}||<tr>
<td colspan=100%>Abilities/bonuses gained:  
<td colspan=100%>Abilities/bonuses gained:  
* {{{sub1}}}
* {{{sub1}}}
Line 10: Line 10:
{{#ifeq:{{{sub2a}}}|cat|{{AbilitySubordinate|{{{sub2}}} }}}}
{{#ifeq:{{{sub2a}}}|cat|{{AbilitySubordinate|{{{sub2}}} }}}}
{{#ifeq:{{{sub3a}}}|cat|{{AbilitySubordinate|{{{sub3}}} }}}}
{{#ifeq:{{{sub3a}}}|cat|{{AbilitySubordinate|{{{sub3}}} }}}}
{{#ifeq:{{{sub4a}}}|cat|{{AbilitySubordinate|{{{sub4}}} }}}}</td></tr>
{{#ifeq:{{{sub4a}}}|cat|{{AbilitySubordinate|{{{sub4}}} }}}}</td></tr>}}
</includeonly></onlyinclude>
</includeonly></onlyinclude>
<noinclude>
<noinclude>

Revision as of 00:34, 26 December 2024


EXAMPLE OUTPUT

Template:If:
Leadership

Leadership grants the following to ExampleModel, ExampleModel2, ExampleModel3 models within 10 inches of this model (see below). Leadership can affect this model, if it has the appropriate tag. Leadership can stack with Veteran Leader, since they are different abilities.

INSTRUCTIONS

Use the following in an ability table. * {{AbilityLeadership|main=Leadership|model1=ExampleModel|model2=ExampleModel2|model3=ExampleModel3|d=10 inches|sub1=ExampleAbility1|sub1a=cat|sub2=ExampleAbility2|sub2a=cat|sub3=a random thing|sub3a=text}}

    • main = Leadership: This is because it's almost always a leadership ability. As of this update, Leadership is the only thing tied to this. If we need another for a crazy vet leadership ability, I'll make a new template based on this one.
    • sub1 through sub4 = the ability granted.
    • sub1a through sub4a = cat or text. If it's cat, it will build a subcall to the category ability. If not, it will remain plain text without extra calls.
    • model1 through 4 are the models affected. Preferably, these would also link out, but currently don't.