Template:Stats-weapon: Difference between revisions

From Warma-wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 6: Line 6:
           <table>
           <table>
             <tr>
             <tr>
               <td style="vertical-align: top; padding: 2px; border: 1px solid grey;">RNG</td>
               {{#if: {{{rng|}}} | <td style="vertical-align: top; padding: 2px; border: 1px solid grey;">RNG</td> | <td style="{{{display: none;}}}"></td> }}
               <td style="vertical-align: top; padding: 2px; border: 1px solid grey;">ROF</td>
               {{#if: {{{rof|}}} | <td style="vertical-align: top; padding: 2px; border: 1px solid grey;">ROF</td> | <td style="{{{display: none;}}}"></td> }}
               <td style="vertical-align: top; padding: 2px; border: 1px solid grey;">AOE</td>
               {{#if: {{{aoe|}}} | <td style="vertical-align: top; padding: 2px; border: 1px solid grey;">AOE</td> | <td style="{{{display: none;}}}"></td> }}
               <td style="vertical-align: top; padding: 2px; border: 1px solid grey;">POW</td>
               {{#if: {{{pow|}}} | <td style="vertical-align: top; padding: 2px; border: 1px solid grey;">POW</td> | <td style="{{{display: none;}}}"></td> }}
          </tr>
          </tr>
           <tr>
           <tr>
        <td style="vertical-align: top; padding: 2px; border: 1px solid grey;">{{{rng}}}</td>
              {{#if: {{{rng|}}} | <td style="vertical-align: top; padding: 2px; border: 1px solid grey;">{{{rng}}}</td> | <td style="{{{display: none;}}}"></td> }}
      <td style="vertical-align: top; padding: 2px; border: 1px solid grey;">{{{rof}}}</td>
              {{#if: {{{rof|}}} | <td style="vertical-align: top; padding: 2px; border: 1px solid grey;">{{{rof}}}</td> | <td style="{{{display: none;}}}"></td> }}
      <td style="vertical-align: top; padding: 2px; border: 1px solid grey;">{{{aoe}}}</td>
              {{#if: {{{aoe|}}} | <td style="vertical-align: top; padding: 2px; border: 1px solid grey;">{{{aoe}}}</td> | <td style="{{{display: none;}}}"></td> }}
      <td style="vertical-align: top; padding: 2px; border: 1px solid grey;">{{{pow}}}</td>
              {{#if: {{{pow|}}} | <td style="vertical-align: top; padding: 2px; border: 1px solid grey;">{{{pow}}}</td> | <td style="{{{display: none;}}}"></td> }}
 
           </tr>
           </tr>
           </table>
           </table>
Line 21: 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>  | }}
               {{#if: {{{special1|}}} | <tr> <td>{{Template:{{{special1}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{special2|}}} | <tr> <td>{{Template:{{{special2}}}}}</td>  </tr>  | }}
               {{#if: {{{special2|}}} | <tr> <td>{{Template:{{{special2}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{special3|}}} | <tr> <td>{{Template:{{{special3}}}}}</td>  </tr>  | }}
               {{#if: {{{special3|}}} | <tr> <td>{{Template:{{{special3}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{special4|}}} | <tr> <td>{{Template:{{{special4}}}}}</td>  </tr>  | }}
               {{#if: {{{special4|}}} | <tr> <td>{{Template:{{{special4}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{special5|}}} | <tr> <td>{{Template:{{{special5}}}}}</td>  </tr>  | }}
               {{#if: {{{special5|}}} | <tr> <td>{{Template:{{{special5}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{special6|}}} | <tr> <td>{{Template:{{{special6}}}}}</td>  </tr>  | }}
               {{#if: {{{special6|}}} | <tr> <td>{{Template:{{{special6}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{special7|}}} | <tr> <td>{{Template:{{{special7}}}}}</td>  </tr>  | }}
               {{#if: {{{special7|}}} | <tr> <td>{{Template:{{{special7}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{special8|}}} | <tr> <td>{{Template:{{{special8}}}}}</td>  </tr>  | }}
               {{#if: {{{special8|}}} | <tr> <td>{{Template:{{{special8}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{special9|}}} | <tr> <td>{{Template:{{{special9}}}}}</td>  </tr>  | }}
               {{#if: {{{special9|}}} | <tr> <td>{{Template:{{{special9}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{special0|}}} | <tr> <td>{{Template:{{{special0}}}}}</td>  </tr>  | }}
               {{#if: {{{special0|}}} | <tr> <td>{{Template:{{{special0}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
               {{#if: {{{speciala|}}} | <tr> <td>{{Template:{{{speciala}}}}}</td>  </tr>  | }}
               {{#if: {{{speciala|}}} | <tr> <td>{{Template:{{{speciala}}}}}</td>  </tr>  | <tr style="{{{display: none;}}}"></tr>}}
              
              
           </table>
           </table>
Line 41: Line 42:


<noinclude>
<noinclude>
=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:
<pre>
<table>
{{Stats-weapon
| weapon =
| rng    =
| aoe    =
| rof    =
| pow    = 
| special1 =
| special1 =
| special2 =
| special3 =
| special4 =
| special5 =
| special6 =
| special7 =
| special8 =
| special9 =
}}
</table>
</pre>
== Acceptable values==
* weapon = the weapon template name. Example = "Weapon Name"
* 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.
* special1 through special 9 = the special template name. This covers everything from damage typing to criticals, to special rules.
=EXAMPLE=
=EXAMPLE=
Here's an example
Here's an example
Line 46: Line 80:
<table>
<table>
{{Stats-weapon
{{Stats-weapon
| weapon= Electrical Discharge
| weapon = Example weapon
| rng = SP8
| rng   = 50
| rof    = 17
| aoe    =
| aoe  = 6
| rof    = 3
| pow  = 6
| pow    = 20
| special1 = Pistol
| special1 = Example special
| special2 = Electrical
| special1 =  
| special2 =  
| special3 =
| special4 =
| special5 =
| special6 =
| special7 =
| special8 =
| special9 =
}}
}}
<pre>
{{Stats-weapon
| weapon = Example weapon
| rng    = 50
| aoe    =
| rof    =  3
| pow    =  20
| special1 = Example special
| special1 =
| special2 =
| special3 =
| special4 =
| special5 =
| special6 =
| special7 =
| special8 =
| special9 =
}}</pre>
</table>
</table>


</noinclude>
</noinclude>

Revision as of 21:44, 27 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 = 
| rng    = 
| aoe    =
| rof    = 
| pow    =  
| special1 = 
| special1 = 
| special2 = 
| special3 = 
| special4 = 
| special5 = 
| special6 = 
| special7 = 
| special8 = 
| special9 = 
}}
</table>

Acceptable values

  • weapon = the weapon template name. Example = "Weapon Name"
  • 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.
  • special1 through special 9 = the special template name. This covers everything from damage typing to criticals, to special rules.

EXAMPLE

Here's an example

{{Stats-weapon
| weapon = Example weapon
| rng    = 50
| aoe    = 
| rof    =  3
| pow    =  20
| special1 = Example special
| special1 = 
| special2 = 
| special3 = 
| special4 = 
| special5 = 
| special6 = 
| special7 = 
| special8 = 
| special9 = 
}}
Example weapon
RNG ROF POW
50 3 20