Difference between revisions of "Template:Item/CardIcon"
From A3! Wiki
(Create template to only show card icon that links to card page) |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#ifeq: {{{ | + | <includeonly>{{#ifeq: {{{3|}}} | y |{{#cargo_query:tables=Cards,Card_Files|join on=Cards.number = Card_Files.number|fields=CONCAT('[[File:', Card_Files.icon2, "|link=", CONCAT('Cards/', Cards.chara, '/', Cards.cardname), '|{{{4|}}}]] ')|where=Cards.cardname = "{{{1}}}" AND Cards.chara LIKE "{{{2|}}}%"|format=list|default=}}|{{#cargo_query:tables=Cards,Card_Files|join on=Cards.number = Card_Files.number|fields=CONCAT('[[File:', Card_Files.icon1, "|link=", CONCAT('Cards/', Cards.chara, '/', Cards.cardname), '|{{{4|}}}]] ')|where=Cards.cardname = "{{{1}}}" AND Cards.chara LIKE "{{{2|}}}%"|format=list|default=}}}}</includeonly><noinclude> |
<pre> | <pre> | ||
Line 5: | Line 5: | ||
| (exact card name) | | (exact card name) | ||
| (optional chara name - can be just first name) | | (optional chara name - can be just first name) | ||
− | | (optional | + | | (optional y = is bloomed) |
− | | (optional | + | | (optional image size in px eg. "50px") |
}} | }} | ||
</pre> | </pre> | ||
Line 12: | Line 12: | ||
Creates an card icon that links to card page. If you want to display rarity + character name, use [[:Template:Item/Card]]. | Creates an card icon that links to card page. If you want to display rarity + character name, use [[:Template:Item/Card]]. | ||
− | {{Item/CardIcon|Eternally Straying Encounter}} </br> | + | {{Item/CardIcon|Eternally Straying Encounter}} is the default card icon and size. </br> |
− | {{Item/CardIcon|MANKAI Birthday|Yuki}} is a card that needs the character name. | + | {{Item/CardIcon|Eternally Straying Encounter|Tsumugi|y}} is a bloomed card.</br> |
− | {{Item/CardIcon| | + | {{Item/CardIcon|MANKAI Birthday|Yuki}} is a card that needs the character name.</br> |
+ | {{Item/CardIcon|Eternally Straying Encounter|||75px}} has a changed image size. | ||
</noinclude> | </noinclude> |
Latest revision as of 06:00, 14 November 2020
{{Item/CardIcon | (exact card name) | (optional chara name - can be just first name) | (optional y = is bloomed) | (optional image size in px eg. "50px") }}
Creates an card icon that links to card page. If you want to display rarity + character name, use Template:Item/Card.
is the default card icon and size.
is a bloomed card.
is a card that needs the character name.
has a changed image size.