Template:Browse/AreaCard
Template page
More actions
Usage
Card template fed by SMW format=template queries on the Browse by growing area page. Iterates growing area pages and renders one card per area.
Receives two positional parameters from SMW:
{{{1}}}— area page name (mainlabel){{{2}}}— bare image filename from?Has image=imageprintout. Empty if no image set.
Card click target is the area browse subpage at Browse by growing area/{Area}, not the main area 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. Cards for areas without Has image show the placeholder colour.
Calling query
{{#ask:[[Category:Growing Areas]]
|?Has image=image
|format=template
|template=Browse/AreaCard
|sort=
|limit=500
|link=none
|searchlabel=
}}