Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Weapon infobox: Difference between revisions

Template page
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 20: Line 20:
|}}
|}}
{{#if:{{{weight|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Weight'''  
{{#if:{{{weight|}}}|{{!}} style="width:45%;font-size:95%;" {{!}} '''Weight'''  
{{!}} style="width:55%;" {{!}} {{#ifeq: {{PAGENAME}} | Ammunition | {{Hoverimage|<nowiki>a = </nowiki>Amount of bullets|text={{Mvar|0.25 + 0.01a}}}} | {{Hoverimage|Unrounded value: {{#expr:0.245+0.175*{{{weight}}}}}s|text={{Mvar|{{#expr:0.245+0.175*{{{weight}}} round 2}}s}}}}}}
{{!}} style="width:55%;" {{!}} {{#ask: [[item::{{{name|{{PAGENAME}}}}}]][[special::normal]][[weight::+]]|?item|?weight=weight|sort=weight|template=Weight|namedargs = yes|format=plainlist|link=none}}
{{!}}-
{{!}}-
|}}
|}}
Line 60: Line 60:
|}}
|}}
{{#if:{{{pickup_time|{{{weight|}}}}}}|{{!}} style="width:45%;font-size:95%;" {{!}} {{Hoverimage|Higher weight increases time|text='''Pick-Up Time'''}}
{{#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|Pick up time is 0.245 + 0.175w. <br> <nowiki>w = weight</nowiki>|text=Varies on weight}} | {{Hoverimage|Unrounded value: {{#expr:0.245+0.175*{{{weight}}}}}s|text={{Mvar|{{#expr:0.245+0.175*{{{weight}}} round 2}}s}}}}}}
{{!}} 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%; white-space: nowrap;" {{!}} '''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%; white-space: nowrap;" {{!}}  '''{{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%; white-space: nowrap;"" {{!}} '''Spawn Locations'''  
{{#if:{{{spawn|}}}|{{!}} style="width:45%;font-size:95%; white-space: nowrap;"" {{!}} '''Spawn Locations'''  
Line 71: Line 81:
{{!}}-
{{!}}-
|}}
|}}
<!---
{{#if:{{{Pocket|High}}}|{{!}} style="width:45%;font-size:95%; white-space: nowrap;" {{!}} '''Deletion % in Pocket Dimension'''
{{!}} style="width:55%;" {{!}} {{#switch:{{{Pocket|High}}}|High=High Tier (0%)|Medium=Medium Tier (33%)|Low=Low Tier (50%)|Keycard Override= {{Hoverimage|Janitor Keycard <br>Scientist Keycard<br>Guard Keycard<br>Zone Manager Keycard<br>|text=Low Tier (50%)}}<br>{{Hoverimage|Research Supervisor Keycard<br>Private Keycard<br>Sergeant Keycard<br>Chaos Insurgency Access Device|text=Medium Tier (33%)}}<br>{{Hoverimage|Captain Keycard<br>Containment Engineer Keycard<br>Facility Manager Keycard<br>O5 Keycard|text=High Tier (0%)}}|Coal Override = Unknown}}
{{!}}-
|}}-->
{{#if:{{{effect|}}}|{{!}} style="width:45%;font-size:95% white-space: nowrap;";" {{!}} '''Applied Effects'''  
{{#if:{{{effect|}}}|{{!}} style="width:45%;font-size:95% white-space: nowrap;";" {{!}} '''Applied Effects'''  
{{!}} style="width:55%; white-space: nowrap;" {{!}} {{{effect}}}
{{!}} style="width:55%; white-space: nowrap;" {{!}} {{{effect}}}
Line 84: Line 89:
{{!}}-
{{!}}-
|}}
|}}
| style="width:45%;font-size:95%; white-space: nowrap;" | '''Spawn ID'''  
{{#if:{{{inspired|}}}|{{!}} style="width:45%;font-size:95%; white-space: nowrap;" {{!}} '''Inspired by'''
{{!}} style="width:55%; white-space: nowrap;" {{!}} {{{inspired}}}
{{!}}-
|}}
| style="width:45%;font-size:95%; white-space: nowrap;" | '''Spawn ID'''  
| style="width:55%; white-space: nowrap;" | {{{ID}}}  
| style="width:55%; white-space: nowrap;" | {{{ID}}}  
|}
|}

Latest revision as of 17:41, 5 April 2023


Example weapon
Some example image
Stats
Type SMG
Ammo Capacity 50
Damage 8
Fire Rate 300
Reload Time 3.3s
Caliber 9 MM
Deletion % in PD Pocket Dimension
Disarm Immunity? Does having this item equipped make the player
immune to being disarmed?
Spawn Locations LCZ
Obtainable from 914? True
Spawn ID 1



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
}}

Cookies help us deliver our services. By using our services, you agree to our use of cookies.