Template:CardInfobox: Difference between revisions
From LOTR-TCG Wiki
No edit summary |
No edit summary |
||
Line 49: | Line 49: | ||
IF(C.IsPlayable = 1, 'Yes', 'No')=Playable, | 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, | CONCAT('[[Image:', C.Culture, '.svg{{!}}x20px{{!}}text-bottom{{!}}link=', C.Culture, '_Culture{{!}}class=whitebg]] \'\'\'[[', C.Culture, '_Culture{{!}}', C.Culture, ']]\'\'\'')=Culture, | ||
CONCAT('[[', C.Side, ']]')=Side, | CONCAT('[[', IF(C.Side='Freeps', 'Free Peoples', C.Side), ']]')=Side, | ||
CT.SubtypeClass, CR.Subtypes, | CT.SubtypeClass, CR.Subtypes, | ||
CR.TwilightCost, | CR.TwilightCost, | ||
Line 66: | Line 66: | ||
IF(CR.ArrowDir='None', NULL, CR.ArrowDir)=ArrowDir, | IF(CR.ArrowDir='None', NULL, CR.ArrowDir)=ArrowDir, | ||
IF(CR.FormattedGameText=0, NULL, CR.FormattedGameText)=FormattedGameText, | IF(CR.FormattedGameText=0, NULL, CR.FormattedGameText)=FormattedGameText, | ||
IF(CR.Lore IS 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 | |||
|where=C.ID='{{IDLookup|{{{1}}}}}' | |where=C.ID='{{IDLookup|{{{1}}}}}' | ||
|format=template | |format=template |
Revision as of 04:14, 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.