Template:UI/posts library/entry

From Miniscope
Jump to: navigation, search

Card partial for Template:UI/posts_library. Invoked via SMW format=template with named args=yes, so each call receives the post's title in {{{Page}}} plus the projected printouts as named args.

Args:

  • Page — full title of the post page (from the parent
 #ask's mainlabel=Page).
  • Date — projected from ?Has date; the
 human-readable date string.
  • Author — projected from
 ?Has author.Has full name, i.e. the author's display
 name read through the Has author relationship rather than the bare
 author page title (the parent #ask uses link=none, so a
 plain ?Has author would surface "User:Foo"). Optional;
 authors without a Has full name contribute nothing. Multi-valued
 authors arrive comma-joined and render as-is in the meta line.
  • Description — projected from ?Has description;
 optional, line-clamped to 3 lines on the card. The full description
 still renders on the post page's masthead.
  • Image — projected from ?Has card image;
 optional. When empty, the image area falls back to a flat gradient
 block (see styles.css) so imageless posts still render cleanly.

Date and author share a mid-dot-separated meta line; the separator is drawn by styles.css (:not(:last-child)::after) so an empty author doesn't leave a dangling dot.