Template:Stage: Difference between revisions
From Tears of Themis Wiki
(adding a conditional for illustrations that defaults to off. will automate addition of switch to stages that are linked from illust page) |
(adding illustrations switch to trial stages to accommodate Main Story 07-34) |
||
(One intermediate revision by one other user not shown) | |||
Line 78: | Line 78: | ||
* Hover to view spoiler content. | * Hover to view spoiler content. | ||
{{{guide|}}} | {{{guide|}}} | ||
}} | }}<!-- | ||
{{#if:{{{summary|}}} | <nowiki/> | -->{{#if:{{{summary|}}} | <nowiki/> | ||
==Summary== | ==Summary== | ||
{{#spoiler: | {{#spoiler: | ||
{{{summary|}}} | {{{summary|}}} | ||
}} | }} | ||
}} {{#if:{{{illustrations|}}} | <nowiki/> | }}<!-- | ||
-->{{#if:{{{illustrations|}}} | <nowiki/> | |||
==Illustrations== | ==Illustrations== | ||
{{NotableWrap | {{NotableWrap | ||
Line 92: | Line 94: | ||
|q?tables=Illustration | |q?tables=Illustration | ||
|q?fields=CONCAT('{{Tooltip|',name,'|',description,'}}')=location,CONCAT('{{Tooltip|',name,'|',description,'}}')=name,image=image | |q?fields=CONCAT('{{Tooltip|',name,'|',description,'}}')=location,CONCAT('{{Tooltip|',name,'|',description,'}}')=name,image=image | ||
|q?where=obtain LIKE '%{{EscQ|{{#titleparts: | |q?where=obtain LIKE '%{{EscQ|{{#titleparts:{{ROOTPAGENAME}}}}}}%' | ||
|template=Background location | |template=Background location | ||
|default=None | |default=None | ||
Line 159: | Line 161: | ||
{{#spoiler: | {{#spoiler: | ||
{{{summary|}}} | {{{summary|}}} | ||
}}<!-- | |||
-->{{#if:{{{illustrations|}}} | <nowiki/> | |||
==Illustrations== | |||
{{NotableWrap | |||
|notables= | |||
{{#invoke:CargoQuery|main | |||
|q?tables=Illustration | |||
|q?fields=CONCAT('{{Tooltip|',name,'|',description,'}}')=location,CONCAT('{{Tooltip|',name,'|',description,'}}')=name,image=image | |||
|q?where=obtain LIKE '%{{EscQ|{{#titleparts:{{ROOTPAGENAME}}}}}}%' | |||
|template=Background location | |||
|default=None | |||
}} | }} | ||
{{#if:{{{locations|}}} | <nowiki/> | }} }}<!-- | ||
-->{{#if:{{{locations|}}} | <nowiki/> | |||
==Location(s)== | ==Location(s)== | ||
{{NotableWrap | {{NotableWrap |