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

Template:Infobox/Weapon: Difference between revisions

Template page
Content added Content deleted
No edit summary
Tag: Reverted
No edit summary
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>[[Category:Weapon]]
<includeonly>[[Category:Weapon]]
<table class="infobox-table floatright" style="padding-top:0">
<div class="infobox floatright">
<div class="infobox__header">
{{Infobox/Item
<div class="infobox__image" style="border-radius: 8px 8px 0 0; overflow: hidden;">[[File:{{{Image}}}|400px]]</div>
{{#if:{{{Type|}}}|{{!}}Type={{{Type}}}}}
<div class="infobox__title">{{{Name|{{PAGENAME}}}}}
{{#if:{{{SubType|}}}|{{!}}SubType={{{SubType}}}}}
{{#if:{{{Manufacturer|}}}|{{!}}Manufacturer={{{Manufacturer}}}}}
{{#if:{{{Manufacturer|}}}|<div class="infobox__item">
<div class="infobox__manufacturer">[[{{{Manufacturer}}}]]</div>
{{#if:{{{Variants|}}}|{{!}}Variants={{{Variants}}}}}
</div>}}
{{#if:{{{Weight|}}}|{{!}}Weight={{{Weight}}}}}
</div>
{{#if:{{{Trader|}}}|{{!}}Trader={{{Trader}}}}}

{{#if:{{{Buy Cost|}}}|{{!}}Buy Cost={{{Buy Cost}}}}}
</div>
{{#if:{{{Sell Cost|}}}|{{!}}Sell Cost={{{Sell Cost}}}}}
<div class="infobox__content">
}}
<div class="infobox__section">
<tr>
<div class="infobox__sectionContent infobox__grid--cols-2">
<th width="100%" colspan="3" class="infobox-table-h1" style="text-align: center;">Weapon Specs</th>
{{#if:{{{Type|}}}|<div class="infobox__item">
</tr>
<div class="infobox__label">Type</div>
{{#if:{{{Accuracy|}}}|<tr>
<div class="infobox__data">[[{{{Type}}}]]</div>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Accuracy</td>
</div>}}
<td width="60%" style="padding:3px;">{{{Accuracy}}}</td>
{{#if:{{{SubType|}}}|<div class="infobox__item">
</tr>}}
<div class="infobox__label">SubType</div>
{{#if:{{{Recoil Control|}}}|<tr>
<div class="infobox__data">[[{{{SubType}}}]]</div>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Recoil Control</td>
</div>}}
<td width="60%" style="padding:3px;">{{{Recoil Control}}}</td>
</tr>}}
</div>
</div>
{{#if:{{{Arm Stamina Drain|}}}|<tr>
<div class="infobox__section">
<td width="40%" valign="top" colspan="2" style="padding:3px;">Arm Stamina Drain</td>
<div class="infobox__sectionTitle">Stats</div>
<td width="60%" style="padding:3px;">{{{Arm Stamina Drain}}}</td>
<div class="infobox__sectionContent infobox__grid--cols-2">
</tr>}}
{{#if:{{{Weapon Handling|}}}|<tr>
{{#if:{{{Weight|}}}|<div class="infobox__item">
<div class="infobox__label">Weight</div>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Weapon Handling</td>
<td width="60%" style="padding:3px;">{{{Weapon Handling}}}</td>
<div class="infobox__data">{{{Weight}}}</div>
</tr>}}
</div>}}
{{#if:{{{Reload Time|}}}|<tr>
{{#if:{{{Accuracy|}}}|<div class="infobox__item">
<div class="infobox__label">Accuracy</div>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Reload Time</td>
<td width="60%" style="padding:3px;">{{{Reload Time}}}</td>
<div class="infobox__data">{{{Accuracy}}}</div>
</tr>}}
</div>}}
{{#if:{{{Fire Rate|}}}|<tr>
{{#if:{{{Recoil Control|}}}|<div class="infobox__item">
<div class="infobox__label">Recoil Control</div>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Fire Rate</td>
<td width="60%" style="padding:3px;">{{{Fire Rate}}}</td>
<div class="infobox__data">{{{Recoil Control}}}</div>
</tr>}}
</div>}}
{{#if:{{{Description|}}}|<tr>
{{#if:{{{Arm Stamina Drain|}}}|<div class="infobox__item">
<div class="infobox__label">Arm Stamina Drain</div>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Description</td>
<td width="60%" style="padding:3px;">{{{Description}}}</td>
<div class="infobox__data">{{{Arm Stamina Drain}}}</div>
</tr>}}
</div>}}
{{#if:{{{Protection Level|}}}|<tr>
{{#if:{{{Weapon Handling|}}}|<div class="infobox__item">
<div class="infobox__label">Weapon Handling</div>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Protection Level</td>
<td width="60%" style="padding:3px;">{{{Protection Level}}}</td>
<div class="infobox__data">{{{Weapon Handling}}}</div>
</tr>}}
</div>}}
{{#if:{{{Flash Protection|}}}|<tr>
{{#if:{{{Reload Time|}}}|<div class="infobox__item">
<div class="infobox__label">Reload Time</div>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Flash Protection</td>
<td width="60%" style="padding:3px;">{{{Flash Protection}}}</td>
<div class="infobox__data">{{{Reload Time}}}</div>
</tr>}}
</div>}}
{{#if:{{{Material|}}}|<tr>
{{#if:{{{Fire Rate|}}}|<div class="infobox__item">
<div class="infobox__label">Fire Rate</div>
<td width="40%" valign="top" colspan="2" style="padding:3px;">Material</td>
<td width="60%" style="padding:3px;">{{{Material}}}</td>
<div class="infobox__data">{{{Fire Rate}}}</div>
</tr>}}
</div>}}
</table>
</div>
</div>
<div class="infobox__section">
<div class="infobox__sectionHeader">
<div class="infobox__sectionTitle">Cost</div>
</div>
<div class="infobox__sectionContent infobox__grid--cols-2">
{{#if:{{{Buy Cost|}}}|<div class="infobox__item">
<div class="infobox__label">Buy Cost</div>
<div class="infobox__data">{{{Buy Cost}}}</div>
</div>}}
{{#if:{{{Sell Cost|}}}|<div class="infobox__item">
<div class="infobox__label">Sell Cost</div>
<div class="infobox__data">{{{Sell Cost}}}</div>
</div>}}
{{#if:{{{Trader|}}}|<div class="infobox__item">
<div class="infobox__label">Trader</div>
<div class="infobox__data">[[{{{Trader}}}]]</div>
</div>}}
</div>
</div>
</div>
</div>
{{Short description|Item}}
{{Short description|Item}}
[[Category:Items]][[Category:Item: {{{Type}}}]]
[[Category:Items]][[Category:Item: {{{Type}}}]][[Category:{{{Trader}}} Stock]]
<templatestyles src="Template:Infobox/styles.css" /></includeonly>
<templatestyles src="User:BloodThermic/weapon.css" /></includeonly>
<noinclude>
<noinclude>
{{/doc}}
{{/doc}}

Latest revision as of 09:07, 17 May 2024


Usage

{{Infobox Weapon
| Image =
| Type = 
| SubType =
| Weight = 
| Manufacturer =
| Fuse Delay =
| Effective Radius =
| Fragments =
| Burning Time =
| Accuracy =
| Recoil Drain =
| Arm Stamina Drain =
| Weapon Handling =
| Reload Time =
| Fire Rate =
| Variants = 
| Buy Cost =
| Sell Cost =
| Trader = (Name)
| Related =
}}

Template Data

A Templated used in the creation of Weapons

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
ImageImage

no description

Fileoptional
TypeType

What type of weapon is this?

Example
Throwable / Firearm
Stringrequired
SubTypeSubType

What type of weapon is this?

Example
Assault Rifle / AK / Shotgun / Grenade
Stringrequired
WeightWeight

The weight stated on the weapon stats in kg.

Stringrequired
ManufacturerManufacturer

The company to makes the weapon stated on the weapon stats.

Stringrequired
Fuse DelayFuse Delay

How long it takes for the weapon to explode after being thrown.

Stringoptional
Effective RadiusEffective Radius

How far the grenade can damage from the center of the explosion.

Stringoptional
FragmentsFragments

The number of fragments the grenade will split into when it explodes.

Stringoptional
Burning TimeBurning Time

The time a smoke grenade will last when thrown.

Stringoptional
AccuracyAccuracy

The MOA of the weapon stated on the weapon stats.

Stringrequired
Recoil DrainRecoil Drain

The parentage increase/decrease in Recoil Drain stated on the weapon stats.

Stringrequired
Arm Stamina DrainArm Stamina Drain

The parentage increase/decrease in Arm Stamina Drain stated on the weapon stats.

Stringrequired
Weapon HandlingWeapon Handling

The parentage increase/decrease in handling stated on the weapon stats.

Stringrequired
Reload TimeReload Time

The reload time stated on the weapon stats.

Stringrequired
Fire RateFire Rate

The rate at which the gun cycles a bullet stated on the weapon stats.

Stringrequired
VariantsVariants

What other types of this wearable is there.

Stringoptional
Buy CostBuy Cost

The cost to buy at the Trader.

Stringrequired
Sell CostSell Cost

The cost to sell weapon at the Trader.

Stringrequired
TraderTrader

Name of the Vendor sold the item.

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