60,639
editsAd placeholder
Template:Weapon page: Difference between revisions
Jump to navigation
Jump to search
More robust auto categorization
(category casing) |
HiddenDragon (talk | contribs) (More robust auto categorization) |
||
(56 intermediate revisions by 9 users not shown) | |||
Line 2: | Line 2: | ||
| yes = | | yes = | ||
| #default = {{PageSeo | | #default = {{PageSeo | ||
| image = {{{image}}} | | image = {{#if:{{{controller icon|}}}|{{{controller icon}}}|{{#if:{{{image|}}}|{{{image}}}|{{{icon|}}}}}}} | ||
| description = {{{ | | 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}}}| | }}"> {{#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 59: | Line 59: | ||
}} | }} | ||
{{#if: {{{quote|}}} | {{Description|{{{quote}}}}} }} | {{#if: {{{quote|}}} | {{Description|{{{quote}}}}}}} | ||
<h2> Properties </h2> | <h2> Properties </h2> | ||
< | <div class="bg3wiki-property-list"> | ||
; {{#ifeq: {{{handedness}}} | versatile | One-handed damage | Damage }} | |||
: {{DamageInfo | |||
| {{{damage}}} | | {{{damage}}} | ||
| {{{damage type}}} | | {{{damage type}}} | ||
| modifier = {{#if: {{{modifier|}}} | {{{modifier}}} | {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }} }} | | modifier = {{#if: {{{modifier|}}} | {{#ifeq: {{{modifier}}} |none||{{{modifier}}}}} | {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }} }} | ||
}} | }} {{#ifeq: {{{handedness}}} | versatile | | ||
; Two-handed damage | |||
: {{DamageInfo | |||
| {{{versatile damage}}} | | {{{versatile damage}}} | ||
| {{{damage type}}} | | {{{damage type}}} | ||
| modifier = {{#if: {{{modifier|}}} | {{{modifier}}} | {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }} }} | | modifier = {{#if: {{{modifier|}}} | {{#ifeq: {{{modifier}}} |none||{{{modifier}}}}}| {{#if: {{{finesse|}}} | finesse | {{{melee or ranged}}} }} }} | ||
}} | }} | ||
}} {{#if: {{{extra damage|}}} | | }} {{#if: {{{extra damage|}}} | | ||
; Extra damage | |||
: {{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}}} | }} }} }} | ||
}} | }} | ||
}} {{#if: {{{extra damage 2|}}} | | }} {{#if: {{{extra damage 2|}}} | | ||
: {{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}}} | }} }} }} | ||
}} | }} | ||
}} | }} | ||
; Details {{#if: {{{type|}}} | |||
{{#if: {{{type|}}} | | | : {{WeaponType | {{{type}}} }} | ||
| [[Category:Weapon pages without a type]] [[Category:Articles with errors]] | |||
}} | }} | ||
: {{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}}} }} | ||
}} | }} | ||
}} | }} | ||
: {{Weight | kg = {{{weight kg}}} | lb = {{{weight lb}}} }} | |||
: {{Price | {{{price}}} | {{{price honour|}}} }} | |||
{{#if:{{{uid|}}}{{{uuid|}}}| | {{#if: {{{uid|}}} {{{uuid|}}} | | ||
{{#if: {{{special|}}} | {{blank}} | : {{SmallIcon|Ico stats.png}} {{#if: {{{uid|}}} | {{Uid|{{{uid}}}}} }} {{#if:{{{uuid|}}}|{{Uuid|{{{uuid}}}}} }} | ||
}} | |||
</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:''' | ||
{{{special}}} | |||
}} {{#if: {{{ | {{#if: {{{passives|}}} | {{blank}} | ||
{{Table list|{{#invoke: ParseList | main | {{{passives}}} | useTemplate = Passive | type = htmlList }}}} | |||
}}{{#if: {{{special|}}} | {{blank}} | |||
{{{special|}}} | |||
}}{{#if: {{{passives main hand|}}} | {{blank}} | |||
'''Main Hand Only:''' | |||
{{Table list|{{#invoke: ParseList | main | {{{passives main hand}}} | useTemplate = Passive | type = htmlList }}}} | |||
}}{{#if: {{{passives off hand|}}} | {{blank}} | |||
'''Off Hand Only:''' | |||
{{Table list|{{#invoke: ParseList | main | {{{passives off hand}}} | useTemplate = Passive | type = htmlList }}}} | |||
}} | |||
}}{{#if: {{{weapon actions|}}} | {{blank}} | |||
<h3> Weapon actions </h3> | <h3> Weapon actions </h3> | ||
{{WeaponProficiencyUnlocks}} | {{WeaponProficiencyUnlocks}} | ||
{{#invoke: ParseList | main | {{{weapon actions}}} | useTemplate = WeaponAction | style = none }} | |||
}} {{#if: {{{special weapon actions|}}} | {{blank}} | }} {{#if: {{{special weapon actions|}}} | {{blank}} | ||
Line 138: | Line 160: | ||
This weapon also grants the following: | This weapon also grants the following: | ||
{{#invoke: ParseList | main | {{{special weapon actions}}} | useTemplate = WeaponAction | | {{#invoke: ParseList | main | {{{special weapon actions}}} | useTemplate = WeaponAction | style = none }} | ||
}}</div> {{#if: {{{condition|}}} | | }}</div> {{#if: {{{condition|}}} | {{blank}} | ||
<h3> Condition: {{{condition}}} </h3> | <h3> Condition: {{{condition}}} </h3> | ||
Line 149: | Line 171: | ||
| duration = {{{condition duration|}}} | | duration = {{{condition duration|}}} | ||
| dc = {{{condition dc|}}} | | dc = {{{condition dc|}}} | ||
| radius m = {{{condition radius m|}}} | |||
}} | }} | ||
{{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 161: | Line 183: | ||
| duration = {{{condition2 duration|}}} | | duration = {{{condition2 duration|}}} | ||
| dc = {{{condition2 dc|}}} | | dc = {{{condition2 dc|}}} | ||
| radius m = {{{condition2 radius m|}}} | |||
}} | }} | ||
{{main namespace only|{{Inflicts|{{{condition2}}}|item}}}} | {{main namespace only|{{Inflicts|{{{condition2}}}|item}}}} | ||
Line 179: | Line 202: | ||
<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]] | {{Main namespace only|[[Category:Equipment]] | ||
}}{{ItemIcon Insert | [[Category:Weapons]] | ||
{{#switch: {{lc:{{{melee or ranged|}}}}} | |||
| melee = [[Category:Melee weapons]] | |||
| ranged = [[Category:Ranged weapons]] | |||
| #default = }} | |||
{{#switch: {{lc:{{{category|}}}}} | |||
| martial = [[Category:Martial weapons]] | |||
| simple = [[Category:Simple weapons]] | |||
| #default = }} | |||
{{#if: {{{type|}}} | [[Category:{{{type}}}]]}} | |||
{{#switch: {{lc:{{{rarity|}}}}} | |||
| common = [[Category:Common items]] | |||
| uncommon = [[Category:Uncommon items]] | |||
| rare = [[Category:Rare items]] | |||
| very rare = [[Category:Very rare items]] | |||
| legendary = [[Category:Legendary items]] | |||
| story = [[Category:Story items]] | |||
| #default = [[Category:Common items]]}}{{ItemIcon Insert | |||
|icon={{{icon|}}} | |icon={{{icon|}}} | ||
|image={{{ | |image={{{controller icon|}}} | ||
|uid={{{uid|}}} | |||
|rarity={{{rarity|common}}} | |rarity={{{rarity|common}}} | ||
}} | }}{{#cargo_store: _table = weapons | ||
| name = {{{name | {{#titleparts: {{PAGENAME}} }} }}} | | name = {{{name | {{#titleparts: {{PAGENAME}} }} }}} | ||
| uid = {{{uid|}}} | |||
| legacy = {{#var:legacy|}} | | legacy = {{#var:legacy|}} | ||
| rarity = {{IfEmpty | {{{rarity|}}} | common}} | | rarity = {{IfEmpty | {{{rarity|}}} | common}} | ||
Line 531: | Line 286: | ||
}} | }} | ||
}} | }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude>{{documentation}} | ||
{{#cargo_declare: _table = weapons | |||
| name = String (mandatory) | |||
| uid = String | |||
{ | | legacy = String(allowed values = inaccessible, unobtainable) | ||
| image = File | |||
| controller_icon = File | |||
| icon = File | |||
| description = Wikitext | |||
| quote = Wikitext | |||
| category = String (allowed values = simple, martial) | |||
| handedness = String (allowed values = one-handed, two-handed, versatile) | |||
| melee_or_ranged = String (allowed values = melee, ranged) | |||
| type = Page | |||
| rarity = String | |||
| rarity_order = Integer | |||
| enchantment = String | |||
| damage = String | |||
| damage_type = String (allowed values = Piercing, Slashing, Bludgeoning) | |||
| versatile_damage = String | |||
| extra_damage = String | |||
| extra_damage_type = String | |||
| extra_damage_2 = String | |||
| extra_damage_2_type = String | |||
| range_m = String | |||
| range_ft = String | |||
| finesse = Boolean | |||
| heavy = Boolean | |||
| light = Boolean | |||
| reach = Boolean | |||
| thrown = Boolean | |||
| cannot_dual_wield = Boolean | |||
| dippable = Boolean | |||
| weight_kg = String | |||
| weight_lb = String | |||
| price = String | |||
| passives = List (,) of String | |||
| passives_main_hand = List (,) of String | |||
| passives_off_hand = List (,) of String | |||
| weapon_actions = List (,) of String | |||
| special_weapon_actions = List (,) of String | |||
| special = Wikitext | |||
| where_to_find = Wikitext | |||
}}</noinclude> | |||
} | |||