Template:AbilityLeadership: Difference between revisions

From Warma-wiki
Jump to navigation Jump to search
(Created page with "<onlyinclude><includeonly> <tr><td rowspan=2 style="text-align:center; width: 20%;">[[:Category:{{{main}}}|{{{main}}}]]</td> <td colspan=100%>{{Category:Leadership}}</td></tr><tr> <td colspan=100%>While within {{{d}}} of this model, these models ({{{model1}}}{{#if:{{{model2|}}}|, {{{model2}}}}}{{#if:{{{model3|}}}|, {{{model3}}}}}{{#if:{{{model4|}}}|, {{{model4}}}}}) gain the following: * {{{sub1}}} {{#if:{{{sub2|}}}|* {{{sub2}}} }} {{#if:{{{sub3|}}}|* {{{sub3}}} }} {{#if...")
 
mNo edit summary
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude><includeonly>
<includeonly>[[Category:{{{main}}}]]
<tr><td rowspan=2 style="text-align:center; width: 20%;">[[:Category:{{{main}}}|{{{main}}}]]</td>
{{#if:{{{override|}}}|<tr><td style="text-align:center; width: 20%;">[[{{{main}}}]]</td><td colspan=100%>{{{override}}}</td></tr> <tr><td style="text-align:center; width: 20%;">[[{{{main}}}]]</td><td colspan=100%>{{Category:{{{main}}}|d={{{d}}}|affected={{{model1}}}{{#if:{{{model2|}}}|, {{{model2}}}}}{{#if:{{{model3|}}}|, {{{model3}}}}}{{#if:{{{model4|}}}|, {{{model4}}}}} }}
<td colspan=100%>{{Category:Leadership}}</td></tr><tr>
<br>Abilities/bonuses gained:
<td colspan=100%>While within {{{d}}} of this model, these models ({{{model1}}}{{#if:{{{model2|}}}|, {{{model2}}}}}{{#if:{{{model3|}}}|, {{{model3}}}}}{{#if:{{{model4|}}}|, {{{model4}}}}}) gain the following:
{{#ifeq:{{{sub1a}}}|cat|{{AbilitySubordinate|{{{sub1}}} }}|{{{sub1}}} }}
* {{{sub1}}}
{{#if:{{{sub2|}}}|{{#ifeq:{{{sub2a}}}|cat|{{AbilitySubordinate|{{{sub2}}} }}|{{{sub2}}} }}
{{#if:{{{sub2|}}}|* {{{sub2}}} }}
}}
{{#if:{{{sub3|}}}|* {{{sub3}}} }}
{{#if:{{{sub3|}}}|{{#ifeq:{{{sub3a}}}|cat|{{AbilitySubordinate|{{{sub3}}} }}|{{{sub3}}} }}
{{#if:{{{sub4|}}}|* {{{sub4}}} }}
}}
{{#ifeq:{{{sub1a}}}|cat|{{AbilitySubordinate|{{{sub1}}} }}}}
{{#if:{{{sub4|}}}|{{#ifeq:{{{sub4a}}}|cat|{{AbilitySubordinate|{{{sub4}}} }}|{{{sub4}}} }}
{{#ifeq:{{{sub2a}}}|cat|{{AbilitySubordinate|{{{sub2}}} }}}}
}}
{{#ifeq:{{{sub3a}}}|cat|{{AbilitySubordinate|{{{sub3}}} }}}}
</td></tr> }}
{{#ifeq:{{{sub4a}}}|cat|{{AbilitySubordinate|{{{sub4}}} }}}}</td></tr>
</includeonly>
</includeonly></onlyinclude>
 
<noinclude>
<noinclude>
==EXAMPLE OUTPUT==
==EXAMPLE OUTPUT==
<table class="wikitable">
* See [[:Category:Leadership]]
{{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}}
* See [[:Category:Veteran Leader]]
</table>
==INSTRUCTIONS==
==INSTRUCTIONS==
Use the following in an ability table. <nowiki>
Use the following in an ability table. <br>
* {{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}}</nowiki>
* See [[:Category:Leadership]]
** 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.
* See [[:Category:Veteran Leader]]
** sub1 through sub4 = the ability granted.
[[Category:Templates]]
** 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.
</noinclude>
</noinclude>

Latest revision as of 05:04, 26 December 2024


EXAMPLE OUTPUT

INSTRUCTIONS

Use the following in an ability table.