Template:AbilityLeadership: Difference between revisions

From Warma-wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>[[Category:{{{main}}}]]
<includeonly>[[Category:{{{main}}}]]
{{#if:{{{override|}}}|{{{override}}} |   
{{#if:{{{override|}}}|<tr><td rowspan=2 style="text-align:center; width: 20%;">[[:Category:{{{main}}}|{{{main}}}]]</td><td colspan=100%>{{{override}}}</td></tr> |  <tr><td rowspan=2 style="text-align:center; width: 20%;">[[:Category:{{{main}}}|{{{main}}}]]</td><td colspan=100%>{{Category:{{{main}}}|d={{{d}}}|affected={{{model1}}}{{#if:{{{model2|}}}|, {{{model2}}}}}{{#if:{{{model3|}}}|, {{{model3}}}}}{{#if:{{{model4|}}}|, {{{model4}}}}} }}
 
<tr><td rowspan=2 style="text-align:center; width: 20%;">[[:Category:{{{main}}}|{{{main}}}]]</td>
<td colspan=100%>{{Category:{{{main}}}|d={{{d}}}|affected={{{model1}}}{{#if:{{{model2|}}}|, {{{model2}}}}}{{#if:{{{model3|}}}|, {{{model3}}}}}{{#if:{{{model4|}}}|, {{{model4}}}}} }}
<br>Abilities/bonuses gained:  
<br>Abilities/bonuses gained:  
{{#ifeq:{{{sub1a}}}|cat|{{AbilitySubordinate|{{{sub1}}} }}|{{{sub1}}} }}
{{#ifeq:{{{sub1a}}}|cat|{{AbilitySubordinate|{{{sub1}}} }}|{{{sub1}}} }}
Line 17: Line 14:
<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. <br><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.
** 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.
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 04:45, 26 December 2024


EXAMPLE OUTPUT

INSTRUCTIONS

Use the following in an ability table.