Template:ListTable: Difference between revisions

From LOTR-TCG Wiki
(Created page with "<noinclude> {{#template_params:filter|sort}} </noinclude><includeonly> {{#cargo_query:tables=Cards=C,CardReleases=CR |join on=C.ID = CR.ID |fields= ,CONCAT('<span class="toolt...")
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:filter|sort}}
{{#template_params:filter|sort|columns}}
</noinclude><includeonly>
</noinclude><includeonly>
{{#cargo_query:tables=Cards=C,CardReleases=CR
{{#cargo_query:tables=Cards=C,CardReleases=CR
|join on=C.ID = CR.ID
|join on=C.ID = CR.ID
|fields=
|fields=
,CONCAT('<span class="tooltip">[[',  REPLACE(REPLACE(C._pageName, '/Data', ''), 'Data:', ''), '|',  CR.Title,  CASE WHEN CR.Subtitle IS NULL THEN '' ELSE CONCAT(', ', CR.Subtitle) END, ' (', IFNULL(CR.CollInfo,C.CollInfo), ')]]<span>[[File:', IFNULL(CR.ImageFilename,'Card_Not_Found.jpg'), ']]</span></span>')=CardName
REPLACE(REPLACE(C._pageName, '/Data', ''), 'Data:', '')=PageTitle
,CR.Title
,CR.Subtitle
,C.CollInfo
,CR.ImageFilename=ImageFile
|where= {{{filter|{{PromoFilter}}}}}
|where= {{{filter|{{PromoFilter}}}}}
|order by={{{sort|{{StandardSort}}}}}
|order by={{{sort|{{StandardSort}}}}}
|limit=400
|limit=400
|format=ul
|intro=<ul style="columns: {{{columns|3}}}; -webkit-columns: {{{columns|3}}}; -moz-columns: {{{columns|3}}};">
|columns=3
|format=template
|template=CardULReadout
|outro=</ul>
|named args= yes
|columns={{{columns|3}}}
}}
}}
</includeonly>
</includeonly>

Latest revision as of 06:43, 13 February 2023

This is the "ListTable" template.

It should be called in the following format:

{{ListTable
|filter=
|sort=
|columns=
}}

Edit the page to see the template text.