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,CardTypes=CT | ||
{{#cargo_query:tables=Cards=C,CardReleases=CR | |join on=C.ID = CR.ID,C.CardType = CT.Name | ||
|join on=C.ID = CR. | |fields= TRIM('Gameplay Info')=TableName, | ||
| | IF(C.IsPlayable = 1, 'Yes', 'No')=Playable, | ||
CONCAT('[[Image:', C.Culture, '.svg{{!}}x20px{{!}}text-bottom{{!}}link=', C.Culture, '_Culture{{!}}class=whitebg]] \'\'\'[[', C.Culture, '_Culture{{!}}', C.Culture, ']]\'\'\'')=Culture, | |||
CR. | CONCAT('[[', IF(C.Side='Freeps', 'Free Peoples', C.Side), ']]')=Side, | ||
CT.SubtypeClass, CR.Subtypes, | |||
CR.TwilightCost, | |||
IF(CR.Strength=0, NULL, CR.Strength)=Strength, | |||
IF(CR.StrengthMod=0, NULL, CR.StrengthMod)=StrengthMod, | |||
IF(CR.Vitality=0, NULL, CR.Vitality)=Vitality, | |||
IF(CR.VitalityMod=0, NULL, CR.VitalityMod)=VitalityMod, | |||
IF(CR.SiteNum=0, NULL, CR.SiteNum)=SiteNum, | |||
IF(CR.SiteNumMod=0, NULL, CR.SiteNumMod)=SiteNumMod, | |||
IF(CR.Resistance=0, NULL, CR.Resistance)=Resistance, | |||
IF(CR.ResistanceMod=0, NULL, CR.ResistanceMod)=ResistanceMod, | |||
IF(CR.Signet='None', NULL, CR.Signet)=Signet, | |||
IF(CR.Block='None', NULL, CR.Block)=Block, | |||
IF(CR.ShadowNum=0, NULL, CR.ShadowNum)=ShadowNum, | |||
IF(CR.IsSanctuary=0, NULL, IF(CR.IsSanctuary = 1, 'Yes', 'No'))=IsSanctuary, | |||
IF(CR.ArrowDir='None', NULL, CR.ArrowDir)=ArrowDir, | |||
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}}}}}' | |||
|where=C.ID='{{IDLookup|{{{1}}}}}' | |||
|format=template | |format=template | ||
|template= | |template=CardInfoTable | ||
|named args= yes | |named args= yes | ||
|delimiter=\n | |delimiter=\n | ||
Revision as of 06:03, 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.