Template:Home/FeaturedAccessionGrid: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) Undo revision 2713 by Eloise Zomia (talk) Tags: Replaced Undo |
Eloise Zomia (talk | contribs) No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
< | <noinclude> | ||
<div class=" | Renders a featured accession grid using SMW. | ||
Params: | |||
- query: an SMW condition block (default: [[Category:Accessions]]) | |||
- limit: number of cards (default 6) | |||
- sort / order: defaults to collection date desc | |||
</noinclude><includeonly> | |||
<div class="lw-featured-grid lw-featured-grid--accessions"> | |||
{{#ask: | {{#ask: | ||
[[Category:Accessions]] | {{{query|[[Category:Accessions]]}}} | ||
|?Has | |?Has descriptive name=descriptive_name | ||
|?Has | |?Has accession ID=accession_id | ||
|?Has | |?Has conservation priority=conservation_priority | ||
|?Has growing region | |?Has growing region=growing_region | ||
|?Has | |?Has growing area=growing_area | ||
|?Has | |?Has country=country | ||
|?Has | |?Has province=province | ||
|mainlabel= | |?Has image=image | ||
| | |?Has image caption=image_caption | ||
|order= | |?Has collection date=collection_date | ||
|mainlabel=page | |||
|sort={{{sort|Has collection date}}} | |||
|order={{{order|desc}}} | |||
|limit={{{limit|6}}} | |||
|link=none | |link=none | ||
|searchlabel= | |||
|format=template | |format=template | ||
|template=Home/FeaturedAccessionCard | |template=Home/FeaturedAccessionCard | ||
|named args=yes | |named args=yes | ||
}} | }} | ||
</div> | </div> | ||
</includeonly> | |||
Revision as of 00:34, 20 January 2026
Renders a featured accession grid using SMW. Params: - query: an SMW condition block (default: ) - limit: number of cards (default 6) - sort / order: defaults to collection date desc