Template:CardInfobox: Difference between revisions
From LOTR-TCG Wiki
No edit summary |
No edit summary |
||
Line 80: | Line 80: | ||
|style="padding:0px;"|<!-- | |style="padding:0px;"|<!-- | ||
-->{{#cargo_query:tables=Cards=C,CardReleases=CR, | -->{{#cargo_query:tables=Cards=C,CardReleases=CR,Languages=L | ||
|join on=C.ID = CR. | |join on=C.ID = CR.BaseCardID,CR.LanguageCode=L.Code | ||
|fields= | |fields=CONCAT(L.Code, ' - ', L.Name)=LanguageName, | ||
CR.Title, | |||
CONCAT( | CR.Subtitle, | ||
CR. | |||
CR.FormattedGameText, | CR.FormattedGameText, | ||
IF(CR.Lore IS NOT NULL, CONCAT('\'\'', CR.Lore, '\'\''), NULL)=Lore, | IF(CR.Lore IS NOT NULL, CONCAT('\'\'', CR.Lore, '\'\''), NULL)=Lore, | ||
IF(CR.PromoText IS NOT NULL, CONCAT('\'\'\'', CR.PromoText, '\'\'\''), NULL)=PromoText | IF(CR.PromoText IS NOT NULL, CONCAT('\'\'\'', CR.PromoText, '\'\'\''), NULL)=PromoText | ||
|where=C.ID='{{IDLookup|{{{1}}}}}' | CR.Notes, | ||
CR._pageName = pn1, | |||
C._pageName = pn2 | |||
|where=C.ID='{{IDLookup|{{{1}}}}}' AND L.Code != 'TW' | |||
|intro=<!-- | |||
-->{{{!}} class="wikitable mw-collapsible mw-collapsed" style="width:100%;margin:0" | |||
{{!}}- | |||
!colspan="2" class="mw-collapsible"|[[Languages|Translations]] | |||
|format=template | |format=template | ||
|template= | |template=TranslationInfoboxTable | ||
|named args= yes | |named args= yes | ||
|outro={{!}}} | |||
|delimiter=\n | |delimiter=\n | ||
|no html | |no html | ||
}}<!-- | }}<!-- | ||
--> | --> | ||
|- | |- |
Revision as of 06:05, 4 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.