Template:Card preview: Difference between revisions

From Tears of Themis Wiki
imported>Elaeagnifolia
No edit summary
imported>Harmonea
m (trying again)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><templatestyles src="Card preview/styles.css" />
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><templatestyles src="Card preview/styles.css" />
<div class="filter-element card-preview" data-name="{{#replace:{{{Page|}}}|"|&quot;}}" data-rarity="{{{rarity|}}}" data-character="{{{character|}}}" data-attribute="{{{attribute|}}}">
<div class="filter-element card-preview" data-name="{{#replace:{{{page|}}}|"|&quot;}}" data-rarity="{{{rarity|}}}" data-character="{{{character|}}}" data-attribute="{{{attribute|}}}">
[[File:{{{Page|}}} preview.png|link=]]<br/>
[[File:{{{page|}}} preview.png|x351px|link={{{page|}}}]]<br/>
[[{{{Page|}}}]]
[[File:{{{rarity|}}} icon.png|link=|x24px|link=|alt={{{rarity|}}} icon]]&emsp;{{Attribute icon|{{{attribute|}}}|size=20px}} {{{attribute|}}}<br/>
[[{{{page|}}}]]
</div></includeonly>
</div></includeonly>

Latest revision as of 16:38, 9 November 2021

Template-info.png Documentation

Description[edit source]

Renders a Card preview element to be used on the Cards page using Category:Card preview images, name, rarity, and attribute.

Usage[edit source]

{{Card preview
|page=
|character=
|rarity=
|attribute=
}}

Example[edit source]

{{Card preview
|page=Luke "Once Upon a Time"
|character=Luke Pearce
|rarity=SR
|attribute=Logic
}}