Template:Collection: Difference between revisions
Jump to navigation
Jump to search
Ttenbergen (talk | contribs) No edit summary |
Ttenbergen (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 24: | Line 24: | ||
</noinclude>__NOEDITSECTION__{{{description| }}} | </noinclude>__NOEDITSECTION__{{{description| }}} | ||
{{#cargo_query: | <!--q pages -->{{#cargo_query: | ||
|tables=CollectedIn, Collection | |tables=CollectedIn, Collection | ||
|join on=CollectedIn._pageName=Collection._pageName <!-- yes _pN on _pN since we are checking that the pages found are not sub-collections --> | |join on=CollectedIn._pageName=Collection._pageName <!-- yes _pN on _pN since we are checking that the pages found are not sub-collections --> | ||
Line 30: | Line 30: | ||
|where=Collection._pageName is null | |where=Collection._pageName is null | ||
and (Collection = "{{PAGENAME}}" or Collection WITHIN "{{PAGENAME}}") | and (Collection = "{{PAGENAME}}" or Collection WITHIN "{{PAGENAME}}") | ||
and not CollectedIn._pageName Like "%.jpg" <!--imgs listed in gallery below--> | and not CollectedIn._pageName Like "%.jpg" and not CollectedIn._pageName Like "%.png" <!--imgs listed in gallery below--> | ||
|group by=CollectedIn._pageName | |group by=CollectedIn._pageName | ||
|limit=1000 | |limit=1000 | ||
Line 37: | Line 37: | ||
|format=ul | |format=ul | ||
}} | }} | ||
{{#cargo_query: | <!-- q sub-collections -->{{#cargo_query: | ||
intro=Sub-collections: | intro=Sub-collections: | ||
|format=ul | |format=ul | ||
Line 49: | Line 49: | ||
|intro===Sub-Collections in {{PAGENAME}} collection== | |intro===Sub-Collections in {{PAGENAME}} collection== | ||
}} | }} | ||
<!-- | <!-- q images -->{{#cargo_query: | ||
{{#cargo_query: | |||
intro==={{PAGENAME}} gallery== | intro==={{PAGENAME}} gallery== | ||
|tables=CollectedIn, Image_description | |tables=CollectedIn, Image_description | ||
|join on=CollectedIn._pageName=Image_description._pageName | |join on=CollectedIn._pageName=Image_description._pageName | ||
|fields=CONCAT("[[",Image_description._pageName,"|200px]]")=Image, Description, | |fields=CONCAT("[[",Image_description._pageName,"|200px]]")=Image, Description, | ||
|where=(Collection = "{{PAGENAME}}" or Collection WITHIN "{{PAGENAME}}") and CollectedIn._pageName like "%.jpg" | |where=(Collection = "{{PAGENAME}}" or Collection WITHIN "{{PAGENAME}}") and (CollectedIn._pageName like "%.jpg" or CollectedIn._pageName like "%.png") | ||
|group by=CollectedIn._pageName, Description | |group by=CollectedIn._pageName, Description | ||
|limit=1000 | |limit=1000 | ||
|default=<!-- if no images show nothing --> | |default=<!-- if no images show nothing --> | ||
|format=table | |format=table | ||
}} | }} | ||
<div style="display: none;"><includeonly> | <div style="display: none;"><includeonly> |
Latest revision as of 21:58, 2023 October 6
This template is used at the top of all collection pages to provide consistent listing of their contents.
Parameter | Description | Type | Status | |
---|---|---|---|---|
description | description | What defines this collection.
| String | required |
This template defines the table "Collection". View table.
Collection collection has no pages