Template:ListTable: Difference between revisions

From LOTR-TCG Wiki
No edit summary
(converting to use a template with lazy loading support)
Line 5: Line 5:
|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'), '|500x500px]]</span></span>')=CardName
,REPLACE(REPLACE(C._pageName, '/Data', ''), 'Data:', '')=PageTitle
,CR.Title
,CR.Subtitle
,CR.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>
|format=CardULReadout
|outro=</ul>
|columns={{{columns|3}}}
|columns={{{columns|3}}}
}}
}}
</includeonly>
</includeonly>

Revision as of 17:52, 12 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.