Template:Weapon infobox: Difference between revisions
Template page
More actions
|  Changed "Bullet Damage" to Damage because saying grenades do 500 bullet damage makes no sense | No edit summary | ||
| (29 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| <includeonly> | <includeonly> | ||
| {| class=" | {| class="floatright" style="font-size:90%; width:100%; max-width:400px"   | ||
| |-   | |-   | ||
| ! class="infobox2" colspan="2" style="font-size:130%;" | {{{name|{{PAGENAME}}}}} | ! class="infobox2" colspan="2" style="font-size:130%;" | {{{name|{{PAGENAME}}}}} | ||
| |- | |- | ||
| {{#if:{{{image|}}} |{{!}} style="padding:0.5em; text-align:center;" colspan="2" {{!}} [[File:{{{image}}}{{!}}250px]] | {{#if:{{{image|}}} |{{!}} style="padding:0.5em; text-align:center;" colspan="2" {{!}} [[File:{{{image}}}{{!}}250px|link=File:{{{image}}}]] | ||
| {{!}}- | {{!}}- | ||
| |}} | |}} | ||
| Line 10: | Line 10: | ||
| {{!}}- | {{!}}- | ||
| |}} | |}} | ||
| | class="infobox3" colspan="2" |  | | class="infobox3" colspan="2" | Basic Information | ||
| |- | |- | ||
| | style="width:45%;font-size:95%;" | '''Type'''   | | style="width:45%;font-size:95%;" | '''Type'''   | ||
| | style="width:55%;" | {{{type}}}   | | style="width:55%; white-space: nowrap;" | {{{type}}}   | ||
| |- | |- | ||
| {{#if:{{{description|}}}|{{!}} style="width:30%;font-size:95%;" {{!}} '''Description'''  | |||
| {{!}} style="width:45%;" {{!}} ''{{{description}}}'' | |||
| {{!}}- | |||
| |}} | |||
| {{#if:{{{caliber|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Caliber'''  | |||
| {{!}} style="width:55%;" {{!}} {{{caliber}}} MM | |||
| {{!}}- | |||
| |}} | |||
| {{#if:{{{ammo|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Ammo Capacity'''   | {{#if:{{{ammo|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Ammo Capacity'''   | ||
| {{!}} style="width:55%;" {{!}} {{{ammo}}} | {{!}} style="width:55%;" {{!}} {{{ammo}}} | ||
| Line 21: | Line 29: | ||
| {{#if:{{{damage|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Damage'''   | {{#if:{{{damage|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Damage'''   | ||
| {{!}} style="width:55%;" {{!}} {{{damage}}} | {{!}} style="width:55%;" {{!}} {{{damage}}} | ||
| {{!}}- | |||
| |}} | |||
| {{#if:{{{headdamage|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Headshot Damage'''  | |||
| {{!}} style="width:55%;" {{!}} {{{headdamage}}} | |||
| {{!}}- | {{!}}- | ||
| |}} | |}} | ||
| Line 29: | Line 41: | ||
| {{#if:{{{reload|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Reload Time'''   | {{#if:{{{reload|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Reload Time'''   | ||
| {{!}} style="width:55%;" {{!}} {{{reload}}}s   | {{!}} style="width:55%;" {{!}} {{{reload}}}s   | ||
| {{!}}- | {{!}}- | ||
| |}} | |}} | ||
| Line 47: | Line 55: | ||
| {{!}}- | {{!}}- | ||
| |}} | |}} | ||
| {{#if:{{{arm_time|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} ''' | {{#if:{{{arm_time|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Fuse Time'''   | ||
| {{!}} style="width:55%;" {{!}} {{{arm_time}}}s | {{!}} style="width:55%;" {{!}} {{{arm_time}}}s | ||
| {{!}}- | {{!}}- | ||
| |}} | |}} | ||
| {{#if:{{{spawn|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Spawn Locations'''   | {{#if:{{{effect|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Applied Effects'''  | ||
| {{!}} style="width:55%; white-space: nowrap;" {{!}} {{{effect}}} | |||
| {{!}}- | |||
| |}} | |||
| | class="infobox3" colspan="2" |Miscellaneous Info | |||
| |- | |||
| {{#if:{{{weight|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Weight'''  | |||
| {{!}} style="width:55%;" {{!}}  {{#ask: [[item::{{{name|{{PAGENAME}}}}}]][[special::normal]][[weight::+]]|?item|?weight=weight|sort=weight|template=Weight|namedargs = yes|format=plainlist|link=none}} kg | |||
| {{!}}- | |||
| |}} | |||
| {{#if:{{{pickup_time|{{{weight|}}}}}}|{{!}} style="width:45%;font-size:95%;" {{!}} {{Hoverimage|Higher weight increases time|text='''Pick-Up Time'''}} | |||
| {{!}} style="width:55%;" {{!}} {{#ifeq: {{PAGENAME}} | Ammunition | {{Hoverimage|<nowiki>a=</nowiki>Amount of bullets|text={{Mvar|0.25 + 0.01a}}}} | {{#ask: [[item::{{{name|{{PAGENAME}}}}}]][[special::normal]][[weight::+]]|?item|?weight=weight|sort=weight|template=WeightToPickUpTime|namedargs = yes|format=plainlist|link=none}}}} | |||
| {{!}}- | |||
| |}} | |||
| {{#ifeq:{{PAGENAME}}|Cut/Legacy Content/Items||{{#if:{{{Pocket|Low}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Deletion % in {{Hoverimage|Pocket Dimension|text=PD}}'''  | |||
| {{!}} style="width:55%;" {{!}} {{ItemTierCheck|{{{name|{{PAGENAME}}}}}}} | |||
| {{!}}- | |||
| |}} | |||
| |}} | |||
| {{#ifeq:{{PAGENAME}}|Cut/Legacy Content/Items||{{#if: {{{disarmImmunity|True}}}|{{!}} style="width:45%;font-size:95%;" {{!}}  '''{{Hoverimage|Does having this item equipped make the player<br> immune to being disarmed?|text=Disarm Immunity?}}'''  | |||
| {{!}} style="width:55%;" {{!}} {{ItemTierCheck|{{{name|{{PAGENAME}}}}}|templateOverride=ListTierDisarm}} | |||
| {{!}}- | |||
| |}} | |||
| |}} | |||
| {{#if:{{{spawn|}}}|{{!}} style="width:45%;font-size:95%;"" {{!}} '''Spawn Locations'''   | |||
| {{!}} style="width:55%;" {{!}} {{{spawn}}} | {{!}} style="width:55%;" {{!}} {{{spawn}}} | ||
| {{!}}- | {{!}}- | ||
| |}} | |}} | ||
| {{#if:{{{SCP914|True}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Obtainable from 914?'''  | |||
| {{!}} style="width:55%;" {{!}} {{{SCP914|True}}} | |||
| {{!}}- | |||
| |}} | |||
| {{#if:{{{manufactor|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Manufactor'''  | |||
| {{!}} style="width:55%;" {{!}} {{{manufactor}}} | |||
| {{!}}- | |||
| |}} | |||
| {{#if:{{{inspired|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Inspired by'''  | |||
| {{!}} style="width:55%;" {{!}} {{{inspired}}} | |||
| {{!}}- | |||
| |}} | |||
| {{#if:{{{debugName|}}}|{{!}} style="width:30%;font-size:95%;" {{!}} '''Debug Name'''  | |||
| {{!}} style="width:55%;" {{!}} {{{debugName}}} | |||
| {{!}}- | |||
| |}} | |||
| | style="width:45%;font-size:95%; white-space: nowrap;" | '''Item ID'''  | |||
| | style="width:55%; white-space: nowrap;" | {{{ID}}}  | |||
| |} | |} | ||
| {{#if:{{{nocat|}}}||[[Category:Weapons]]}} | {{#if:{{{nocat|}}}||[[Category:Weapons]]}} | ||
| Line 71: | Line 121: | ||
| |spawn = LCZ | |spawn = LCZ | ||
| |nocat = yes | |nocat = yes | ||
| |ID = 1 | |||
| }} | }} | ||
| __NOTOC__ | __NOTOC__ | ||
Latest revision as of 02:24, 27 May 2025
An infobox for Weapons.
Example
{{Weapon infobox
|name = Example weapon
|image = SCP Foundation (emblem).svg
|caption = Some example image
|type = SMG
|ammo = 50
|fire_rate = 300
|damage = 8
|reload = 3.3
|caliber = 9
|spawn = LCZ
}}
Syntax
{{Weapon infobox
|name = Name override
|image = Image (preferably png)
|caption = Caption under image
|type = Weapon type (Pistol/SMG/Rifle/LMG)
|ammo = Stock magazine ammo
|fire_rate = Fire rate
|damage = Per bullet damage
|reload = Reload time
|arm_time = Grenade arm time
|explosion_damage = Grenade explosion damage
|caliber = Weapon caliber (9MM, 5.56MM, 7.62MM
|spawn = Spawn locations (both zones and classes)
|nocat = Doesn't include category
}}
 
			
		