Template:Illustration: Difference between revisions

From Tears of Themis Wiki
imported>Elaeagnifolia
No edit summary
imported>Harmonea
m (it works! removing old code)
 
(5 intermediate revisions by 2 users not shown)
Line 7: Line 7:
|image=String
|image=String
|featuredCharacters=List (,) of String
|featuredCharacters=List (,) of String
|description=Wikitext
|obtain=Wikitext
|obtain=Wikitext
|releaseDate=DateTime
|releaseDate=DateTime
Line 17: Line 18:
|image={{{image|{{{name|}}} illustration.png}}}
|image={{{image|{{{name|}}} illustration.png}}}
|featuredCharacters={{{featuredCharacters|}}}
|featuredCharacters={{{featuredCharacters|}}}
|description={{{description|}}}
|obtain={{{obtain|}}}
|obtain={{{obtain|}}}
|releaseDate={{{releaseDate|2021-07-30 12:00}}}
|releaseDate={{{releaseDate|2021-07-30 12:00}}}
Line 25: Line 27:
--><nowiki/>
--><nowiki/>
|- class="filter-element"  
|- class="filter-element"  
| style="text-align:center; padding: 1em;" | [[File:{{{image|{{{name|}}} illustration.png}}}|225px|link=]]<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;" | {{#invoke:Loops|parseList
-->{{#while:
|list={{{featuredCharacters|}}}
  | {{#if:{{#explode:{{{featuredCharacters|}}}|,|{{#var:i}}}} | true }}
|delimiter=,
  | {{#explode:{{{featuredCharacters|}}}|,|{{#var:i}}}}<!--
|format=$1<br />
  -->{{#if:{{#explode:{{{featuredCharacters|}}}|,|{{#expr:{{#var:i}}+1}}}} | <br/>}}<!--
|replaceString=$1
  -->{{#vardefine:i|{{#expr:{{#var:i}}+1}}}}
}}
  }}
| style="text-align:center;" | {{{description|}}}
| style="text-align:center;" | {{{obtain|}}}
| style="text-align:center;" | {{{obtain|}}}
| style="text-align:center;" | {{{releaseDate|}}}</includeonly>
| style="text-align:center;" | {{#explode:{{{releaseDate|}}}| |0}}</includeonly>

Latest revision as of 04:34, 20 February 2022

Template-info.png Documentation

Description[edit source]

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

Usage[edit source]

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