Difference between revisions of "User:Caledor92/Sandbox1"
Jump to navigation
Jump to search
>Caledor92 |
>Caledor92 |
||
| Line 1: | Line 1: | ||
| − | <noinclude> | + | <noinclude>{{doc}}[[Category:Templates]]<includeonly><div class="panel" style="margin:auto;max-width:800px"> |
| − | < | + | <div class="panel-heading">{{InlineIcon|Icon Element|{{{ElementalType|}}}}} {{{Name|{{PAGENAME}}}}}</div> |
| − | {{ | + | <div class="panel-body" style="display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center"> |
| − | + | <div style="width:350px;text-align:center">{{#vardefine:icon|{{#ifexist: File:{{{Id|}}}.png | [[File:{{{Id|}}}.png|160px]] | [[File:Unknown.png|160px|link=File:{{{Id|}}}.png]] }}}}<!-- | |
| − | + | If the (Small) version of the icon exists, show it in a tabber, otherwise just show the main icon | |
| − | + | -->{{exists|File:{{{Id|}}} (Small).png | | |
| − | < | + | then={{#tag:tabber| |
| − | }}</includeonly> | + | Icon= {{#var:icon}} |
| + | {{!}}-{{!}}Small Icon= [[File:{{{Id|}}} (Small).png]] }} | | ||
| + | else={{#var:icon}} }}</div> | ||
| + | <div style="flex-grow:1;text-align:center"> | ||
| + | <p style="width:300px;margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Description</p> | ||
| + | <div style="width:300px;margin:15px auto;font-style:italic;font-size:.9em;">{{{Description|No description yet.}}}</div> | ||
| + | <p style="width:300px;margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Drop Rarity</p> | ||
| + | <div style="width:300px;margin:15px auto;font-style:italic;font-size:.9em;">[[File:Icon Booty Sack {{#switch:{{{PouchRarity}}}|0 = 1|1 = 2|1}}.png|60px|link=]]</div> | ||
| + | </div> | ||
| + | </div> | ||
| + | <div style="padding:1em;"> | ||
| + | <p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Usage</p> | ||
| + | <div> | ||
| + | {{{Usage|}}} | ||
| + | </div> | ||
| + | |||
| + | <p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Obtained From</p> | ||
| + | <div> | ||
| + | {{{Obtain|}}} | ||
| + | </div> | ||
| + | {{#ifeq:{{#cargo_query:tables=Weapons|fields=_pageName|where=CraftMaterial1="{{{Name|}}}" OR CraftMaterial2="{{{Name|}}}" OR CraftMaterial3="{{{Name|}}}" OR CraftMaterial4="{{{Name|}}}" OR CraftMaterial5="{{{Name|}}}"|group by=_pageName|default=0}}|0||<p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Craft Material For</p> | ||
| + | <div style="max-height: 600px; overflow: auto;"> | ||
| + | {{#cargo_query:tables=Weapons|fields=CONCAT('[[File:',BaseId,' 01 ',FormId,'.png|24px|link=',_pageName,']] [[',_pageName,'|',WeaponName,']]')|where=CraftMaterial1="{{{Name|}}}" OR CraftMaterial2="{{{Name|}}}" OR CraftMaterial3="{{{Name|}}}" OR CraftMaterial4="{{{Name|}}}" OR CraftMaterial5="{{{Name|}}}"|format=ul|group by=_pageName|default=:-|order by= ElementalTypeId ASC, TypeId ASC, Rarity DESC, Id DESC, WeaponName ASC}} | ||
| + | </div>}} | ||
| + | </div> | ||
| + | </div><!-- | ||
| + | -->{{#ifexist: Template:{{PAGENAME}} }}{{#ifexist: Template:{{PAGENAME}}- }}[[Category:Items]][[Category:Materials]]</includeonly> | ||