Difference between revisions of "Template:Material"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Seraii
>Eave
(optionally show (small) variation of icon in tabber)
Line 46: Line 46:
 
<div class="panel-heading">{{InlineIcon|Icon Element|{{{ElementalType|}}}}} {{{Name|{{PAGENAME}}}}}</div>
 
<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 class="panel-body" style="display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center">
<div style="width:350px;text-align:center">{{#ifexist: File:{{{Id|}}}.png | [[File:{{{Id|}}}.png|160px]] | [[File:Unknown.png|160px|link=File:{{{Id|}}}.png]] }}</div>
+
<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
 +
-->{{#ifexist: File:{{{Id|}}} (Small).png
 +
|<tabber>
 +
|-| Icon = {{#var:icon}}
 +
|-| Alt = [[File:{{{Id|}}} (Small).png|160px]]
 +
</tabber> | {{#var:icon}} }}</div>
 
<div style="flex-grow:1;text-align:center">
 
<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>
 
<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>

Revision as of 14:52, 18 October 2019

50px Documentation

Usage

{{Material
|Id=
|Name=
|Description=
|Rarity=
|QuestEventId=
|Category=
|SortId=
|Obtain=
|Usage=
|MoveQuest1=
|MoveQuest2=
|MoveQuest3=
|MoveQuest4=
|MoveQuest5=
|PouchRarity=
|Exp=
|MaterialType=
}}

This template defines the table "Materials". This table has not been created yet.