Template:PortalNewsCard
More actions
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.