Difference between revisions of "Template:Weapon page"

From UCGO-WIKI
Jump to navigation Jump to search
(Added parser function conditionals)
m (Variant category code)
 
(5 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
| Weight: || {{{weaponWeight}}} g
 
| Weight: || {{{weaponWeight}}} g
 
|-
 
|-
| Stock Price: || ${{{buyPrice}}} {{#if: {{{EXbuyPrice}}}|/ EX: {{{EXbuyPrice}}}|}}
+
| Buy For (Basic): || ${{{buyPrice}}}
 +
{{#if: {{{EXbuyPrice}}}|{{!}}-
 +
{{!}} Buy For (EX): {{!}}{{!}} ${{{EXbuyPrice}}}|}}
 +
{{#if: {{{HGbuyPrice}}}|{{!}}-
 +
{{!}} Buy For (HG): {{!}}{{!}} ${{{HGbuyPrice}}}|}}
 +
{{#if: {{{SPbuyPrice}}}|{{!}}-
 +
{{!}} Buy For (SP): {{!}}{{!}} ${{{SPbuyPrice}}}|}}
 
|-
 
|-
| Store Sell: || ${{{sellPrice}}} {{#if: {{{EXsellPrice}}}|/ EX: {{{EXsellPrice}}}|}}
+
| Sell For (Basic): || ${{{sellPrice}}}
 +
{{#if: {{{EXsellPrice}}}|{{!}}-
 +
{{!}} Sell For (EX): {{!}}{{!}} ${{{EXsellPrice}}}|}}
 +
{{#if: {{{HGsellPrice}}}|{{!}}-
 +
{{!}} Sell For (HG): {{!}}{{!}} ${{{HGsellPrice}}}|}}
 +
{{#if: {{{SPsellPrice}}}|{{!}}-
 +
{{!}} Sell For (SP): {{!}}{{!}} ${{{SPsellPrice}}}|}}
 
|}
 
|}
  
 
=== Technical Data ===
 
=== Technical Data ===
 
{| class="wikitable"
 
{| class="wikitable"
! Stat !! Normal !! EX
+
! Stat !! Normal {{#if: {{{EXattack}}}|!! EX|}} {{#if: {{{HGattack}}}|!! HG|}} {{#if: {{{SPattack}}}|!! SP|}}
 
|-
 
|-
| Attack: || {{{attack}}} {{#if: {{{EXattack}}}|{{!}}{{!}} {{{EXattack}}}|}}
+
| Attack: || {{{attack}}} {{#if: {{{EXattack}}}|{{!}}{{!}} {{{EXattack}}}|}} {{#if: {{{HGattack}}}|{{!}}{{!}} {{{HGattack}}}|}} {{#if: {{{SPattack}}}|{{!}}{{!}} {{{SPattack}}}|}}
 
|-
 
|-
| Accuracy: || {{{accuracy}}} {{#if: {{{EXaccuracy}}}|{{!}}{{!}} {{{EXaccuracy}}}|}}
+
| Accuracy: || {{{accuracy}}} {{#if: {{{EXaccuracy}}}|{{!}}{{!}} {{{EXaccuracy}}}|}} {{#if: {{{HGaccuracy}}}|{{!}}{{!}} {{{HGaccuracy}}}|}} {{#if: {{{SPaccuracy}}}|{{!}}{{!}} {{{SPaccuracy}}}|}}
 
|-
 
|-
| Range: || {{{range}}}m {{#if: {{{EXrange}}}|{{!}}{{!}} {{{EXrange}}}m|}}
+
| Range: || {{{range}}}m {{#if: {{{EXrange}}}|{{!}}{{!}} {{{EXrange}}}m|}} {{#if: {{{HGrange}}}|{{!}}{{!}} {{{HGrange}}}m|}} {{#if: {{{SPrange}}}|{{!}}{{!}} {{{SPrange}}}m|}}
 
|-
 
|-
| Attack Speed: || {{{nextShotSpeed}}}ms {{#if: {{{nextShotSpeed}}}|{{!}}{{!}} {{{nextShotSpeed}}}ms|}}
+
{{#if: {{{nextShotSpeed}}}|{{!}} Attack Speed: {{!}}{{!}} {{{nextShotSpeed}}}ms {{#if: {{{EXnextShotSpeed}}}|{{!}}{{!}} {{{EXnextShotSpeed}}}ms|}} {{#if: {{{HGnextShotSpeed}}}|{{!}}{{!}} {{{HGnextShotSpeed}}}ms|}} {{#if: {{{SPnextShotSpeed}}}|{{!}}{{!}} {{{SPnextShotSpeed}}}ms|}}
 +
{{!}}-|}}
 +
| Ammo Type: || {{{ammoTypeName}}} {{#if: {{{EXammoTypeName}}}|{{!}}{{!}} {{{EXammoTypeName}}}|}} {{#if: {{{HGammoTypeName}}}|{{!}}{{!}} {{{HGammoTypeName}}}|}} {{#if: {{{SPammoTypeName}}}|{{!}}{{!}} {{{SPammoTypeName}}}|}}
 
|-
 
|-
| Ammo Type: || {{{ammoTypeName}}} {{#if: {{{EXammoTypeName}}}|{{!}}{{!}} {{{EXammoTypeName}}}|}}
+
| Ammo Capacity: || {{{ammoCap}}} {{#if: {{{EXammoCap}}}|{{!}}{{!}} {{{EXammoCap}}}|}} {{#if: {{{HGammoCap}}}|{{!}}{{!}} {{{HGammoCap}}}|}} {{#if: {{{SPammoCap}}}|{{!}}{{!}} {{{SPammoCap}}}|}}
 
|-
 
|-
| Ammo Capacity: || {{{ammoCap}}} {{#if: {{{EXammoCap}}}|{{!}}{{!}} {{{EXammoCap}}}|}}
+
| Ammo per Shot: || {{{ammoUse}}} {{#if: {{{EXammoUse}}}|{{!}}{{!}} {{{EXammoUse}}}|}} {{#if: {{{HGammoUse}}}|{{!}}{{!}} {{{HGammoUse}}}|}} {{#if: {{{SPammoUse}}}|{{!}}{{!}} {{{SPammoUse}}}|}}
 
|-
 
|-
| Ammo per Shot: || {{{ammoUse}}} {{#if: {{{EXammoUse}}}|{{!}}{{!}} {{{EXammoUse}}}|}}
+
| Weapon HP: || {{{hitpoints}}} {{#if: {{{EXhitpoints}}}|{{!}}{{!}} {{{EXhitpoints}}}|}} {{#if: {{{HGhitpoints}}}|{{!}}{{!}} {{{HGhitpoints}}}|}} {{#if: {{{SPhitpoints}}}|{{!}}{{!}} {{{SPhitpoints}}}|}}
|-
 
| Weapon HP: || {{{hitpoints}}} {{#if: {{{EXhitpoints}}}|{{!}}{{!}} {{{EXhitpoints}}}|}}
 
 
|}
 
|}
<includeonly>[[Category:Weapons]]</includeonly>
+
<includeonly>[[Category:Weapons]]{{#if: {{{EXattack}}}|[[Category:EX weapons]]|}} {{#if: {{{HGattack}}}|[[Category:HG weapons]]|}} {{#if: {{{SPattack}}}|[[Category:SP weapons]]|}}</includeonly>
 
<noinclude>[[Category:Templates]]</noinclude>
 
<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 02:30, 12 February 2023

[[File:{{{image_name}}}|350px]]

Basic Info

Name: {{{client_name}}}
Weight: {{{weaponWeight}}} g
Buy For (Basic): ${{{buyPrice}}}
Buy For (EX): ${{{EXbuyPrice}}}
Buy For (HG): ${{{HGbuyPrice}}}
Buy For (SP): ${{{SPbuyPrice}}}
Sell For (Basic): ${{{sellPrice}}}
Sell For (EX): ${{{EXsellPrice}}}
Sell For (HG): ${{{HGsellPrice}}}
Sell For (SP): ${{{SPsellPrice}}}

Technical Data

Stat Normal EX HG SP
Attack: {{{attack}}} {{{EXattack}}} {{{HGattack}}} {{{SPattack}}}
Accuracy: {{{accuracy}}} {{{EXaccuracy}}} {{{HGaccuracy}}} {{{SPaccuracy}}}
Range: {{{range}}}m {{{EXrange}}}m {{{HGrange}}}m {{{SPrange}}}m
Attack Speed: {{{nextShotSpeed}}}ms {{{EXnextShotSpeed}}}ms {{{HGnextShotSpeed}}}ms {{{SPnextShotSpeed}}}ms
Ammo Type: {{{ammoTypeName}}} {{{EXammoTypeName}}} {{{HGammoTypeName}}} {{{SPammoTypeName}}}
Ammo Capacity: {{{ammoCap}}} {{{EXammoCap}}} {{{HGammoCap}}} {{{SPammoCap}}}
Ammo per Shot: {{{ammoUse}}} {{{EXammoUse}}} {{{HGammoUse}}} {{{SPammoUse}}}
Weapon HP: {{{hitpoints}}} {{{EXhitpoints}}} {{{HGhitpoints}}} {{{SPhitpoints}}}