Template:CardInfobox: Difference between revisions
From LOTR-TCG Wiki
No edit summary |
No edit summary |
||
| Line 20: | Line 20: | ||
{{#cargo_query:tables=Cards=C,CardReleases=CR,CardSets=CS,Rarities=R | {{#cargo_query:tables=Cards=C,CardReleases=CR,CardSets=CS,Rarities=R | ||
|join on=C.ID = CR.BaseCardID,C.SetNum=CS.ID,R.Abbr=C.Rarity | |join on=C.ID = CR.BaseCardID,C.SetNum=CS.ID,R.Abbr=C.Rarity | ||
|fields= TRIM('Title'), CR.Title, | |fields= TRIM('Title'), CR.Title, | ||
TRIM('Subtitle'), CR.Subtitle, | TRIM('Subtitle'), CR.Subtitle, | ||
| Line 29: | Line 29: | ||
TRIM('Card Number'), C.CardNum, | TRIM('Card Number'), C.CardNum, | ||
TRIM('Revision'), C.Revision, | TRIM('Revision'), C.Revision, | ||
|where=C.ID='{{IDLookup|{{{1}}}}}' | |where=C.ID='{{IDLookup|{{{1}}}}}',R.Sets HOLDS C.SetNum | ||
|format=template | |format=template | ||
|template=CardSubInfoTable | |template=CardSubInfoTable | ||
Revision as of 19:10, 3 October 2021
This is the "CardInfobox" template.
It should be called in the following format:
{{CardInfobox
|ID=
}}
Edit the page to see the template text.