Difference between revisions of "Template:Weapon page"

From UCGO-WIKI
Jump to navigation Jump to search
m (Fix for conditional use of shot speed)
(add HG/SP columns and values)
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 {{#if: {{{EXammoCap}}}|!! 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|}}
 
|-
 
|-
{{#if: {{{nextShotSpeed}}}|{{!}} Attack Speed: {{!}}{{!}} {{{nextShotSpeed}}}ms {{#if: {{{EXnextShotSpeed}}}|{{!}}{{!}} {{{EXnextShotSpeed}}}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}}}|}}
+
| Ammo Type: || {{{ammoTypeName}}} {{#if: {{{EXammoTypeName}}}|{{!}}{{!}} {{{EXammoTypeName}}}|}} {{#if: {{{HGammoTypeName}}}|{{!}}{{!}} {{{HGammoTypeName}}}|}} {{#if: {{{SPammoTypeName}}}|{{!}}{{!}} {{{SPammoTypeName}}}|}}
 
|-
 
|-
| Ammo Capacity: || {{{ammoCap}}} {{#if: {{{EXammoCap}}}|{{!}}{{!}} {{{EXammoCap}}}|}}
+
| Ammo Capacity: || {{{ammoCap}}} {{#if: {{{EXammoCap}}}|{{!}}{{!}} {{{EXammoCap}}}|}} {{#if: {{{HGammoCap}}}|{{!}}{{!}} {{{HGammoCap}}}|}} {{#if: {{{SPammoCap}}}|{{!}}{{!}} {{{SPammoCap}}}|}}
 
|-
 
|-
| Ammo per Shot: || {{{ammoUse}}} {{#if: {{{EXammoUse}}}|{{!}}{{!}} {{{EXammoUse}}}|}}
+
| Ammo per Shot: || {{{ammoUse}}} {{#if: {{{EXammoUse}}}|{{!}}{{!}} {{{EXammoUse}}}|}} {{#if: {{{HGammoUse}}}|{{!}}{{!}} {{{HGammoUse}}}|}} {{#if: {{{SPammoUse}}}|{{!}}{{!}} {{{SPammoUse}}}|}}
 
|-
 
|-
| Weapon HP: || {{{hitpoints}}} {{#if: {{{EXhitpoints}}}|{{!}}{{!}} {{{EXhitpoints}}}|}}
+
| Weapon HP: || {{{hitpoints}}} {{#if: {{{EXhitpoints}}}|{{!}}{{!}} {{{EXhitpoints}}}|}} {{#if: {{{HGhitpoints}}}|{{!}}{{!}} {{{HGhitpoints}}}|}} {{#if: {{{SPhitpoints}}}|{{!}}{{!}} {{{SPhitpoints}}}|}}
 
|}
 
|}
 
<includeonly>[[Category:Weapons]]</includeonly>
 
<includeonly>[[Category:Weapons]]</includeonly>
 
<noinclude>[[Category:Templates]]</noinclude>
 
<noinclude>[[Category:Templates]]</noinclude>

Revision as of 01:11, 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}}}