Template:Equipment Weapon: Difference between revisions

Template page
mNo edit summary
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 3: Line 3:
{{#cargo_declare:_table=Equipment_Weapon|Damage=WikiText|Hands=String|WeaponRange=String|Reload=String|WeaponCategory=String|WeaponGroup=String|Ammunition=String}}
{{#cargo_declare:_table=Equipment_Weapon|Damage=WikiText|Hands=String|WeaponRange=String|Reload=String|WeaponCategory=String|WeaponGroup=String|Ammunition=String}}
{{#cargo_attach:_table=Equipment}}
{{#cargo_attach:_table=Equipment}}
</noinclude><includeonly>{{#cargo_store:_table=Equipment}}
</noinclude><includeonly>{{#cargo_store:_table=Equipment|Name={{SUBPAGENAME}}|Price={{#if:{{{Price_Gp|}}}|{{{Price_Gp}}} gp|{{#if:{{{Price_Sp|}}}|{{{Price_Sp}}} sp|{{#if:{{{Price_Cp|}}}|{{{Price_Cp}}} cp|{{{Cost|—}}}}}}}}}}}{{#cargo_store:_table=Equipment_Weapon}}
<yambe:breadcrumb>Weapons</yambe:breadcrumb><!--
{{DISPLAYTITLE:{{SUBPAGENAME}}}}<div id="yambe" class="noprint">[[Main Page|Front Page]] &gt; [[Equipment]] &gt; [[Weapons]] &gt; {{SUBPAGENAME}}</div><!--


-->{{#if:{{{Image|}}}|[[{{{Image}}}|200px|thumb|right]]}}<!--
-->{{#if:{{{Image|}}}|[[{{{Image}}}|200px|thumb|right]]}}<!--
Line 12: Line 12:
! {{#ifeq:{{{Rarity|}}}|Common||Rarity !!}} {{#if:{{{Level|}}}|Level !!}} Price !! Bulk
! {{#ifeq:{{{Rarity|}}}|Common||Rarity !!}} {{#if:{{{Level|}}}|Level !!}} Price !! Bulk
|-
|-
| {{#ifeq:{{{Rarity|}}}|Common||{{{Rarity}} {{#!:||}}}} {{#if:{{{Level|}}}|{{{Level}}} {{#!:||}}}} {{#if:{{{Price_Gp|}}}|{{{Price_Gp}}} gp|{{#if:{{{Price_Sp|}}}|{{{Price_Sp}}} sp|{{#if:{{{Price_Cp|}}}|{{{Price_Cp}}} cp|{{{Cost|—}}}}}}}}} || {{{Bulk|—}}}
| {{#ifeq:{{{Rarity|}}}|Common||{{{Rarity}}} {{#!:||}}}} {{#if:{{{Level|}}}|{{{Level}}} {{#!:||}}}} {{#if:{{{Price_Gp|}}}|{{{Price_Gp}}} gp|{{#if:{{{Price_Sp|}}}|{{{Price_Sp}}} sp|{{#if:{{{Price_Cp|}}}|{{{Price_Cp}}} cp|{{{Cost|—}}}}}}}}} || {{{Bulk|—}}}
|-
|-
! Damage!!  {{#if:{{{WeaponRange|}}}|Range!!}} {{#if:{{{Reload|}}}|Reload!!}} Hands
! Damage!!  {{#if:{{{WeaponRange|}}}|Range!!}} {{#if:{{{Reload|}}}|Reload!!}} Hands
Line 32: Line 32:
{{#arraymap:{{{Traits}}}|,|x|{{#cargo_query:tables=Equipment_Traits|fields=Name,Description|where=Name="x"|format=template|template=Equipment_Traits|named args=yes}}|<br>}}}}
{{#arraymap:{{{Traits}}}|,|x|{{#cargo_query:tables=Equipment_Traits|fields=Name,Description|where=Name="x"|format=template|template=Equipment_Traits|named args=yes}}|<br>}}}}


[[Category:Equipment]]
[[Category:Weapons]]
</includeonly>
</includeonly>

Latest revision as of 13:25, 16 June 2023

This is the "Equipment Weapon" template.

It should be called in the following format:

{{Equipment Weapon
|Damage=
|Hands=
|WeaponRange=
|Reload=
|WeaponCategory=
|WeaponGroup=
|Ammunition=
}}

Edit the page to see the template text.

This template defines the table "Equipment_Weapon". View table. This template adds rows to the table "Equipment", which is declared by the template Equipment Item. View table.