Difference between revisions of "Template:DragonMisc"

From Dragalia Lost Wiki
Jump to navigation Jump to search
imported>Elaeagnifolia
>Canim44
(1 → name for base image)
 
(31 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly>{{DragonPageHeader}}
+
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><!--
 
+
-->{{#vardefine:ImagePrefix
<div class="panel" style="max-width:850px;margin:auto">
+
        |{{#cargo_query:tables=Dragons
<div class="panel-body" style="display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;overflow:hidden">
+
                        |fields=CONCAT(BaseId,' 0',VariationId)
</div>
+
                        |where=FullName="{{{name|{{BASEPAGENAME}}}}}"
<div style="flex-grow:1; padding:1em;">{{#if:{{{trivia|}}}|
+
                        |default=
<p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Trivia</p>
+
                        |no html}}
{{{trivia}}}<!--
+
}}{{CharacterMisc|Dragon|ov={{{name|{{BASEPAGENAME}}}}}|trivia={{{trivia|}}}|otherArt={{#tag:gallery|
 
+
{{exists | File:{{#var:ImagePrefix}}.png | then={{#var:ImagePrefix}}.png | else=}}
-->}}<!--
+
{{exists | File:{{#var:ImagePrefix}} (Small).png | then={{#var:ImagePrefix}} (Small).png{{!}}Small Ver. | else=}}
 
+
|mode="packed-hover"
-->{{#vardefine:Wyrmprints|{{#cargo_query:tables=Wyrmprints|fields=CONCAT('[[File:',BaseId,' 01.png|24px|link=',_pageName,']] [[',_pageName,']]')|where=FeaturedCharacters HOLDS LIKE "%{{{ov|{{BASEPAGENAME}}}}}%"|format=ul|group by=_pageName|default=}}}}<!--
+
|heights="80px"
-->{{#vardefine:CastleStories|{{#cargo_query:tables=CastleStories|fields=_pageName|where=FeaturedCharacters HOLDS LIKE "%{{{ov|{{BASEPAGENAME}}}}}%"|format=ul|group by=_pageName|default=}}}}<!--
 
-->{{#vardefine:DragaliaLife|{{#cargo_query:tables=Comics|fields=CONCAT('[',DirectLink,' ',Title,']')|where=FeaturedCharacter HOLDS LIKE "%{{{ov|{{BASEPAGENAME}}}}}%" AND _pageName="Dragalia Life"|format=ul|group by=Title|order by=Id ASC|default=}}}}<!--
 
-->{{#vardefine:AdventurersGuide|{{#cargo_query:tables=Comics|fields=CONCAT('[',DirectLink,' ',Title,']')|where=FeaturedCharacter HOLDS LIKE "%{{{ov|{{BASEPAGENAME}}}}}%" AND _pageName="Adventurer's Guide"|format=ul|group by=Title|order by=Id ASC|default=}}}}<!--
 
-->{{#vardefine:Summon|{{#cargo_query:tables=SummonShowcase|fields=_pageName|where=Dragon HOLDS LIKE "%{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}%"|format=ul|group by=_pageName|default=}}}}<!--
 
 
 
-->
 
<p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Featured In</p>
 
{{#if:{{#var:Wyrmprints}}{{#var:CastleStories}}{{#var:DragaliaLife}}{{#var:AdventurersGuide}}||:This {{{1}}} isn't featured in anything.}}<!--
 
-->{{#if:{{#var:Wyrmprints}}|<p style="margin:15px auto;margin-bottom:8px;font-size:1em;font-variant-caps: small-caps;font-weight:bold">Wyrmprints</p>
 
{{#var:Wyrmprints}}
 
 
 
}}<!--
 
-->{{#if:{{#var:CastleStories}}|<p style="margin:15px auto;margin-bottom:8px;font-size:1em;font-variant-caps: small-caps;font-weight:bold">Castle Stories</p>
 
{{#var:CastleStories}}
 
 
 
}}<!--
 
-->{{#if:{{#var:DragaliaLife}}|<p style="margin:15px auto;margin-bottom:8px;font-size:1em;font-variant-caps: small-caps;font-weight:bold">Dragalia Life</p>
 
{{#var:DragaliaLife}}
 
 
 
}}<!--
 
-->{{#if:{{#var:AdventurersGuide}}|<p style="margin:15px auto;margin-bottom:8px;font-size:1em;font-variant-caps: small-caps;font-weight:bold">Adventurer's Guide</p>
 
{{#var:AdventurersGuide}}
 
 
 
}}<!--
 
-->{{#if:{{#var:Summon}}|<p style="margin:15px auto;margin-bottom:8px;font-size:1em;font-variant-caps: small-caps;font-weight:bold">Summon Showcases</p>
 
{{#var:Summon}}
 
 
 
 
}}
 
}}
</div>
+
{{{otherArt|}}}}}[[Category:Dragon Misc]]</includeonly>
[[Category:Dragon Misc]]</includeonly>
 

Latest revision as of 17:39, 23 February 2020

50px Documentation

This template is for use on the Misc pages of Dragons, e.g. Midgardsormr/Misc.
It uses the {{BASEPAGENAME}} so no name is need to be provided. For this Usage example, Midgardsormr and its results are used.

It currently support a trivia variable which should be formatted as a bulleted list as shown below.

Usage

{{DragonMisc|trivia=
*Some trivia about this dragon.
*Even more trivia.}}

Promotional Art

Other Art

Trivia

  • Some trivia about this dragon.
  • Even more trivia.

Featured In

Wyrmprints

Error: Table Wyrmprints not found.

Castle Stories

Error: Table CastleStories not found.

Dragalia Life

Lua error: Error: Table Comics not found..

Dragalia Minis

Lua error: Error: Table Comics not found..

Adventurer's Guide

Lua error: Error: Table Comics not found..

Summon Showcases

Error: Table SummonShowcase not found.
Error: Table SummonShowcase not found.