Difference between revisions of "Template:WeaponRow"
From Starsonata Wiki
Assasinat3r (talk | contribs) (Added safeguards for #exp errors and some documentation.) |
|||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
|- align="center" | |- align="center" | ||
− | | {{#if:{{{Name|}}}|{{{Name}}}|N/A}} | + | | {{#if:{{{Name|}}}| {{Linkable Entry|{{{Name}}}}}|N/A}} |
| {{#if:{{{Tech|}}}|{{{Tech}}}|N/A}} | | {{#if:{{{Tech|}}}|{{{Tech}}}|N/A}} | ||
| {{formatnum:{{#if:{{{Size|}}}|{{{Size}}}|N/A}}}} | | {{formatnum:{{#if:{{{Size|}}}|{{{Size}}}|N/A}}}} | ||
Line 16: | Line 16: | ||
| {{#if:{{{Description|}}}|{{{Description}}}|N/A}} | | {{#if:{{{Description|}}}|{{{Description}}}|N/A}} | ||
| {{#if:{{{Comments|}}}|{{{Comments}}}|N/A}} | | {{#if:{{{Comments|}}}|{{{Comments}}}|N/A}} | ||
− | | [[Image:{{#if:{{{Imagepagename|}}}|{{{Imagepagename}}}|no_image.jpg}}]] | + | | [[Image:{{#if:{{{Imagepagename|}}}|{{{Imagepagename}}}|no_image.jpg{{!}}150px}}]]</includeonly> |
− | </includeonly> | ||
− | |||
<noinclude> | <noinclude> | ||
− | |||
== Introduction == | == Introduction == | ||
Line 61: | Line 58: | ||
| Description= Large space blaster. | | Description= Large space blaster. | ||
| Comments= | | Comments= | ||
− | | Imagepagename= Arcadian Pulse Gunc2.png}} | + | | Imagepagename= Arcadian Pulse Gunc2.png |
+ | }} | ||
+ | {{weaponRow}} | ||
|} | |} | ||
{{clear}} | {{clear}} | ||
− | + | ||
== Usage == | == Usage == | ||
Line 71: | Line 70: | ||
<pre> | <pre> | ||
|- align="center" | |- align="center" | ||
+ | | ... | ||
| ... | | ... | ||
</pre> | </pre> | ||
Line 79: | Line 79: | ||
{{weaponRow | {{weaponRow | ||
| ... | | ... | ||
− | | ...}} | + | | ... |
+ | }} | ||
</pre> | </pre> | ||
Line 85: | Line 86: | ||
* Capitalise names | * Capitalise names | ||
* Don't group numbers | * Don't group numbers | ||
− | * Use punctuation | + | * Use punctuation for text |
− | |||
== Instructions == | == Instructions == | ||
Line 108: | Line 108: | ||
| Description= This poor critter has been trained to feed on newbies. | | Description= This poor critter has been trained to feed on newbies. | ||
| Comments= Be weary of fleas | | Comments= Be weary of fleas | ||
− | | Imagepagename= bloodthirsty_mongrel.jpg}} | + | | Imagepagename= bloodthirsty_mongrel.jpg |
+ | }} | ||
</pre> | </pre> | ||
Latest revision as of 10:04, 18 September 2014
Introduction
This template provides an alternative way for inserting rows into a table of weapons. By substituting this template in place of the regular table syntax the calculation of a weapon's DPS, DPE, and EPS, number formatting and the provision of default values when none are provided will be done automatically.
Example
Usage
In a weapons table insert the template instead of a row:
|- align="center" | ... | ...
becomes...
{{weaponRow | ... | ... }}
Then input your own values into the template following the same format as per the instructions, e.g.:
- Capitalise names
- Don't group numbers
- Use punctuation for text
Instructions
Note that values can be omitted completely when using the template syntax and the order of values doesn't matter.
Template Syntax
{{weaponRow | Name= ExampleWeaponName | Tech= 0 | Size= 9001 | Damage= 9001 | Range= 9001 | Recoil= 0.1 | Elec= 9001 | Vis= 1 for 1s | Weight= 10000 | Source= Drops from [[Jeff_L]] | Description= This poor critter has been trained to feed on newbies. | Comments= Be weary of fleas | Imagepagename= bloodthirsty_mongrel.jpg }}
Table Syntax
|- align="center" | ExampleWeaponName | 0 | 9,001 | 9,001 | 9,001 | 0.1 | 9,001 | 1 for 1s | 10,000 | 90,010 | 1 | 90,010 | Drops from [[Jeff_L]] | This poor critter has been trained to feed on newbies. | Be weary of fleas | [[Image:bloodthirsty_mongrel.jpeg]]