Template:Weapon: Difference between revisions

From Warma-wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<noinclude>{| class="wikitable" style="width: 95%;"</noinclude>
<noinclude>{| class="wikitable" style="width: 95%;"</noinclude>
|-
|-
! colspan=7 style="text-align:left; "|{{{weapon}}}
! colspan=7 style="text-align:left; font-size:110%; "|{{{weapon}}}
|-
|-
|rowspan=2 |    {{#switch: {{{type}}} | M = [[File:Melee_icon.jpg|50px]]| R= [[File:Ranged_icon.jpg|50px]] | icon }}                       
|rowspan=2 |    {{#switch: {{{type}}} | M = [[File:Melee_icon.jpg|50px]]| R= [[File:Ranged_icon.jpg|50px]] | icon }}                       
Line 24: Line 24:
<noinclude>
<noinclude>
==Instructions==
==Instructions==
Use the template code below. For type, use R or M to represent Ranged or Melee.
Each model will need a weapon box. Open it using the following:
===Example 1===
* <nowiki>{| class="wikitable" style="width: 95%;"</nowiki>
<nowiki>
After opening, paste the following block for each weapon.
* <nowiki>
{{Weapon  
{{Weapon  
| weapon= WeaponName
| weapon= WeaponName
Line 38: Line 39:
</nowiki>
</nowiki>


{{Weapon
Or, for a ranged weapon,
| weapon= WeaponName
* <nowiki>
| type = M
| rng  = 2
| rof = -
| aoe = -
| pow  = 9
| loc = Left
| abilities = {{Ability1}} {{Ability2}} {{Ability3}}
}}
 
===Example 2===
<nowiki>
{{Weapon  
{{Weapon  
| weapon= WeaponName
| weapon= WeaponName
Line 63: Line 53:
</nowiki>
</nowiki>


{{Weapon
| weapon= WeaponName
| type = R
| rng  = 2
| rof = 3
| aoe = 4
| pow  = 9
| loc = -
| abilities = -
}}


</noinclude>
Then close the whole thing with
* <nowiki> |} </nowiki>

Revision as of 05:10, 27 January 2024

{{{weapon}}}
icon  RNG   ROF   AOE   POW   LOCATION 
{{{rng}}} {{{rof}}} {{{aoe}}} {{{pow}}} {{{loc}}}
{{{abilities}}}



Instructions

Each model will need a weapon box. Open it using the following:

  • {| class="wikitable" style="width: 95%;"

After opening, paste the following block for each weapon.

  • {{Weapon | weapon= WeaponName | type = M | rng = 2 | rof = - | aoe = - | pow = 9 | loc = Left | abilities = {{Ability1}} {{Ability2}} {{Ability3}}}}

Or, for a ranged weapon,

  • {{Weapon | weapon= WeaponName | type = R | rng = 2 | rof = 3 | aoe = 4 | pow = 9 | loc = - | abilities = - }}


Then close the whole thing with

  • |}