Difference between revisions of "Template:Weapon"

From Roleplay UK Wiki
Jump to navigation Jump to search
m (Protected "Template:Weapon": General Template - High Use ([Edit=⧼protect-level-TemplateProtect⧽] (indefinite) [Move=⧼protect-level-TemplateProtect⧽] (indefinite)))
(Added Templatedata)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<div style="float: right">
{| class="infobox"
{| class="infobox"
|+ style="background-color: #c1c1c1;" |{{PAGENAME}}
|+ class="infobox-title"|{{PAGENAME}}
!colspan="2"|[[File:{{{Image}}}|center|top|class=infobox-image|200px]]
|colspan="2"|[[File:{{{Image}}}|center|top|class=infobox-image|200px]]
|-
|-
| '''Type:'''
| '''Type:'''
Line 13: Line 12:
| {{#ifeq: {{{BuyPrice}}} | -1 | Not Buyable | £{{formatnum:{{{BuyPrice}}}}}}}
| {{#ifeq: {{{BuyPrice}}} | -1 | Not Buyable | £{{formatnum:{{{BuyPrice}}}}}}}
|-
|-
!colspan="2" style="background-color: #c1c1c1; text-align:center; font-size:12pt;" |{{PAGENAME}} Stats
!colspan="2"|{{PAGENAME}} Stats
|-
|-
| '''Bullet Caliber:'''
| '''Bullet Caliber:'''
Line 30: Line 29:
| {{#ifeq: {{{WeaponIllegal}}} | 1 | Illegal | Legal}}
| {{#ifeq: {{{WeaponIllegal}}} | 1 | Illegal | Legal}}
|}
|}
</div>
<noinclude>
<noinclude>
[[Category:Templates]]
[[Category:Templates]]
[[Category:Weapon Templates]]
[[Category:Weapon Templates]]
<templatedata>
{
"params": {
"Image": {
"label": "Image Filename - Make sure its uploaded!",
"example": "mk1.png",
"type": "wiki-file-name",
"required": true
},
"WepType": {
"label": "Type of Weapon",
"description": "Weapon type (I.e. Pistol, Rifle etc)",
"example": "Pistol, Rifle",
"type": "string"
},
"LicenseType": {
"label": "Licence Type required to buy weapon",
"description": "Licences include Handgun, Rebel, Advanced Rebel",
"example": "Handgun, Rebel, Advanced Rebel",
"type": "string",
"required": true
},
"BuyPrice": {
"label": "Cost to buy Weapon",
"description": "Total buy price at full price.",
"example": "100,000",
"type": "number",
"required": true
},
"BulletCaliber": {
"label": "Bullet Calliber",
"description": "Bullet Calibre accepted",
"example": "5.56, 6.5, 7.2",
"type": "string",
"required": true
},
"FireModes": {
"label": "Fire Modes",
"description": "Available Fire Modes",
"example": "Single Shot, Burst Fire, Full Auto",
"type": "string",
"required": true
},
"ROF": {
"label": "Rate of Fire",
"description": "Max Rate of Fire",
"example": "700",
"type": "number",
"required": true
},
"Storage": {
"label": "Storage Locations on person",
"description": "Where can you store this weapon?",
"example": "Uniform, Vest, Backpack",
"type": "string",
"required": true
},
"WeaponIllegal": {
"label": "Legal Status",
"description": "Is this weapon legal or not?",
"type": "boolean"
}
}
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 16:04, 22 January 2019

Weapon
[[File:{{{Image}}}|center|top|class=infobox-image|200px]]
Type: [[{{{WepType}}}]]
License Required: {{{LicenseType}}}
Buy Price: £{{{BuyPrice}}}
Weapon Stats
Bullet Caliber: {{{BulletCaliber}}}
Fire Modes: {{{FireModes}}}
Rate of Fire: {{{ROF}}}
Storage: {{{Storage}}}
Legal Status Legal

No description.

Template parameters

ParameterDescriptionTypeStatus
Image Filename - Make sure its uploaded!Image

no description

Example
mk1.png
Filerequired
Type of WeaponWepType

Weapon type (I.e. Pistol, Rifle etc)

Example
Pistol, Rifle
Stringoptional
Licence Type required to buy weaponLicenseType

Licences include Handgun, Rebel, Advanced Rebel

Example
Handgun, Rebel, Advanced Rebel
Stringrequired
Cost to buy WeaponBuyPrice

Total buy price at full price.

Example
100,000
Numberrequired
Bullet CalliberBulletCaliber

Bullet Calibre accepted

Example
5.56, 6.5, 7.2
Stringrequired
Fire ModesFireModes

Available Fire Modes

Example
Single Shot, Burst Fire, Full Auto
Stringrequired
Rate of FireROF

Max Rate of Fire

Example
700
Numberrequired
Storage Locations on personStorage

Where can you store this weapon?

Example
Uniform, Vest, Backpack
Stringrequired
Legal StatusWeaponIllegal

Is this weapon legal or not?

Booleanoptional