Template:ListTable: Difference between revisions

From LOTR-TCG Wiki
(added column param)
No edit summary
 
(7 intermediate revisions by the same user not shown)
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'), ']]</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={{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.