Template:PortalPlaceCard
More actions
Card for one place in the places browser on Portal:Geography. It receives one
geographic page per call from an #ask with format=template,
named args=yes, mainlabel=page and link=none, so
every value arrives as plain text and this template decides what links.
It is the server-rendered fallback: readers see it before
MediaWiki:FacetBrowser.js loads, and keep it if the script fails or JavaScript is
off. The script's place renderer emits the same markup, so if this
template changes, change that renderer too.
| Parameter | Printout | Shown as |
|---|---|---|
page |
the page (mainlabel=page) |
the card's title and link |
type |
Has place type |
the badge; it also picks the location line |
img |
Has image (a file name) |
the thumbnail; with none, the Geography icon |
country |
Has country |
location line |
admin1 |
Has province |
location line |
region |
Has growing region |
location line, except on a growing region |
subregion |
Has subregion |
the location line of a country |
min_elev, max_elev |
Has minimum elevation, Has maximum elevation |
"Elevation 2,631 m – 3,700 m", "from …" or "up to …" |
The card prints no date, so it has no #time call: #time on an
empty value renders today's date, which is why the other portal cards guard theirs.
Styles live in Template:PortalPlaceCard/styles.css.