Difference between revisions of "Template:Infobox weapon"
Jump to navigation
Jump to search
m (Pangaea moved page Template:Weapon to Template:Infobox weapon: Argh, I did it again) |
m (Minor changes) |
||
Line 142: | Line 142: | ||
{{#if: {{{maxhitpoints|}}} | {{!}} <div>Hit points</div> {{!!}} {{{maxhitpoints}}} HP }} | {{#if: {{{maxhitpoints|}}} | {{!}} <div>Hit points</div> {{!!}} {{{maxhitpoints}}} HP }} | ||
|- | |- | ||
− | {{#if: {{{deteriorationrate|}}} | {{!}} <div>Deterioration</div> {{!!}} {{{deteriorationrate}}}/day}} | + | {{#if: {{{deteriorationrate|}}} | {{!}} <div>Deterioration</div> {{!!}} {{{deteriorationrate}}} HP/day}} |
|- | |- | ||
{{#if: {{{flammability|}}} | {{!}} <div>Flammability</div> {{!!}} {{#expr:{{{flammability}}}*100}}% }} | {{#if: {{{flammability|}}} | {{!}} <div>Flammability</div> {{!!}} {{#expr:{{{flammability}}}*100}}% }} | ||
Line 165: | Line 165: | ||
{{#if: {{{burstshotcount|}}} | {{!}} <div>Projectiles</div> {{!!}} {{{burstshotcount}}} per burst }} | {{#if: {{{burstshotcount|}}} | {{!}} <div>Projectiles</div> {{!!}} {{{burstshotcount}}} per burst }} | ||
|- | |- | ||
− | {{#if: {{{burstshotinterval|}}} | {{!}} <div>Interval</div> {{!!}} {{#expr:{{{burstshotinterval}}}/60 round 3}} | + | {{#if: {{{burstshotinterval|}}} | {{!}} <div>Interval</div> {{!!}} {{#expr:{{{burstshotinterval}}}/60 round 3}} seconds between projectiles }} |
|- | |- | ||
− | {{#if: {{{movespeedoffset|}}} | {{!}} <div>Move speed</div> {{!!}} {{{movespeedoffset}}} tiles/ | + | {{#if: {{{movespeedoffset|}}} | {{!}} <div>Move speed</div> {{!!}} {{{movespeedoffset}}} tiles/second }} |
|- | |- | ||
{{#if: {{{forcedmissradius|}}} | {{!}} <div>Miss radius</div> {{!!}} {{{forcedmissradius}}} tiles }} | {{#if: {{{forcedmissradius|}}} | {{!}} <div>Miss radius</div> {{!!}} {{{forcedmissradius}}} tiles }} | ||
Line 182: | Line 182: | ||
{{#if: {{{armorpenetration|}}} | {{!}} <div>Armor penetration</div> {{!!}} {{#expr:{{{armorpenetration}}}*100}}% }} | {{#if: {{{armorpenetration|}}} | {{!}} <div>Armor penetration</div> {{!!}} {{#expr:{{{armorpenetration}}}*100}}% }} | ||
|- | |- | ||
− | {{#if: {{{speed|}}} | {{!}} <div>Speed</div> {{!!}} {{{speed}}} tiles/ | + | {{#if: {{{speed|}}} | {{!}} <div>Speed</div> {{!!}} {{{speed}}} tiles/second}} |
|- | |- | ||
{{#if: {{{explosionradius|}}} | {{!}} <div>Explosion radius</div> {{!!}} {{{explosionradius}}} tiles }} | {{#if: {{{explosionradius|}}} | {{!}} <div>Explosion radius</div> {{!!}} {{{explosionradius}}} tiles }} | ||
Line 197: | Line 197: | ||
{{#if: {{{workspeedstat|}}} | {{!}} <div>Workspeed stat</div> {{!!}} {{{workspeedstat}}} }} | {{#if: {{{workspeedstat|}}} | {{!}} <div>Workspeed stat</div> {{!!}} {{{workspeedstat}}} }} | ||
|- | |- | ||
− | {{#if: {{{crafting_req|}}} | {{!}} <div>Crafting skill</div> {{!!}} {{{crafting_req}}} required }} | + | {{#if: {{{crafting_req|}}} | {{!}} <div>Crafting skill</div> {{!!}} Level {{{crafting_req}}} required }} |
|- | |- | ||
− | {{#if: {{{stuffcategories|}}} | {{!}} <div>Allowed | + | {{#if: {{{stuffcategories|}}} | {{!}} <div>Allowed materials</div> {{!!}} {{#if:{{#pos: {{{stuffcategories}}} |,}} | {{#arraymap:{{{stuffcategories|}}}|,|x|* x|\n}} | {{{stuffcategories}}} }} }} |
|- | |- | ||
− | {{#if: {{{disallowedmaterial|}}} | {{!}} <div>Disallowed | + | {{#if: {{{disallowedmaterial|}}} | {{!}} <div>Disallowed materials</div> {{!!}} {{#if:{{#pos: {{{disallowedmaterial}}} |,}} | {{#arraymap:{{{disallowedmaterial|}}}|,|x|* x|\n}} | {{{disallowedmaterial}}} }} }} |
|- | |- | ||
{{#if: {{{recipeusers|}}} | {{!}} <div>Craft with</div> {{!!}} {{#if:{{#pos: {{{recipeusers}}} |,}} | {{#arraymap:{{{recipeusers|}}}|,|x|* x|\n}} | {{{recipeusers}}} }} }} | {{#if: {{{recipeusers|}}} | {{!}} <div>Craft with</div> {{!!}} {{#if:{{#pos: {{{recipeusers}}} |,}} | {{#arraymap:{{{recipeusers|}}}|,|x|* x|\n}} | {{{recipeusers}}} }} }} |
Revision as of 09:36, 3 August 2019
This template defines the table "Weapon". This table has not been created yet.
Usage
{{Infobox weapon | name = | defname = | image = | description = | description_markup = | type = | subtype = <!-- General --> | marketvalue = | techlevel = | mass = | sellpricefactor = | maxhitpoints = | flammability = | deteriorationrate = | beauty = | weapon_range = | damageamount = <!-- Weapon (statbases) --> | accuracytouch = | accuracyshort = | accuracymedium = | accuracylong = | warmup = | cooldown = | burstshotcount = | burstshotinterval = | movespeedoffset = | forcedmissradius = | targetlocations = <!-- Projectile --> | damagedef = | stoppingpower = | armorpenetration = | speed = | explosionradius = | explosiondelay = <!-- Crafting --> | worktomake = | workspeedstat = | workskill = | crafting_req = | stuffcategories = | disallowedmaterial = | recipeusers = | researchprereq = <!-- Other --> | weapontags = | tradetags = <!-- Technical --> | graphicaltexpath = | soundeffect = }}
The above documentation is transcluded from Template:Infobox weapon/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |