Template:AbilityAttach: Difference between revisions

From Warma-wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><tr><td style="text-align:center; width: 20%;">
<includeonly><tr><td style="text-align:center; width: 20%;">
[[:Category:{{{main}}}|{{{main}}}]]</td>
[[:Category:{{{main}}}|{{{main}}}]]</td><td>{{Category:{{{main}}}}}
<td>
{{#if:{{{sub1|}}}|* {{#ifeq:{{{sub1a}}}|page| [[{{{sub1}}}]] | [[:Category:{{{sub1}}}|{{{sub1}}}]] }}}}{{#if:{{{sub2|}}}|* {{#ifeq:{{{sub2a}}}|page| [[{{{sub2}}}]] | [[:Category:{{{sub2}}}|{{{sub2}}}]] }}}}{{#if:{{{sub3|}}}|* {{#ifeq:{{{sub3a}}}|page| [[{{{sub3}}}]] | [[:Category:{{{sub3}}}|{{{sub3}}}]] }}}}{{#if:{{{sub4|}}}|* {{#ifeq:{{{sub4a}}}|page| [[{{{sub4}}}]] | [[:Category:{{{sub4}}}|{{{sub4}}}]] }}}}{{#if:{{{sub5|}}}|* {{#ifeq:{{{sub5a}}}|page| [[{{{sub5}}}]] | [[:Category:{{{sub5}}}|{{{sub5}}}]] }}}}</td></tr></includeonly>
{{Category:{{{main}}}}}
* {{#ifeq:{{{sub1a}}}|page| [[{{{sub1}}}]] | [[:Category:{{{sub1}}}|{{{sub1}}}]] }}
* {{#ifeq:{{{sub2a}}}|page| [[{{{sub2}}}]] | [[:Category:{{{sub2}}}|{{{sub2}}}]] }}
* {{#ifeq:{{{sub3a}}}|page| [[{{{sub3}}}]] | [[:Category:{{{sub3}}}|{{{sub3}}}]] }}
* {{#ifeq:{{{sub4a}}}|page| [[{{{sub4}}}]] | [[:Category:{{{sub4}}}|{{{sub4}}}]] }}
* {{#ifeq:{{{sub5a}}}|page| [[{{{sub5}}}]] | [[:Category:{{{sub5}}}|{{{sub5}}}]] }}
 
</td>
</tr></includeonly>


<noinclude>
<noinclude>
Line 19: Line 10:
** UNIT1: This is the first unit or group of models that this can attach to. We can have up to 5.  
** UNIT1: This is the first unit or group of models that this can attach to. We can have up to 5.  
** PAGE_OR_CAT: If you type "page" for sub1a, sub2a, sub3a, etc., the link to the unit will be presented in a way that takes the user directly to the page. Otherwise, if "cat" is entered, or if this is left blank, or ommitted, the link will present as a Category. This is useful for when a model is allowed to attach to a group of models, like "Northkin".  
** PAGE_OR_CAT: If you type "page" for sub1a, sub2a, sub3a, etc., the link to the unit will be presented in a way that takes the user directly to the page. Otherwise, if "cat" is entered, or if this is left blank, or ommitted, the link will present as a Category. This is useful for when a model is allowed to attach to a group of models, like "Northkin".  
<table class="wikitable">{{AbilityAttach|main=ABILITY|sub1=UNIT1|sub1a=PAGE_OR_CAT|sub2=UNIT2|sub2a=PAGE_OR_CAT}}</nowiki>
===EXAMPLE===
 
<table class="wikitable">
{{AbilityAttach|main = Command Attachment | sub1 = Example Unit | sub1a = exact |sub2=Example Group}}
{{AbilityAttach|main = Command Attachment | sub1 = Example Unit | sub1a = page|sub2=Example Group}}
{{AbilityAttach|main = Weapon Attachment | sub1 = Example Unit | sub1a = exact |sub2=Example Group}}
{{AbilityAttach|main = Weapon Attachment | sub1 = Example Unit | sub1a = cat |sub2=Example Group|sub2a=page}}</table>
</table>
===EXAMPLE CODE===
<nowiki>
<table class="wikitable">
{{AbilityAttach|main = Command Attachment | sub1 = Example Unit | sub1a = page|sub2=Example Group}}
{{AbilityAttach|main = Weapon Attachment | sub1 = Example Unit | sub1a = cat |sub2=Example Group|sub2a=page}}
</table></nowiki>
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 22:40, 17 February 2024


How to use this template

  • This template calls out to another simple ability category, like "Command Attachment" or "Weapon Attachment".
  • The format is: {{AbilityAttach|main=ABILITY|sub1=UNIT1|sub1a=PAGE_OR_CAT|sub2=UNIT2|sub2a=PAGE_OR_CAT}}
    • ABILITY: This will usually be "Command Attachment" or "Weapon Attachment" without quotes.
    • UNIT1: This is the first unit or group of models that this can attach to. We can have up to 5.
    • PAGE_OR_CAT: If you type "page" for sub1a, sub2a, sub3a, etc., the link to the unit will be presented in a way that takes the user directly to the page. Otherwise, if "cat" is entered, or if this is left blank, or ommitted, the link will present as a Category. This is useful for when a model is allowed to attach to a group of models, like "Northkin".

EXAMPLE


Command AttachmentThis model is a Command Attachment. It can be added to the following:
Weapon AttachmentThis model is a weapon attachment.

Units may have up to three weapon attachments added to it. For each weapon attachment added, reduce the number of Grunt models in the unit by one. When added to a unit, this model is considered to be a Trooper in that unit. This weapon attachment can be added to the following unit(s):

EXAMPLE CODE

<table class="wikitable"> {{AbilityAttach|main = Command Attachment | sub1 = Example Unit | sub1a = page|sub2=Example Group}} {{AbilityAttach|main = Weapon Attachment | sub1 = Example Unit | sub1a = cat |sub2=Example Group|sub2a=page}} </table>