Template:Browse/AppellationCard
Template page
More actions
Usage
Card template fed by SMW format=template queries on the Browse by appellation page. Iterates appellation pages and renders one card per appellation.
Receives two positional parameters from SMW:
{{{1}}}— appellation page name including the(appellation)suffix (mainlabel){{{2}}}— bare image filename from?Has image=imageprintout. Empty if no image set.
Card title and click target both use the full page name. The (appellation) suffix is visible in the title; stripping it would require either a separate Has display name property on each appellation page or a Lua helper.
Card click target is the appellation browse subpage at Browse by appellation/{Appellation} (appellation), not the main appellation article. The subpage shows accessions 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.
Calling query
{{#ask:[[Category:Appellations]]
|?Has image=image
|format=template
|template=Browse/AppellationCard
|sort=
|limit=500
|link=none
|searchlabel=
}}