Template:Illustration: Difference between revisions

From Tears of Themis Wiki
imported>Elaeagnifolia
No edit summary
imported>Harmonea
(trying ModuleLoops)
Line 28: Line 28:
|- class="filter-element"  
|- class="filter-element"  
| style="text-align:center; padding: 1em;" | [[File:{{{image|{{{name|}}} illustration.png}}}|225px]]<br/>{{{name|}}}
| style="text-align:center; padding: 1em;" | [[File:{{{image|{{{name|}}} illustration.png}}}|225px]]<br/>{{{name|}}}
| style="text-align:center;" | {{#vardefine:i|0}}<!--
| style="text-align:center;" | <!--{{#vardefine:i|0}}
-->{{#while:
{{#while:
   | {{#if:{{#explode:{{{featuredCharacters|}}}|,|{{#var:i}}}} | true }}
   | {{#if:{{#explode:{{{featuredCharacters|}}}|,|{{#var:i}}}} | true }}
   | {{#explode:{{{featuredCharacters|}}}|,|{{#var:i}}}}<!--
   | {{#explode:{{{featuredCharacters|}}}|,|{{#var:i}}}}
   -->{{#if:{{#explode:{{{featuredCharacters|}}}|,|{{#expr:{{#var:i}}+1}}}} | <br/>}}<!--
   {{#if:{{#explode:{{{featuredCharacters|}}}|,|{{#expr:{{#var:i}}+1}}}} | <br/>}}
   -->{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
   {{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
   }}
   }}
-->{{#invoke:Loops|
|list={{{featuredCharacters|}}}
|delimiter=,
|format=$1<br />
|replaceString=$1
}}
| style="text-align:center;" | {{{description|}}}
| style="text-align:center;" | {{{description|}}}
| style="text-align:center;" | {{{obtain|}}}
| style="text-align:center;" | {{{obtain|}}}
| style="text-align:center;" | {{#explode:{{{releaseDate|}}}| |0}}</includeonly>
| style="text-align:center;" | {{#explode:{{{releaseDate|}}}| |0}}</includeonly>

Revision as of 04:28, 20 February 2022

Template-info.png Documentation

Description

Used to add illustration row on the Illustrations page and stores the information to Cargo.

Usage

{{Illustration
|name=
|featuredCharacters=
|obtain=
|releaseDate=
}}
This template defines the table "Illustration". View table.