Template:Collection: Difference between revisions
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": { | ||
" | "description": { | ||
"label": " | "label": "description", | ||
"description": " | "description": "What defines this collection. ", | ||
"example": " | "example": "This is a collection of information and images about families who live or have lived in Charleswood.", | ||
"type": "string", | "type": "string", | ||
"required": true, | "required": true, | ||
"suggested": true | "suggested": true | ||
} | } | ||
} | } | ||
} | } | ||
</templatedata> | </templatedata> | ||
Line 22: | Line 19: | ||
---- | ---- | ||
</noinclude> | </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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
description | description | What defines this collection.
| String | required |
{{{Description}}}