Difference between revisions of "Template:AdventurerMisc"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Sekuiya
(Added Castle Stories)
>Sekuiya
(Sub sections)
Line 9: Line 9:
 
{{{trivia}}}<!--
 
{{{trivia}}}<!--
  
-->}}
+
-->}}<!--
<p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Wyrmprints {{{1|{{BASEPAGENAME}}}}} Is Featured In</p>
 
{{#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=
 
:''There are no wyrmprints with this adventurer.''}}
 
  
<p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Castle Stories {{{1|{{BASEPAGENAME}}}}} Appears In</p>
+
-->{{#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=}}}}<!--
{{#cargo_query:tables=CastleStories
+
-->{{#vardefine:CastleStories|{{#cargo_query:tables=CastleStories|fields=_pageName|where=FeaturedCharacters HOLDS LIKE "%{{{1|{{BASEPAGENAME}}}}}%"|format=ul|group by=_pageName|default=}}}}<!--
|fields=_pageName
+
 
|where=FeaturedCharacters HOLDS LIKE "%{{{1|{{BASEPAGENAME}}}}}%"
+
-->
|format=ul
+
<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>
|group by=_pageName
+
{{#if:{{#var:Wyrmprints}}{{#var:CastleStories}}||:This Adventurer isn't feature in anything.}}<!--
|default=
+
-->{{#if:{{#var:Wyrmprints}}|<p style="margin:15px auto;margin-bottom:8px;font-size:1em;font-variant-caps: small-caps;font-weight:bold">Wyrmprints</p>
:''There are no Castle Stories where this adventurer appears in.''}}
+
{{#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>
 
</div>

Revision as of 19:42, 31 October 2018

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.}}

Trivia

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

Featured In

Wyrmprints

Error: Table Wyrmprints not found.

Castle Stories

Error: Table CastleStories not found.