Template:Item/CardImg: Difference between revisions

From A3! Wiki
Ritsu (talk | contribs)
Created page with "<includeonly>{{#ifeq: {{{3|}}} | y |{{#cargo_query:tables=Cards,Card_Files|join on=Cards.number = Card_Files.number|fields=CONCAT('File:', Card_Files.image2, "|link=", CONCA..."
 
Tree (talk | contribs)
m cargo_query: Add field alias and update string literal quotes, in preparation for Cargo extension upgrade
 
Line 1: Line 1:
<includeonly>{{#ifeq: {{{3|}}} | y |{{#cargo_query:tables=Cards,Card_Files|join on=Cards.number = Card_Files.number|fields=CONCAT('[[File:', Card_Files.image2, "|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.image1, "|link=", CONCAT('Cards/', Cards.chara, '/', Cards.cardname), '|{{{4|}}}]] ')|where=Cards.cardname = "{{{1}}}" AND Cards.chara LIKE "{{{2|}}}%"|format=list|default=}}}}</includeonly><noinclude>
<includeonly>{{#ifeq: {{{3|}}} | y |{{#cargo_query:tables=Cards,Card_Files|join on=Cards.number = Card_Files.number|fields=CONCAT('[[File:', Card_Files.image2, '|link=', CONCAT('Cards/', Cards.chara, '/', Cards.cardname), '|{{{4|}}}]] ')=ImageMarkup|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.image1, '|link=', CONCAT('Cards/', Cards.chara, '/', Cards.cardname), '|{{{4|}}}]] ')=ImageMarkup|where=Cards.cardname = '{{{1}}}' AND Cards.chara LIKE '{{{2|}}}%'|format=list|default=}}}}</includeonly><noinclude>


<pre>
<pre>

Latest revision as of 02:41, 31 December 2024


{{Item/CardImg
| (exact card name)
| (optional chara name - can be just first name)
| (optional y = is bloomed)
| (optional image size in px eg. "50px")
}}

Creates a card icon that links to card page. If you want to display rarity + character name, use Template:Item/Card.

is default card image at 200px size
is a bloomed card image at 200px size.
is a card that needs the character name.