Template:Browse/CountryRow
Template page
More actions
Usage
5-column accession row template for country subpages. One row per accession, rendered via SMW format=template.
Positional parameters (delivered by SMW):
{{{1}}}— accession page name (mainlabel){{{2}}}— image filename{{{3}}}— growing region name{{{4}}}— growing area name{{{5}}}— collection date
Used by Template:Browse/CountrySubpage. The outer #ask query needs link=none so values arrive as bare text rather than auto-formatted wikilinks.
Styling
Cells use the existing .lw-browse-results classes from Template:Browse/styles.css:
.lw-browse-results__thumbon the first cell, with a.lw-browse-results__thumb-innerwrapper div around the image — gives the 100×75 thumbnail size, rounded corners, and the placeholder background colour for accessions without an image yet.lw-browse-results__nameon the second cell — forest-green link colour, slight weight bump- Other columns get widths and styling from the table-level
:nth-childrules
Thumbnails are requested at 200×150 (retina source); CSS forces display at 100×75 with object-fit: cover.
| instead of |
Cell-starting pipes and the |- row separator use the {{!}} magic word so they're parsed as table syntax after template expansion. Pipes inside protected constructs ([[File:...|...]], {{#if:...|...}}, {{{1|}}}) stay as raw |.