Template:Card icon: Difference between revisions
From Tears of Themis Wiki
imported>Harmonea (+inline option) |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly> | <noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly> | ||
{{#if:{{{inline|}}}|<!-- | {{#if:{{{inline|}}}|<!-- | ||
--><div style="display:flex; flex-direction:row; align-items:center"><!-- | --><div style="display:flex; flex-direction:row; align-items:center; padding: 0.5em; "><!-- | ||
--><div style="flex:0 0 auto">|<div style="display:inline-block; padding: 0.5em; text-align: center;">}}<!-- | --><div style="flex:0 0 auto">|<div style="display:inline-block; padding: 0.5em; text-align: center;">}}<!-- | ||
-->[[File:{{{1|{{{name|}}}}}} icon.png|{{{size|100px}}}|link={{{1|{{{name|}}}}}}]]<!-- | -->[[File:{{{1|{{{name|}}}}}} icon.png|{{{size|100px}}}|link={{{1|{{{name|}}}}}}]]<!-- | ||
Line 7: | Line 7: | ||
-->{{#if:{{{text|}}}|<!-- | -->{{#if:{{{text|}}}|<!-- | ||
-->{{#if:{{{inline|}}}||<br/>}}<!-- | -->{{#if:{{{inline|}}}||<br/>}}<!-- | ||
-->{{#if:{{{attribute|}}}|{{Attribute icon|type={{{attribute|}}}|size={{{attributesize|24px}}}}} }}<!-- | -->{{#if:{{{attribute|}}}|{{Attribute icon|type={{{attribute|}}}|size={{{attributesize|24px}}}}} }}<!-- | ||
-->{{#switch:{{{text|}}}<!-- | -->{{#switch:{{{text|}}}<!-- | ||
-->|1=[[{{{1|{{{name|}}}}}}]]<!-- | -->|1=[[{{{1|{{{name|}}}}}}]]<!-- | ||
Line 14: | Line 14: | ||
-->| [[{{{1|{{{name|}}}}}}|{{{text|}}}]] }} <!-- | -->| [[{{{1|{{{name|}}}}}}|{{{text|}}}]] }} <!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->}}<!-- | |||
-->{{#if:{{{ml|}}}|<!-- | |||
-->{{#if:{{{inline|}}}||<br/>}}<!-- | |||
-->{{#if:{{{attribute|}}}|{{Attribute icon|type={{{attribute|}}}|size={{{attributesize|24px}}}}} }}<!-- | |||
-->{{#if:{{{nolink|}}}<!-- | |||
-->| <!-- | |||
-->| [[{{{1|{{{name|}}}}}}|{{{ml|}}} {{{rarity|}}}<br/>"{{{cardName|}}}"]] }} <!-- | |||
-->}}<!-- | -->}}<!-- | ||
-->{{#if:{{{inline|}}}|</div>}}</div></includeonly> | -->{{#if:{{{inline|}}}|</div>}}</div></includeonly> |
Latest revision as of 08:00, 28 September 2023
Description[edit source]
Template for easily making a card icon.
Usage[edit source]
{{Card icon|}}
Example[edit source]
{{Card icon|Artem "Sparks"}}
Customizing Size[edit source]
{{Card icon|Artem "Sparks"|size=200px}}
Adding optional text/attribute[edit source]
{{Card icon|Artem "Sparks"|text=Artem "Sparks"|attribute=Intuition}}
Optional inline display[edit source]
{{Card icon|Artem "Sparks"|text=Artem<br/>"Sparks"|attribute=Intuition|inline=true}}
The above documentation is transcluded from Template:Card icon/doc. (edit | history)