Template:CardSub: Difference between revisions
From LOTR-TCG Wiki
No edit summary |
No edit summary |
||
(10 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
{{#cargo_query: | {{#cargo_query: | ||
tables=Cards=C,CardReleases=CR | tables=Cards=C,CardReleases=CR,CardReleases=ECR | ||
|join on= C.ID = CR.BaseCardID | |join on= C.ID=CR.BaseCardID,ECR.ID = C.ID | ||
|fields= C._pageName=PageTitle, CR.ImageFilename=ImageFile, CR.Subtitle=Title | |fields= C._pageName=PageTitle, IFNULL(CR.ImageFilename,'File:Card_Not_Found.jpg')=ImageFile, IFNULL(CR.Subtitle,ECR.Subtitle)=Title | ||
|where= | |where= CR.ID = '{{IDLookup|{{{1}}}|{{{2|}}}}}' | ||
|format=template | |format=template | ||
|named args=yes | |named args=yes | ||
|template=LinkNameWithImage | |template=LinkNameWithImage | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 02:52, 1 October 2021
This is the "CardSub" template.
It should be called in the following format:
{{CardSub |1= |2= }}
Edit the page to see the template text.