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:{{{ | <div class="filter-element card-preview" data-name="{{#replace:{{{page|}}}|"|"}}" data-rarity="{{{rarity|}}}" data-character="{{{character|}}}" data-attribute="{{{attribute|}}}"> | ||
[[File:{{{ | [[File:{{{page|}}} preview.png|x351px|link={{{page|}}}]]<br/> | ||
[[{{{ | [[File:{{{rarity|}}} icon.png|link=|x24px|link=|alt={{{rarity|}}} icon]] {{Attribute icon|{{{attribute|}}}|size=20px}} {{{attribute|}}}<br/> | ||
[[{{{page|}}}]] | |||
</div></includeonly> | </div></includeonly> |
Latest revision as of 16:38, 9 November 2021
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 }}
Logic
Luke "Once Upon a Time"
The above documentation is transcluded from Template:Card preview/doc. (edit | history)