Template:Collection: Difference between revisions

From Charleswood Historical Society
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
<templatedata>
<templatedata>
{
{
"description": "This template is used at the top of all collection pages to provide consistent listing of their contents. ",
"params": {
"params": {
"Collection_group": {
"description": {
"label": "Collection group",
"label": "description",
"description": "Is this collection part of a set of collections. ",
"description": "What defines this collection. ",
"example": "Family collections",
"example": "This is a collection of information and images about families who live or have lived in Charleswood.",
"type": "string",
"type": "string",
"suggestedvalues": [
", Pioneers, Businesses, Historical Stories, Events, Sports/Team"
],
"required": true,
"required": true,
"suggested": true
"suggested": true
}
}
},
}
"description": "This template is used on pages about collections to query for everything in the collection. "
}
}
</templatedata>
</templatedata>
Line 22: Line 19:
----
----


</noinclude>This is the {{PAGENAME}} collection page. It is part of the {{{Collection_group}}} collection group.<div style="display: none;">
</noinclude>{{{Description}}}<div style="display: none;">
<includeonly>
<includeonly>


{{#cargo_query:
tables=Collection_assignment
|fields=_pageName
|where=Collection={{PAGENAME}}
|limit=1000
|default={{PAGENAME}} collection has no contents
|intro===Items in {{PAGENAME}} collection==
|format=ul
}}
{{#cargo_query:
tables=Collection_assignment, Image_description
|join on=Collection_assignment._pageName=Image_description._pageName
|fields=Collection_assignment._pageName, Description
|where=Collection={{PAGENAME}}
|limit=1000
|default=There are no pictures in the {{PAGENAME}} collection
|intro==={{PAGENAME}} gallery==
|format=gallery
|caption field=Description
|show bytes=0
|show dimensions=0
|show filename=0
}}
{{#default_form:Collection}}
{{#default_form:Collection}}



Revision as of 23:06, 2023 May 5

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

{{{Description}}}