Template:CardInfobox: Difference between revisions

From LOTR-TCG Wiki
No edit summary
No edit summary
Line 82: Line 82:
-->{{#cargo_query:tables=Cards=C,CardReleases=CR,Languages=L
-->{{#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= TRIM('Translations')=TableName,
|
CONCAT(L.Code, ' - ', L.Name)=LanguageName,
CONCAT(L.Code, ' - ', L.Name)=LanguageName,
CR.Title,
CR.Subtitle,
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,
Line 91: Line 93:
|intro=<!--
|intro=<!--
-->{{{!}} class="wikitable mw-collapsible mw-collapsed" style="width:100%;margin:0"
-->{{{!}} class="wikitable mw-collapsible mw-collapsed" style="width:100%;margin:0"
{{!}}|-
{{!}}-
!colspan="2" class="mw-collapsible"|[[Languages|Translations]]
!colspan="2" class="mw-collapsible"|[[Languages|Translations]]
|format=template
|format=template

Revision as of 05:04, 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.