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,Languages=L
|join on=C.ID = CR.ID,C.CardType = CT.Name
|join on=C.ID = CR.BaseCardID,CR.LanguageCode=L.Code
|fields= TRIM('Gameplay Info')=TableName,
|fields=CONCAT(L.Code, ' - ', L.Name)=LanguageName,
IF(C.IsPlayable = 1, 'Yes', 'No')=Playable,
CR.Title,
CONCAT('[[Image:', C.Culture, '.svg{{!}}x20px{{!}}text-bottom{{!}}link=', C.Culture, '_Culture{{!}}class=whitebg]] \'\'\'[[', C.Culture, '_Culture{{!}}', C.Culture, ']]\'\'\'')=Culture,
CR.Subtitle,
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}}}}}'
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=CardInfoTable
|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.