Template:Weapon infobox: Difference between revisions
Template page
More actions
| mNo edit summary | No edit summary | ||
| (40 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| { | <includeonly> | ||
| | | {| class="floatright" style="font-size:90%; width:100%; max-width:400px"  | ||
| |-  | |||
| | | ! class="infobox2" colspan="2" style="font-size:130%;" | {{{name|{{PAGENAME}}}}} | ||
| | | |- | ||
| | | {{#if:{{{image|}}} |{{!}} style="padding:0.5em; text-align:center;" colspan="2" {{!}} [[File:{{{image}}}{{!}}250px|link=File:{{{image}}}]] | ||
| {{!}}- | |||
| | | |}} | ||
| {{#if:{{{caption|}}}|{{!}} style="text-align:center;" colspan="2" {{!}} <small>{{{caption}}}</small> | |||
| {{!}}- | |||
| | | |}} | ||
| | | | class="infobox3" colspan="2" | Basic Information | ||
| |- | |||
| | | | style="width:45%;font-size:95%;" | '''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'''  | |||
| | | {{!}} style="width:55%;" {{!}} {{{ammo}}} | ||
| | | {{!}}- | ||
| |}} | |||
| | | {{#if:{{{damage|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Damage'''  | ||
| | | {{!}} style="width:55%;" {{!}} {{{damage}}} | ||
| {{!}}- | |||
| | | |}} | ||
| | | {{#if:{{{headdamage|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Headshot Damage'''  | ||
| {{!}} style="width:55%;" {{!}} {{{headdamage}}} | |||
| {{!}}- | |||
| |}} | |||
| | | {{#if:{{{fire_rate|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Fire Rate'''  | ||
| {{!}} style="width:55%;" {{!}} {{{fire_rate}}} | |||
| {{!}}- | |||
| | | |}} | ||
| | | {{#if:{{{reload|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Reload Time'''  | ||
| {{!}} style="width:55%;" {{!}} {{{reload}}}s  | |||
| {{!}}- | |||
| |}} | |||
| | | {{#if:{{{explosion_damage|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Explosion Damage'''  | ||
| {{!}} style="width:55%;" {{!}} {{{explosion_damage}}} | |||
| {{!}}- | |||
| | | |}} | ||
| | | {{#if:{{{blast_damage|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Blast Damage'''  | ||
| }} | {{!}} style="width:55%;" {{!}} {{{blast_damage}}} | ||
| {{!}}- | |||
| |}} | |||
| {{#if:{{{blast_duration|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Blast Duration'''  | |||
| {{!}} style="width:55%;" {{!}} {{{blast_duration}}} | |||
| {{!}}- | |||
| |}} | |||
| {{#if:{{{arm_time|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Fuse Time'''  | |||
| {{!}} style="width:55%;" {{!}} {{{arm_time}}}s | |||
| {{!}}- | |||
| |}} | |||
| {{#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}}} | |||
| {{!}}- | |||
| |}} | |||
| {{#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]]}} | |||
| </includeonly> | |||
| <noinclude> | <noinclude> | ||
| {{Weapon infobox | {{Weapon infobox | ||
| Line 56: | Line 115: | ||
| |type = SMG | |type = SMG | ||
| |ammo = 50 | |ammo = 50 | ||
| |fire_rate =  | |fire_rate = 300 | ||
| |damage = 8 | |damage = 8 | ||
| |reload = 3. | |reload = 3.3 | ||
| |caliber = 9  | |caliber = 9 | ||
| |spawn = LCZ | |spawn = LCZ | ||
| |nocat = yes | |||
| |ID = 1 | |||
| }} | }} | ||
| __NOTOC__ | |||
| An infobox for [[:Category:Weapons|Weapons]]. | |||
| ==Example== | |||
| <code><nowiki>{{Weapon infobox</nowiki></code><br> | |||
| <code><nowiki>|name = Example weapon</nowiki></code><br> | |||
| <code><nowiki>|image = SCP Foundation (emblem).svg</nowiki></code><br> | |||
| <code><nowiki>|caption = Some example image</nowiki></code><br> | |||
| <code><nowiki>|type = SMG</nowiki></code><br> | |||
| <code><nowiki>|ammo = 50</nowiki></code><br> | |||
| <code><nowiki>|fire_rate = 300</nowiki></code><br> | |||
| <code><nowiki>|damage = 8</nowiki></code><br> | |||
| <code><nowiki>|reload = 3.3</nowiki></code><br> | |||
| <code><nowiki>|caliber = 9</nowiki></code><br> | |||
| <code><nowiki>|spawn = LCZ</nowiki></code><br> | |||
| <code><nowiki>}}</nowiki></code> | |||
| ==Syntax== | |||
| <code><nowiki>{{Weapon infobox</nowiki></code><br> | |||
| <code><nowiki>|name = Name override</nowiki></code><br> | |||
| <code><nowiki>|image = Image (preferably png)</nowiki></code><br> | |||
| <code><nowiki>|caption = Caption under image</nowiki></code><br> | |||
| <code><nowiki>|type = Weapon type (Pistol/SMG/Rifle/LMG)</nowiki></code><br> | |||
| <code><nowiki>|ammo = Stock magazine ammo</nowiki></code><br> | |||
| <code><nowiki>|fire_rate = Fire rate</nowiki></code><br> | |||
| <code><nowiki>|damage = Per bullet damage</nowiki></code><br> | |||
| <code><nowiki>|reload = Reload time</nowiki></code><br> | |||
| <code><nowiki>|arm_time = Grenade arm time</nowiki></code><br> | |||
| <code><nowiki>|explosion_damage = Grenade explosion damage</nowiki></code><br> | |||
| <code><nowiki>|caliber = Weapon caliber (9MM, 5.56MM, 7.62MM</nowiki></code><br> | |||
| <code><nowiki>|spawn = Spawn locations (both zones and classes)</nowiki></code><br> | |||
| <code><nowiki>|nocat = Doesn't include category</nowiki></code><br> | |||
| <code><nowiki>}}</nowiki></code> | |||
| [[Category:Templates]][[Category:Infoboxes]] | |||
| </noinclude> | </noinclude> | ||
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
}}
 
			
		