Template:Category/Forum/post row regular

From Miniscope
Jump to: navigation, search

Row renderer for the regular (non-pinned) portion of the posts list in Template:Category/Forum. Do not transclude directly outside the forum landing.

The parent #ask doesn't filter on Is announcement because SMW's !true excludes pages where the property is unset — which would drop legacy posts that pre-date the property. So we fetch unfiltered and suppress announcement rows here: when matches a truthy token (case-insensitive: yes, y, true, t, 1 — covers SMW Boolean serialization across locales), this template emits nothing. Announcements still appear once via the companion Template:Category/Forum/post_row_pinned called against the filtered pinned query.

The cost of suppressing here rather than filtering in the query: the outer #ask fetches up to limit=25 but the regular list visibly drops below that by however many announcements are in the fetch window. Tuned for the typical case where the pinned cap is 5, so we over-fetch by 5 to keep ~20 non-announcements visible.

Named-arg params: identical to Template:Category/Forum/post_row_pinned, plus:

  • Pinned?Is announcement=Pinned. Truthy
 ⇒ this row is an announcement and is suppressed.

userparam: same as the pinned template — landing page's Template:Category/Forum/post row regular used as the default forum fallback.