Difference between revisions of "Template:AdventurerMisc"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Sekuiya
(Sub sections)
>Eave
(add adv thumbnails to other art, when it exists)
 
(25 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><!--
 
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><!--
-->{{AdventurerPageHeader}}
+
-->{{#vardefine:ImagePrefix
 
+
        |{{#cargo_query:tables=Adventurers
<div class="panel" style="max-width:850px;margin:auto">
+
                        |fields=CONCAT(Id,' 0',VariationId)
<div class="panel-body" style="display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;overflow:hidden">
+
                        |where=FullName="{{{1|{{BASEPAGENAME}}}}}"
</div>
+
                        |default=
<div style="flex-grow:1; padding:1em;">{{#if: {{{trivia|}}}|
+
                        |no html}}
<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>
+
}}{{CharacterMisc|Adventurer|ov={{{1|{{BASEPAGENAME}}}}}|trivia={{{trivia|}}}|otherArt={{#tag:gallery|
{{{trivia}}}<!--
+
{{exists | File:{{#var:ImagePrefix}} r03.png | then={{#var:ImagePrefix}} r03.png | else=}}
 
+
{{exists | File:{{#var:ImagePrefix}} r04.png | then={{#var:ImagePrefix}} r04.png | else=}}
-->}}<!--
+
{{exists | File:{{#var:ImagePrefix}} r05.png | then={{#var:ImagePrefix}} r05.png | else=}}
 
+
{{exists | File:{{#var:ImagePrefix}} r03 (Small).png | then={{#var:ImagePrefix}} r03 (Small).png{{!}}Small Ver. | else=}}
-->{{#vardefine:Wyrmprints|{{#cargo_query:tables=Wyrmprints|fields=CONCAT('[[File:',BaseId,' 01.png|24px|link=',_pageName,']] [[',_pageName,']]')|where=FeaturedCharacters HOLDS LIKE "%{{{1|{{BASEPAGENAME}}}}}%"|format=ul|group by=_pageName|default=}}}}<!--
+
{{exists | File:{{#var:ImagePrefix}} r04 (Small).png | then={{#var:ImagePrefix}} r04 (Small).png{{!}}Small Ver. | else=}}
-->{{#vardefine:CastleStories|{{#cargo_query:tables=CastleStories|fields=_pageName|where=FeaturedCharacters HOLDS LIKE "%{{{1|{{BASEPAGENAME}}}}}%"|format=ul|group by=_pageName|default=}}}}<!--
+
{{exists | File:{{#var:ImagePrefix}} r05 (Small).png | then={{#var:ImagePrefix}} r05 (Small).png{{!}}Small Ver. | else=}}
 
+
|mode="packed-hover"
-->
+
|heights="80px"
<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}}||:This Adventurer isn't feature 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}}
 
 
 
 
}}
 
}}
</div>
+
{{{otherArt|}}}}}[[Category:Adventurer Misc]]</includeonly>

Latest revision as of 04:53, 16 November 2019

50px Documentation

This template is for use on the Misc pages of Adventurers, e.g. The Prince/Misc.
It uses the {{BASEPAGENAME}} so no name is need to be provided. For this Usage example, Euden and it's results are used.

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

Usage

{{AdventurerMisc|trivia=
*Some trivia about this character.
*Even more trivia.}}

Promotional Art

Other Art

Trivia

  • Some trivia about this character.
  • 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.