Difference between revisions of "Template:Weapon"

1,470 bytes added ,  17:04, 22 January 2019
Added Templatedata
m (Fixed)
(Added Templatedata)
 
(5 intermediate revisions by 2 users 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>
563

edits