Template:Card: Difference between revisions

From LOTR-TCG Wiki
No edit summary
No edit summary
Line 52: Line 52:
   |where= (C.Subtitle LIKE '{{{1}}}' OR C.Title LIKE '{{{1}}}' OR (C.Title LIKE '{{#explode:{{{1}}}|,|0}}' AND C.Subtitle LIKE '{{#explode:{{{1}}}|,|1}}')
   |where= (C.Subtitle LIKE '{{{1}}}' OR C.Title LIKE '{{{1}}}' OR (C.Title LIKE '{{#explode:{{{1}}}|,|0}}' AND C.Subtitle LIKE '{{#explode:{{{1}}}|,|1}}')
   AND CR.LanguageCode = '{{{2|EN}}}'
   AND CR.LanguageCode = '{{{2|EN}}}'
   |order by=CASE WHEN C.SetNum = 0 THEN 100 ELSE C.SetNum END, C.CardNum
   |order by=C.SetNum, C.CardNum
   |limit=1
   |limit=1
   |format=template
   |format=template

Revision as of 21:14, 17 October 2021

This is the "Card" template.

It should be called in the following format:

{{Card
|1=
|2=
}}

Edit the page to see the template text.