Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 02:40, 9 August 2026 by Eloise Zomia (talk | contribs) (Encode where-line separators as · so the intended spaces survive #if branch-edge trimming)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Row card for Portal:Current Events. Receives one News Item per call from an #ask with format=template, named args=yes and link=none (all values arrive as plain text; this template decides what links). The headline wikilink carries a leading colon because news: is a registered URI protocol in MediaWiki, so [[1]] without the colon parses as a broken external link. The thumb slot renders the external imgsrc hotlink when present, otherwise the category icon set by CSS class. Location parts print a separator only when a non-empty part precedes them, so no doubled or trailing dots. The portal's lead card is styled structurally (.pn-feed > .pn-card): the live SMW drops userparam on template-format asks, so the userparam=lead hook here only works on direct calls. Styles live in Template:PortalCurrentEvents/styles.css.