Template:Browse/RegionCard
Template page
More actions
Usage
Card template fed by SMW format=template queries on the Browse by growing region page. Iterates growing region pages and renders one card per region.
Receives two positional parameters from SMW:
{{{1}}}— region page name (mainlabel){{{2}}}— bare image filename from?Has image=imageprintout. Empty if no image set.
Card click target is the region browse subpage at Browse by growing region/{Region}, not the main region article. The subpage shows the accession listing and links back to the main article from its own top nav.
Outer #ask query needs link=none so values arrive as bare text rather than wikilink-formatted strings.
Image is requested at 1024px width for retina sharpness; CSS scales it to fill the 16:10 container via object-fit: cover. Cards for regions without Has image show the placeholder colour.
Template wikitext is on a single line by design.
Calling query
{{#ask:[[Category:Growing Regions]]
|?Has image=image
|format=template
|template=Browse/RegionCard
|sort=
|limit=200
|link=none
|searchlabel=
}}