Editing Template:CardInfobox
From LOTR-TCG Wiki
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 5: | Line 5: | ||
|- | |- | ||
| | | | ||
{{#tag:gallery|{{#cargo_query:tables=Cards=C,CardReleases=CR,Languages=L | {{#tag:gallery|{{#cargo_query:tables=Cards=C,CardReleases=CR,Languages=L | ||
|join on=C.ID = CR.BaseCardID,CR.LanguageCode=L.Code | |join on=C.ID = CR.BaseCardID,CR.LanguageCode=L.Code | ||
|fields= IFNULL(CR.ImageFilename | |fields= IFNULL(CR.ImageFilename, 'Card_Not_Found.jpg')=Filename,CR.LanguageCode,CR.Subset=Style | ||
,'Card_Not_Found.jpg')=Filename | |||
,CR.LanguageCode | |||
,CR.Subset=Style | |||
|where=C.ID='{{IDLookup|{{{1}}}}}' | |where=C.ID='{{IDLookup|{{{1}}}}}' | ||
|order by=L.SortOrder | |order by=L.SortOrder,CR._rowID | ||
|format=template | |format=template | ||
|template=GalleryQuery | |template=GalleryQuery | ||
Line 29: | Line 24: | ||
TRIM('Title'), CR.Title, | TRIM('Title'), CR.Title, | ||
TRIM('Subtitle'), IFNULL(CR.Subtitle,' '), | TRIM('Subtitle'), IFNULL(CR.Subtitle,' '), | ||
TRIM('Collectible'), IF(C.IsPhysical = 1, 'Yes', 'No'), | |||
TRIM('Collectible'), | TRIM('Notes'), C.Notes, | ||
TRIM('Notes'), | |||
TRIM('[[Set]]'), CONCAT(CS.ID, ' - [[', CS.Name, ']]'), | TRIM('[[Set]]'), CONCAT(CS.ID, ' - [[', CS.Name, ']]'), | ||
TRIM('[[Rarity]]'), CONCAT(R.Abbr, ' - [[Rarity{{!}}', R.Name, ']]'), | TRIM('[[Rarity]]'), CONCAT(R.Abbr, ' - [[Rarity{{!}}', R.Name, ']]'), | ||
Line 55: | Line 49: | ||
IF(C.IsPlayable = 1, 'Yes', 'No')=Playable, | IF(C.IsPlayable = 1, 'Yes', 'No')=Playable, | ||
C.CardType, | C.CardType, | ||
CONCAT('[[Image: | CONCAT('[[Image:', C.Culture, '.svg{{!}}x20px{{!}}text-bottom{{!}}link=', C.Culture, '_Culture{{!}}class=whitebg]] \'\'\'[[', C.Culture, '_Culture{{!}}', C.Culture, ']]\'\'\'')=Culture, | ||
CONCAT('[[', IF(C.Side='Freeps', 'Free Peoples', C.Side), ']]')=Side, | CONCAT('[[', IF(C.Side='Freeps', 'Free Peoples', C.Side), ']]')=Side, | ||
CT.SubtypeClass, CR.Subtypes, | CT.SubtypeClass, CR.Subtypes, | ||
Line 108: | Line 102: | ||
|template=TranslationInfoboxTable | |template=TranslationInfoboxTable | ||
|named args= yes | |named args= yes | ||
|outro= | |outro={{!}}} | ||
{{!}}} | |||
|default= | |default= | ||
|delimiter= | |delimiter= |