Template:Collection: Difference between revisions

From Charleswood Historical Society
Jump to navigation Jump to search
No edit summary
No edit summary
Line 48: Line 48:
|tables=CollectedIn, Image_description
|tables=CollectedIn, Image_description
|join on=CollectedIn._pageName=Image_description._pageName
|join on=CollectedIn._pageName=Image_description._pageName
|fields=CONCAT("[[",CollectedIn._pageName,"|200px]]")=Image, Description
|fields=CONCAT("[[",Image_description._pageName,"|200px]]")=Image, Description,
|where=Collection = "{{PAGENAME}}" or Collection WITHIN "{{PAGENAME}}"
|where=(Collection = "{{PAGENAME}}" or Collection WITHIN "{{PAGENAME}}") and CollectedIn._pageName like "%.jpg"
|group by=CollectedIn._pageName, Description
|group by=CollectedIn._pageName, Description
|limit=1000
|limit=1000
Line 55: Line 55:
|format=table
|format=table
<!-- stopped showing as gallery because can't show long descriptions there
<!-- stopped showing as gallery because can't show long descriptions there
|format=gallery
|format=table
|mode=packed-hover
|mode=packed-hover
|caption field=Description
|caption field=Description
Line 62: Line 62:
|show filename=0 -->
|show filename=0 -->
}}
}}
<div style="display: none;"><includeonly>
<div style="display: none;"><includeonly>
{{#default_form:Collection}}
{{#default_form:Collection}}

Revision as of 21:35, 2023 May 7

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 There are no pictures in the Collection gallery