Template:Stats-weapon: Difference between revisions

From Warma-wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
      
      
<tr>
<tr>
{{#if: {{{rng|}}} | <td >RNG</td> | <td style="{{{display: none;}}}"></td> }}
{{#if: {{{rng|}}} | <td style="align:center">RNG</td> | <td style="{{{display: none;}}}"></td> }}
{{#if: {{{rof|}}} | <td >ROF</td> | <td style="{{{display: none;}}}"></td> }}
{{#if: {{{rof|}}} | <td style="align:center">ROF</td> | <td style="{{{display: none;}}}"></td> }}
{{#if: {{{aoe|}}} | <td >AOE</td> | <td style="{{{display: none;}}}"></td> }}
{{#if: {{{aoe|}}} | <td style="align:center">AOE</td> | <td style="{{{display: none;}}}"></td> }}
{{#if: {{{pow|}}} | <td >POW</td> | <td style="{{{display: none;}}}"></td> }}
{{#if: {{{pow|}}} | <td style="align:center">POW</td> | <td style="{{{display: none;}}}"></td> }}
</tr>
</tr>


<tr>
<tr>
{{#if: {{{rng|}}} | <td >{{{rng}}}</td> | <td style="{{{display: none;}}}"></td> }}
{{#if: {{{rng|}}} | <td style="align:center">{{{rng}}}</td> | <td style="{{{display: none;}}}"></td> }}
{{#if: {{{rof|}}} | <td >{{{rof}}}</td> | <td style="{{{display: none;}}}"></td> }}
{{#if: {{{rof|}}} | <td style="align:center">{{{rof}}}</td> | <td style="{{{display: none;}}}"></td> }}
{{#if: {{{aoe|}}} | <td >{{{aoe}}}</td> | <td style="{{{display: none;}}}"></td> }}
{{#if: {{{aoe|}}} | <td style="align:center">{{{aoe}}}</td> | <td style="{{{display: none;}}}"></td> }}
{{#if: {{{pow|}}} | <td >{{{pow}}}</td> | <td style="{{{display: none;}}}"></td> }}
{{#if: {{{pow|}}} | <td style="align:center">{{{pow}}}</td> | <td style="{{{display: none;}}}"></td> }}
</tr>
</tr>



Revision as of 20:29, 28 December 2023


USAGE

All weapons must be in a template. They call this template so that the information can go into the page.

Instructions

Paste the following into your weapon template:

<table>
{{Stats-weapon
| weapon = 
| weapon-type = 
| rng    = 
| aoe    =
| rof    = 
| pow    =  
| quality1= 
| quality-icon1 = 
| quality2= 
| quality-icon2 = 
| quality3= 
| quality-icon3 = 
| quality4= 
| quality-icon4 = 
| ability1 = 
| ability2 = 
| ability3 = 
| ability4 = 
| ability5 = 

}}
</table>

Acceptable values

  • weapon = the weapon template name. Example = "Weapon Name"
  • weapon-type = "melee" or "ranged"
  • rng = a number, except in the case of sprays. Example "sp8" or "10"
  • aoe = a number, or leave blank for it to not appear.
  • rof = a number, or leave blank for it to not appear.
  • pow = a number, or dash or leave blank.
  • quality1 through quality0 = the weapon qualities. These are the icon abilites that appear on the weapon stat line, like electrical damage.
  • quality-icon1 through quality-icon0 = The image that appears for the ability. Until I figure out an easy way to parse the icon file name from the deal, the icon file name goes here like so: File_name
    • File_name should just be the file name -- I'm assuming all icon graphics are *.png format.
    • First letter needs caps, the underscore separates the words, and all the rest are lower case. Always.
  • ability1 through ability0 = the weapon ability name. These are the non-icon abilities, like Beat Back.



Example weapon type
RNG POW
1 15
Example quality icon



[[:Category:{{{1}}}|{{{1}}}]]
{{Category:{{{1}}}}}