Template:Collection: Difference between revisions

From Charleswood Historical Society
Jump to navigation Jump to search
No edit summary
No edit summary
 
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 54: Line 54:
|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

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.

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
descriptiondescription

What defines this collection.

Example
This is a collection of information and images about families who live or have lived in Charleswood.
Stringrequired

This template defines the table "Collection". View table.



Collection collection has no pages