Difference between revisions of "Template:Weapon progression entry"
Jump to navigation
Jump to search
imported>Elaeagnifolia (Created page with "<noinclude>{{doc}}Category:Templates</noinclude><includeonly>{{#vardefine:element|{{#cargo_query:tables=Weapons|where=WeaponName="{{{1|}}}"|fields=ElementalType|default=|l...") |
>Boblers (changing Skill Tooltip to Icon Skill, to decrease computation workload. If no skill is found, display "None".) |
||
| (218 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly>{{#vardefine: | + | <noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><!-- |
| + | -->{{#vardefine:name|{{{1|{{{WeaponName|}}}}}}}}<!-- | ||
| + | -->{{#invoke:CargoQuery|main | ||
| + | |q?tables=Weapons | ||
| + | |q?fields=_pageName=link,MinHp,MinAtk,MaxHp,MaxAtk,Skill,Abilities11,Abilities21,CONCAT(BaseId, ' 01 ', FormId)=ImageName | ||
| + | |q?where=WeaponName='{{EscQ|{{#var:name}}}}' | ||
| + | |template=vardefine}}<!-- | ||
| + | -->{{#if:{{#var:Abilities11}} | | {{#vardefine:Abilities11|0}} }}<!-- Set default value 0 if undefined | ||
| + | -->{{#if:{{#var:Abilities21}} | | {{#vardefine:Abilities21|0}} }}<!-- Set default value 0 if undefined | ||
Content display | Content display | ||
| − | --><div class="panel" style="display:inline-block; padding-bottom:1em; border: | + | --><div class="panel" style="display:inline-block; padding-bottom:1em; border:0px"> |
| − | |||
<div class="panel-body" style="display:flex;flex-wrap:wrap;"> | <div class="panel-body" style="display:flex;flex-wrap:wrap;"> | ||
{{#ifeq:{{{noimage|0}}} | 0 | | {{#ifeq:{{{noimage|0}}} | 0 | | ||
| − | <div>{{#ifeq:{{{unknown|0}}} | 0 | [[File:{{# | + | <div>{{#ifeq:{{{unknown|0}}} | 0 | [[File:{{#var:ImageName}}.png|90px|link={{#var:link}}]] | [[File:Unknown.png|90px|link={{#var:link}}]] }} |
</div>}} | </div>}} | ||
| − | <div style=" | + | <div style="margin-left:8px;"> |
| − | <div> | + | <div><u>'''[[{{#var:link}}|{{#var:name}}]]'''</u></div> |
| − | {{ | + | <div>'''HP''': {{#var:MinHp}} - {{#var:MaxHp}}</div> |
| − | {{ | + | <div>'''Str''': {{#var:MinAtk}} - {{#var:MaxAtk}}</div> |
| + | <div>'''Skill''': {{#if:{{#var:Skill}}|{{Icon|Skill|{{#var:Skill}}|size=24px|text=1}}|None}}</div> | ||
| + | <div>'''Abilities''': {{#ifeq:{{#var:Abilities11}}|0|None|{{AbilityText|Id={{#var:Abilities11}}}}}}<!-- | ||
| + | -->{{#ifeq:{{#var:Abilities21}}|0|| {{AbilityText|Id={{#var:Abilities21}}}}}} | ||
</div> | </div> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
</div> | </div> | ||
| − | |||
</div> | </div> | ||
</div></includeonly> | </div></includeonly> | ||
Latest revision as of 07:05, 16 July 2020
Error: Table Weapons not found.
| Tier 1 | Tier 2 | Tier 3 |
|---|---|---|
| Lua error: Error: Table Weapons not found.. | Lua error: Error: Table Weapons not found.. | Lua error: Error: Table Weapons not found.. |
| Lua error: Error: Table Weapons not found.. | Lua error: Error: Table Weapons not found.. | |
| Lua error: Error: Table Weapons not found.. | Lua error: Error: Table Weapons not found.. | |
| Lua error: Error: Table Weapons not found.. | Lua error: Error: Table Weapons not found.. | |
| Lua error: Error: Table Weapons not found.. | Lua error: Error: Table Weapons not found.. |