Template:Card: Difference between revisions

From LOTR-TCG Wiki
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:1|2}}
{{#template_params:1|2}}
</noinclude><includeonly>{{#if:{{#cargo_query:
</noinclude><includeonly>
tables=Cards=C,CardReleases=CR,CardReleases=ECR
|join on= C.ID = CR.BaseCardID,ECR.ID = C.ID
|fields= REPLACE(REPLACE(C._pageName, '/Data', ''), 'Data:', '')=PageTitle
, IFNULL(CR.ImageFilename,'File:Card_Not_Found.jpg')=ImageFile
, IFNULL(CR.Title,ECR.Title)=Title
, IFNULL(CR.Subtitle,ECR.Subtitle)=Subtitle
, IFNULL(CR.CollInfo,C.CollInfo)=CollInfo
|where= CR.ID = '{{IDLookup|{{{1}}}|{{{2|EN}}}}}'
|format=template
|named args=yes
|template=LinkNameWithImage
|default={{PageLookup|{{{1}}}}}
}}
 
 
{{#switch:{{{1}}}
{{#switch:{{{1}}}
|{{#pos:{{{1}}}|0}} > 0
|{{#pos:{{{1}}}|0}} > 0

Revision as of 21:28, 17 October 2021

This is the "Card" template.

It should be called in the following format:

{{Card
|1=
|2=
}}

Edit the page to see the template text.