Difference between revisions of "Template:CharacterMisc"
Jump to navigation
Jump to search
>Boblers (missed a variable) |
>Wong8888 m |
||
| (9 intermediate revisions by 2 users not shown) | |||
| Line 29: | Line 29: | ||
<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 55: | Line 69: | ||
|{{#invoke:CargoQuery|main|q?tables=Comics | |{{#invoke:CargoQuery|main|q?tables=Comics | ||
|q?fields=Id,DirectLink,Title | |q?fields=Id,DirectLink,Title | ||
| − | |q?where=FeaturedCharacter HOLDS LIKE "%[[{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}]] | + | |q?where=FeaturedCharacter HOLDS LIKE "%[[{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}%]]" AND _pageName="Dragalia Life" |
|q?groupBy=Title | |q?groupBy=Title | ||
|q?orderBy=Id ASC | |q?orderBy=Id ASC | ||
| Line 63: | Line 77: | ||
|{{#invoke:CargoQuery|main|q?tables=Comics | |{{#invoke:CargoQuery|main|q?tables=Comics | ||
|q?fields=Id,DirectLink,Title | |q?fields=Id,DirectLink,Title | ||
| − | |q?where=FeaturedCharacter HOLDS LIKE "%[[{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}]] | + | |q?where=FeaturedCharacter HOLDS LIKE "%[[{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}%]]" AND _pageName="Dragalia Minis" |
|q?groupBy=Title | |q?groupBy=Title | ||
|q?orderBy=Id ASC | |q?orderBy=Id ASC | ||
| Line 71: | Line 85: | ||
|{{#invoke:CargoQuery|main|q?tables=Comics | |{{#invoke:CargoQuery|main|q?tables=Comics | ||
|q?fields=Id,DirectLink,Title | |q?fields=Id,DirectLink,Title | ||
| − | |q?where=FeaturedCharacter HOLDS LIKE "[[ | + | |q?where=FeaturedCharacter HOLDS LIKE "%[[{{EscQ|{{{ov|{{BASEPAGENAME}}}}}}}%]]" AND _pageName="Adventurer's Guide" |
|q?groupBy=Title | |q?groupBy=Title | ||
|q?orderBy=Id ASC | |q?orderBy=Id ASC | ||
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.