Difference between revisions of "Template:CharacterMisc"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Mornsta-gpuser
>Wong8888
m
 
(33 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><!--
+
<noinclude>{{doc/start}}
 +
This template is for use on the Misc pages of Adventurers/Dragons/NPCs, however is meant to be transitively transcluded through an intermediate template such as [[:Template:AdventurerMisc]].
 +
 
 +
===Usage===
 +
<pre>
 +
{{CharacterMisc|Adventurer|ov=Ieyasu
 +
|trivia=
 +
*Some trivia about this character.
 +
*Even more trivia.
 +
|otherArt=
 +
<gallery mode="packed">
 +
File:110313 01 base portrait.png|Story Art
 +
File:110313 02 base portrait.png|Story Art
 +
</gallery>
 +
}}</pre>
 +
{{CharacterMisc|Adventurer|ov=Ieyasu
 +
|trivia=
 +
*Some trivia about this character.
 +
*Even more trivia.
 +
|otherArt=
 +
<gallery mode="packed">
 +
File:110313 01 base portrait.png|Story Art
 +
File:110313 02 base portrait.png|Story Art
 +
</gallery>
 +
}}
 +
 
 +
[[Category:Templates]]</noinclude><includeonly><!--
 
-->{{{{{1}}}PageHeader}}
 
-->{{{{{1}}}PageHeader}}
 
 
<div class="panel" style="max-width:850px;margin:auto">
 
<div class="panel" style="max-width:850px;margin:auto">
<div class="panel-body" style="display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;overflow:hidden">
+
<div style="flex-grow:1; padding:1em;"><!--
</div>
+
-->{{#vardefine:PromoArt
<div style="flex-grow:1; padding:1em;">{{#if:{{{otherArt|}}}|
+
    |{{#invoke:CargoQuery|main|q?tables=Art
 +
        |q?fields=Caption,FileName,ReleaseDate
 +
        |q?where=FeaturedCharacter HOLDS LIKE "%[[{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}]]%"
 +
        |q?groupBy=Caption
 +
        |q?orderBy=ReleaseDate ASC
 +
        |template=ArtMiscDisplay
 +
        |default=}}}}<!--
 +
-->{{#if:{{#var:PromoArt}}|
 +
<p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Promotional Art</p>
 +
{{#tag:gallery|
 +
{{#var:PromoArt}}
 +
|mode=packed}}
 +
}}<!--
 +
-->{{#if:{{{otherArt|}}} |
 
<p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Other Art</p>
 
<p style="margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Other Art</p>
 
{{{otherArt|}}}
 
{{{otherArt|}}}
}}{{#if:{{{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">Trivia</p>
+
}}{{#if:{{{trivia|}}} |
{{{trivia}}}}}{{#vardefine:Wyrmprints|{{#cargo_query:tables=Wyrmprints|fields=CONCAT('[[File:',BaseId,' 01.png|24px|link=',_pageName,']] [[',_pageName,']]')|where=FeaturedCharacters HOLDS LIKE "%{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}%"|format=ul|group by=_pageName|order by=BaseId|default=}}}}{{#vardefine:CastleStories|{{#cargo_query:tables=CastleStories|fields=_pageName|where=FeaturedCharacters HOLDS LIKE "%{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}%"|format=ul|group by=_pageName|order by=ReleaseDate ASC|default=}}}}{{#vardefine:DragaliaLife|{{#cargo_query:tables=Comics|fields=Id,DirectLink,Title|where=FeaturedCharacter HOLDS LIKE "%{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}%" AND _pageName="Dragalia Life"|format=template|template=ComicTitle|named args=yes|group by=Title|order by=Id ASC|default=}}}}{{#vardefine:AdventurersGuide|{{#cargo_query:tables=Comics|fields=Id,DirectLink,Title|where=FeaturedCharacter HOLDS LIKE "%{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}%" AND _pageName="Adventurer's Guide"|format=template|template=ComicTitle|named args=yes|group by=Title|order by=Id ASC|default=}}}}{{#vardefine:Summon|{{#cargo_query:tables=SummonShowcase|fields=_pageName|where=Adventurer HOLDS LIKE "%{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}%"|format=ul|group by=_pageName|order by=StartDate ASC|default=}}{{#cargo_query:tables=SummonShowcase|fields=_pageName|order by=StartDate ASC|where=Dragons 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}}{{#var:Summon}}||: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><div>{{#var:Wyrmprints}}</div>}}{{#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><div>{{#var:CastleStories}}</div>}}{{#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><div>{{#var:DragaliaLife}}</div>}}{{#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><div>{{#var:AdventurersGuide}}</div>}}{{#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><div>{{#var:Summon}}</div>}}</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">Trivia</p>
 +
{{{trivia|}}}
 +
}}
 +
{{#vardefine:Wyrmprints
 +
    |{{#cargo_query:tables=Wyrmprints
 +
        |fields=CONCAT('[[File:',BaseId,' 01.png|24px|link=',_pageName,']] [[',_pageName,']]')
 +
        |where=FeaturedCharacters HOLDS LIKE "%[[{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}]]%"
 +
        |format=ul
 +
        |group by=_pageName
 +
        |order by=BaseId
 +
        |default=}}}}<!--
 +
-->{{#vardefine:CastleStories
 +
    |{{#cargo_query:tables=CastleStories
 +
        |fields=_pageName
 +
        |where=FeaturedCharacters HOLDS LIKE "%[[{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}]]%"
 +
        |format=ul
 +
        |group by=_pageName
 +
        |order by=ReleaseDate ASC
 +
        |default=}}}}<!--
 +
-->{{#vardefine:DragaliaLife
 +
    |{{#invoke:CargoQuery|main|q?tables=Comics
 +
        |q?fields=Id,DirectLink,Title
 +
        |q?where=FeaturedCharacter HOLDS LIKE "%[[{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}%]]" AND _pageName="Dragalia Life"
 +
        |q?groupBy=Title
 +
        |q?orderBy=Id ASC
 +
        |template=ComicTitle
 +
        |default=}}}}<!--
 +
-->{{#vardefine:DragaliaMinis
 +
    |{{#invoke:CargoQuery|main|q?tables=Comics
 +
        |q?fields=Id,DirectLink,Title
 +
        |q?where=FeaturedCharacter HOLDS LIKE "%[[{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}%]]" AND _pageName="Dragalia Minis"
 +
        |q?groupBy=Title
 +
        |q?orderBy=Id ASC
 +
        |template=ComicTitle
 +
        |default=}}}}<!--
 +
-->{{#vardefine:AdventurersGuide
 +
    |{{#invoke:CargoQuery|main|q?tables=Comics
 +
        |q?fields=Id,DirectLink,Title
 +
        |q?where=FeaturedCharacter HOLDS LIKE "%[[{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}%]]" AND _pageName="Adventurer's Guide"
 +
        |q?groupBy=Title
 +
        |q?orderBy=Id ASC
 +
        |template=ComicTitle
 +
        |default=}}}}<!--
 +
-->{{#vardefine:Summon
 +
    |{{#cargo_query:tables=SummonShowcase
 +
        |fields=_pageName
 +
        |where=Adventurer HOLDS "{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}"
 +
        |format=ul
 +
        |group by=_pageName
 +
        |order by=StartDate ASC
 +
        |default=}}<!--
 +
  -->{{#cargo_query:tables=SummonShowcase
 +
        |fields=_pageName
 +
        |order by=StartDate ASC
 +
        |where=Dragons HOLDS "{{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:DragaliaMinis}}{{#var:AdventurersGuide}}{{#var:Summon}}
 +
  | |: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>
 +
<div>{{#var:Wyrmprints}}</div>
 +
}}{{#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>
 +
<div>{{#var:CastleStories}}</div>
 +
}}{{#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>
 +
<div>{{#var:DragaliaLife}}</div>
 +
}}{{#if:{{#var:DragaliaMinis}}|
 +
<p style="margin:15px auto;margin-bottom:8px;font-size:1em;font-variant-caps: small-caps;font-weight:bold">Dragalia Minis</p>
 +
<div>{{#var:DragaliaMinis}}</div>
 +
}}{{#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>
 +
<div>{{#var:AdventurersGuide}}</div>
 +
}}{{#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><div>
 +
{{#var:Summon}}
 +
</div>
 +
}}
 +
</div>
 +
</includeonly>

Latest revision as of 21:50, 12 July 2020

50px Documentation

This template is for use on the Misc pages of Adventurers/Dragons/NPCs, however is meant to be transitively transcluded through an intermediate template such as Template:AdventurerMisc.

Usage

{{CharacterMisc|Adventurer|ov=Ieyasu
|trivia=
*Some trivia about this character.
*Even more trivia.
|otherArt=
<gallery mode="packed">
File:110313 01 base portrait.png|Story Art
File:110313 02 base portrait.png|Story Art
</gallery>
}}

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.