Difference between revisions of "Template:CharacterMisc"
Jump to navigation
Jump to search
>Eave (1) add docs 2) fix summon showcase featured list query 3) fix indentation issue of 'Featured In' header when Trivia list exists 4) cleanup of source code) |
>Wong8888 m |
||
| (23 intermediate revisions by 4 users not shown) | |||
| Line 27: | Line 27: | ||
[[Category:Templates]]</noinclude><includeonly><!-- | [[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 style="flex-grow:1; padding:1em;"><!-- | <div style="flex-grow:1; padding:1em;"><!-- | ||
| + | -->{{#vardefine:PromoArt | ||
| + | |{{#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|}}} | | -->{{#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> | ||
| Line 54: | Line 67: | ||
|default=}}}}<!-- | |default=}}}}<!-- | ||
-->{{#vardefine:DragaliaLife | -->{{#vardefine:DragaliaLife | ||
| − | + | |{{#invoke:CargoQuery|main|q?tables=Comics | |
| − | |fields=Id,DirectLink,Title | + | |q?fields=Id,DirectLink,Title |
| − | |where=FeaturedCharacter HOLDS LIKE "%[[{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}]] | + | |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 | |template=ComicTitle | ||
| − | |||
| − | |||
| − | |||
|default=}}}}<!-- | |default=}}}}<!-- | ||
-->{{#vardefine:AdventurersGuide | -->{{#vardefine:AdventurersGuide | ||
| − | |{{# | + | |{{#invoke:CargoQuery|main|q?tables=Comics |
| − | |fields=Id,DirectLink,Title | + | |q?fields=Id,DirectLink,Title |
| − | |where=FeaturedCharacter HOLDS LIKE "[[ | + | |q?where=FeaturedCharacter HOLDS LIKE "%[[{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}%]]" AND _pageName="Adventurer's Guide" |
| − | | | + | |q?groupBy=Title |
| + | |q?orderBy=Id ASC | ||
|template=ComicTitle | |template=ComicTitle | ||
| − | |||
| − | |||
| − | |||
|default=}}}}<!-- | |default=}}}}<!-- | ||
-->{{#vardefine:Summon | -->{{#vardefine:Summon | ||
| Line 90: | Line 107: | ||
--><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> | --><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}} | + | {{#if:{{#var:Wyrmprints}}{{#var:CastleStories}}{{#var:DragaliaLife}}{{#var:DragaliaMinis}}{{#var:AdventurersGuide}}{{#var:Summon}} |
| |:This {{{1}}} isn't featured in anything. | | |:This {{{1}}} isn't featured in anything. | ||
}}<!-- | }}<!-- | ||
| Line 102: | Line 119: | ||
<p style="margin:15px auto;margin-bottom:8px;font-size:1em;font-variant-caps: small-caps;font-weight:bold">Dragalia Life</p> | <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> | <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}}| | }}{{#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> | <p style="margin:15px auto;margin-bottom:8px;font-size:1em;font-variant-caps: small-caps;font-weight:bold">Adventurer's Guide</p> | ||
Latest revision as of 21:50, 12 July 2020
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.