Template:Stats-weapon: Difference between revisions

From Warma-wiki
Jump to navigation Jump to search
m (Added ranged vs melee variable)
No edit summary
Line 22: Line 22:
       <td style="padding: 2px; padding-right: 10px; border: 1px solid grey;">
       <td style="padding: 2px; padding-right: 10px; border: 1px solid grey;">
           <table>
           <table>
               {{#if: {{{special1|}}} | <tr> <td>{{Template:{{{special1}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{ability1|}}} | <tr> <td>{{Template:{{{ability1}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{special2|}}} | <tr> <td>{{Template:{{{special2}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{ability2|}}} | <tr> <td>{{Template:{{{ability2}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{special3|}}} | <tr> <td>{{Template:{{{special3}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{ability3|}}} | <tr> <td>{{Template:{{{ability3}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{special4|}}} | <tr> <td>{{Template:{{{special4}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{ability4|}}} | <tr> <td>{{Template:{{{ability4}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{special5|}}} | <tr> <td>{{Template:{{{special5}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{ability5|}}} | <tr> <td>{{Template:{{{ability5}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{special6|}}} | <tr> <td>{{Template:{{{special6}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{ability6|}}} | <tr> <td>{{Template:{{{ability6}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{special7|}}} | <tr> <td>{{Template:{{{special7}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{ability7|}}} | <tr> <td>{{Template:{{{ability7}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{special8|}}} | <tr> <td>{{Template:{{{special8}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{ability8|}}} | <tr> <td>{{Template:{{{ability8}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{special9|}}} | <tr> <td>{{Template:{{{special9}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{ability9|}}} | <tr> <td>{{Template:{{{ability9}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{special0|}}} | <tr> <td>{{Template:{{{special0}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{ability0|}}} | <tr> <td>{{Template:{{{ability0}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{speciala|}}} | <tr> <td>{{Template:{{{speciala}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{quality1|}}} | <tr> <td>{{Template:{{{quality1}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
           
              {{#if: {{{quality2|}}} | <tr> <td>{{Template:{{{quality2}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
              {{#if: {{{quality3|}}} | <tr> <td>{{Template:{{{quality3}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
              {{#if: {{{quality4|}}} | <tr> <td>{{Template:{{{quality4}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
              {{#if: {{{quality5|}}} | <tr> <td>{{Template:{{{quality5}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
              {{#if: {{{quality6|}}} | <tr> <td>{{Template:{{{quality6}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
              {{#if: {{{quality7|}}} | <tr> <td>{{Template:{{{quality7}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
              {{#if: {{{quality8|}}} | <tr> <td>{{Template:{{{quality8}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
              {{#if: {{{quality9|}}} | <tr> <td>{{Template:{{{quality9}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
              {{#if: {{{quality0|}}} | <tr> <td>{{Template:{{{quality0}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}           
           </table>
           </table>
         </td>
         </td>
Line 55: Line 63:
| rof    =  
| rof    =  
| pow    =   
| pow    =   
| special1 =  
| quality1=  
| special2 =  
| quality-icon1 =  
| special3 =  
| quality2=  
| special4 =  
| quality-icon2 =  
| special5 =  
| quality3=  
| special6 =  
| quality-icon3 =  
| special7 =  
| quality4=  
| special8 =  
| quality-icon4 =  
| special9 =  
| ability1 =  
| ability2 =
| ability3 =
| ability4 =
| ability5 =
 
}}
}}
</table>
</table>
Line 74: Line 87:
* rof = 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.  
* pow = a number, or dash or leave blank.  
* special1 through special 9 = the special template name. This covers everything from damage typing to criticals, to special rules.  
* 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=
Here's an example
<table>
{{Stats-weapon
| weapon = Example weapon
| weapon-type =
| rng    = 50
| aoe    =
| rof    = 3
| pow    =  20
| special1 = Example special
| special2 =
| special3 =
| special4 =
| special5 =
| special6 =
| special7 =
| special8 =
| special9 =
}}
<pre>
{{Stats-weapon
| weapon = Example weapon
| weapon-type = ranged
| rng    = 50
| aoe    =
| rof    =  3
| pow    =  20
| special1 = Example special
| special2 =
| special3 =
| special4 =
| special5 =
| special6 =
| special7 =
| special8 =
| special9 =
}}</pre>
</table>


</noinclude>
</noinclude>

Revision as of 17:50, 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.