Template:Weapon page: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(Cleanup / minor whitespace fix.)
mNo edit summary
(10 intermediate revisions by 3 users not shown)
Line 3: Line 3:
| #default = {{PageSeo
| #default = {{PageSeo
   | image = {{#if:{{{controller icon|}}}|{{{controller icon}}}|{{#if:{{{image|}}}|{{{image}}}|{{{icon|}}}}}}}
   | image = {{#if:{{{controller icon|}}}|{{{controller icon}}}|{{#if:{{{image|}}}|{{{image}}}|{{{icon|}}}}}}}
   | description = {{{seo description|{{WeaponPage/SeoDescription
   | description = {{{description|{{WeaponPage/SeoDescription
     | category = {{{category}}}
     | category = {{{category}}}
     | melee or ranged = {{{melee or ranged}}}
     | melee or ranged = {{{melee or ranged}}}
Line 17: Line 17:
| {{#replace: {{{rarity}}} | <nowiki> </nowiki> | }}
| {{#replace: {{{rarity}}} | <nowiki> </nowiki> | }}
| common
| common
}}"> {{#if:{{{image|}}} | [[File:{{{image}}}|frameless|right|alt={{PAGENAME}} image]] | {{Main only|[[Category:Equipment pages without images]]}} }}{{#if:{{{icon|}}} ||{{Main only|[[Category:Item pages without icons]]}} }}{{#if:{{{controller icon|}}} ||{{Main only|[[Category:Item pages without controller icons]]}} }}
}}"> {{#if: {{{image|}}} | [[File:{{{image}}}|frameless|right|alt={{PAGENAME}} image]] | {{#if:{{{controller icon|}}} | [[File:{{{controller icon}}}|frameless|right|alt={{PAGENAME}} controller icon]] | {{#if:{{{icon|}}} | [[File:{{{icon}}}|frameless|right|alt={{PAGENAME}} icon]] | }} }} }}{{#if: {{{image|}}} || {{Main only|[[Category:Misc pages without images]]}} }}{{#if: {{{controller icon|}}} || {{Main only|[[Category:Item pages without controller icons]]}} }}{{#if: {{{icon|}}} || {{Main only|[[Category:Item pages without icons]]}} }}


{{#if: {{{description|}}}
{{#if: {{{description|}}}
Line 63: Line 63:
<h2> Properties </h2>
<h2> Properties </h2>


<ul class="bg3wiki-property-list">
<div class="bg3wiki-property-list">
<li> {{#ifeq: {{{handedness}}} | versatile | One-handed damage: | Damage: }} </li>
; {{#ifeq: {{{handedness}}} | versatile | One-handed damage | Damage }}
<li> {{DamageInfo
: {{DamageInfo
| {{{damage}}}
| {{{damage}}}
| {{{damage type}}}
| {{{damage type}}}
| modifier = {{#if: {{{modifier|}}} | {{#ifeq: {{{modifier}}} |none||{{{modifier}}}}} | {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }} }}
| modifier = {{#if: {{{modifier|}}} | {{#ifeq: {{{modifier}}} |none||{{{modifier}}}}} | {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }} }}
}} </li> {{#ifeq: {{{handedness}}} | versatile |
}} {{#ifeq: {{{handedness}}} | versatile |
<li> Two-handed damage:</li>
; Two-handed damage
<li> {{DamageInfo
: {{DamageInfo
     | {{{versatile damage}}}
     | {{{versatile damage}}}
     | {{{damage type}}}
     | {{{damage type}}}
     | modifier = {{#if: {{{modifier|}}} | {{#ifeq: {{{modifier}}} |none||{{{modifier}}}}}| {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }} }}
     | modifier = {{#if: {{{modifier|}}} | {{#ifeq: {{{modifier}}} |none||{{{modifier}}}}}| {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }} }}
     }} </li>
     }}
}} {{#if: {{{extra damage|}}} |
}} {{#if: {{{extra damage|}}} |
<li> Extra damage:</li>
; Extra damage
<li> {{DamageInfo
: {{DamageInfo
     | {{#sub: {{{extra damage}}} | 0 | {{#rpos: {{{extra damage}}} | }} }}
     | {{#sub: {{{extra damage}}} | 0 | {{#rpos: {{{extra damage}}} | }} }}
     | {{#sub: {{{extra damage}}} | {{#expr: 1 + {{#rpos: {{{extra damage}}} | }} }} }}
     | {{#sub: {{{extra damage}}} | {{#expr: 1 + {{#rpos: {{{extra damage}}} | }} }} }}
     }} </li>
     }}
}} {{#if: {{{extra damage 2|}}} |
}} {{#if: {{{extra damage 2|}}} |
<li> {{DamageInfo
: {{DamageInfo
     | {{#sub: {{{extra damage 2}}} | 0 | {{#rpos: {{{extra damage 2}}} | }} }}
     | {{#sub: {{{extra damage 2}}} | 0 | {{#rpos: {{{extra damage 2}}} | }} }}
     | {{#sub: {{{extra damage 2}}} | {{#expr: 1 + {{#rpos: {{{extra damage 2}}} | }} }} }}
     | {{#sub: {{{extra damage 2}}} | {{#expr: 1 + {{#rpos: {{{extra damage 2}}} | }} }} }}
     }} </li>
     }}
}}
}}
<li> Details:</li>
; Details {{#if: {{{type|}}}
{{#if: {{{type|}}} | <li> {{WeaponType | {{{type}}} }} </li>}}
| : {{WeaponType | {{{type}}} }}
<li> {{Rarity | {{{rarity|common}}} | {{{rarity honour|}}} }} </li>
| [[Category:Weapon pages without a type]] [[Category:Articles with errors]]
<li> {{Enchantment | {{{enchantment|}}} }} </li>
{{#switch: {{{handedness}}}
| one-handed = <li>{{One-Handed}}</li>
| two-handed = <li>{{Two-Handed}}</li>
| versatile = <li>{{Versatile}}</li>
}} {{#if: {{{finesse|}}} | <li> {{Finesse}} </li>
}} {{#if: {{{light|}}} | <li> {{Light}} </li>
}} {{#if: {{{reach|}}} | <li> {{Reach}} </li>
}} {{#if: {{{thrown|}}} | <li> {{Thrown}} </li>
}} {{#if: {{{can't dual wield|}}} | <li> {{Can't Dual Wield}} </li>
}} {{#if: {{{dippable|}}} | <li> {{Dippable}} </li>
}}
}}
<li> {{#switch: {{{melee or ranged}}}
: {{Rarity | {{{rarity|common}}} | {{{rarity honour|}}} }}
: {{Enchantment | {{{enchantment|}}} }}
: {{#switch: {{{handedness}}}
| one-handed = {{One-Handed}}
| two-handed = {{Two-Handed}}
| versatile = {{Versatile}}
}} {{#if: {{{finesse|}}} | : {{Finesse}}
}} {{#if: {{{light|}}} | : {{Light}}
}} {{#if: {{{reach|}}} | : {{Reach}}
}} {{#if: {{{thrown|}}} | : {{Thrown}}
}} {{#if: {{{can't dual wield|}}} | : {{Can't Dual Wield}}
}} {{#if: {{{dippable|}}} | : {{Dippable}}
}}
: {{#switch: {{{melee or ranged}}}
| melee = {{Range| {{#if: {{{reach|}}} | reach | melee}} }}
| melee = {{Range| {{#if: {{{reach|}}} | reach | melee}} }}
| ranged =
| ranged =
Line 112: Line 114:
   | #default = {{Range| m = {{{range m}}} | ft = {{{range ft}}} }}
   | #default = {{Range| m = {{{range m}}} | ft = {{{range ft}}} }}
   }}
   }}
}} </li>
}}
<li> {{Weight | kg = {{{weight kg}}} | lb = {{{weight lb}}} }} </li>
: {{Weight | kg = {{{weight kg}}} | lb = {{{weight lb}}} }}
<li> {{Price | {{{price}}} | {{{price honour|}}} }}</li>
: {{Price | {{{price}}} | {{{price honour|}}} }}
{{#if:{{{uid|}}}{{{uuid|}}}|<li>{{SmallIcon|Ico stats.png}}{{#if:{{{uid|}}}|{{Uid|{{{uid}}}}} }} {{#if:{{{uuid|}}}|{{Uuid|{{{uuid}}}}} }}</li>}}
{{#if: {{{uid|}}} {{{uuid|}}} |
</ul>
: {{SmallIcon|Ico stats.png}} {{#if: {{{uid|}}} | {{Uid|{{{uid}}}}} }} {{#if:{{{uuid|}}}|{{Uuid|{{{uuid}}}}} }}
{{#if: {{{passives|}}}{{{passives main hand|}}}{{{passives off hand|}}}{{{special|}}} | {{blank}}
}}
</div> {{#if: {{{passives|}}} {{{passives main hand|}}} {{{passives off hand|}}} {{{special|}}} | {{blank}}
 
<h3> Special </h3>
<h3> Special </h3>


The holder of this item gains:
'''The holder of this item gains:'''
{{#if: {{{passives|}}} | {{#invoke: ParseList | main | {{{passives}}} | useTemplate = Passive | type = htmlList }} |}}
 
{{#if: {{{passives|}}} | {{blank}}
 
{{#invoke: ParseList | main | {{{passives}}} | useTemplate = Passive | type = htmlList }}
 
}}{{#if: {{{special|}}} | {{blank}}
 
{{{special|}}}
{{{special|}}}
{{#if: {{{passives main hand|}}} | Main Hand Only
 
{{#invoke: ParseList | main | {{{passives main hand}}} | useTemplate = Passive | type = htmlList }} | }}
}}{{#if: {{{passives main hand|}}} | {{blank}}
{{#if: {{{passives off hand|}}} | Off Hand Only
 
{{#invoke: ParseList | main | {{{passives off hand}}} | useTemplate = Passive | type = htmlList }} |}}
'''Main Hand Only:'''
 
{{#invoke: ParseList | main | {{{passives main hand}}} | useTemplate = Passive | type = htmlList }}
 
}}{{#if: {{{passives off hand|}}} | {{blank}}
 
'''Off Hand Only:'''
 
{{#invoke: ParseList | main | {{{passives off hand}}} | useTemplate = Passive | type = htmlList }}
 
}}
}}
{{#if: {{{weapon actions|}}} | {{blank}}
 
}}{{#if: {{{weapon actions|}}} | {{blank}}


<h3> Weapon actions </h3>
<h3> Weapon actions </h3>


{{WeaponProficiencyUnlocks}}
{{WeaponProficiencyUnlocks}}
{{#invoke: ParseList | main | {{{weapon actions}}} | useTemplate = WeaponAction | type = tableList }}
{{#invoke: ParseList | main | {{{weapon actions}}} | useTemplate = WeaponAction }}


}}{{#if: {{{special weapon actions|}}} | {{blank}}
}} {{#if: {{{special weapon actions|}}} | {{blank}}


<h3> Special weapon actions </h3>
<h3> Special weapon actions </h3>


This weapon also grants the following:
This weapon also grants the following:
{{#invoke: ParseList | main | {{{special weapon actions}}} | useTemplate = WeaponAction | type = tableList }}
{{#invoke: ParseList | main | {{{special weapon actions}}} | useTemplate = WeaponAction }}


}}</div>{{#if: {{{condition|}}} | {{blank}}
}}</div> {{#if: {{{condition|}}} | {{blank}}


<h3> Condition: {{{condition}}} </h3>
<h3> Condition: {{{condition}}} </h3>
Line 153: Line 173:
}}
}}
{{main namespace only|{{Inflicts|{{{condition}}}|item}}}}
{{main namespace only|{{Inflicts|{{{condition}}}|item}}}}
</div>
</div>{{#if: {{{condition2|}}} | {{blank}}
{{#if: {{{condition2|}}} |


<h3> Condition: {{{condition2}}} </h3>
<h3> Condition: {{{condition2}}} </h3>
Line 178: Line 197:


<h2> Notes </h2>
<h2> Notes </h2>
<div class="bg3wiki-tooltip-box">
<div class="bg3wiki-tooltip-box">
{{{notes}}}
{{{notes}}}
</div>
}} {{#if: {{{bugs|}}} | {{blank}}
<h2> Bugs </h2>
<div class="bg3wiki-tooltip-box">
{{{bugs}}}
{{Main namespace only|[[Category:Bugs]]}}
</div>
</div>
}}
}}
{{Main namespace only|[[Category:Equipment]] [[Category:Weapons]] [[Category:{{{melee or ranged}}} weapons]] [[Category:{{{category}}} weapons]] {{#if: {{{type|}}} | [[Category:{{{type}}}]]}}  {{#ifeq: {{{rarity|}}} | very rare | [[Category:Very rare items]] | [[Category:{{{rarity|common}}} items]]}}
{{Main namespace only|[[Category:Equipment]] [[Category:Weapons]] [[Category:{{{melee or ranged}}} weapons]] [[Category:{{{category}}} weapons]] {{#if: {{{type|}}} | [[Category:{{{type}}}]]}}  {{#ifeq: {{{rarity|}}} | very rare | [[Category:Very rare items]] | [[Category:{{{rarity|common}}} items]]}}
}}{{ItemIcon Insert
{{ItemIcon Insert
|icon={{{icon|}}}
|icon={{{icon|}}}
|image={{{controller icon|}}}
|image={{{controller icon|}}}
|uid={{{uid|}}}
|uid={{{uid|}}}
|rarity={{{rarity|common}}}
|rarity={{{rarity|common}}}
}}{{#switch: {{{this is an example|}}}
}}{{#cargo_store: _table = weapons
| yes =
| #default = {{#cargo_store: _table = weapons
| name = {{{name | {{#titleparts: {{PAGENAME}} }} }}}
| name = {{{name | {{#titleparts: {{PAGENAME}} }} }}}
| uid = {{{uid|}}}
| uid = {{{uid|}}}

Navigation menu