Feed
Usage (unchanged parameters):
- title, category, namespace, exclude, count, mode, viewall — same as before.
New optional parameters:
- cols — number of columns on wide screens. Leave blank for the
original default (3, via the existing flexible layout). Set to a number (e.g.cols=2orcols=4) to use a strict grid with that many columns instead.
- style — visual style of each card:
- (blank / not set) — original look: title overlaid on the photo,
description below it. Unchanged from before.
overlaytop— title across the TOP of the photo,
description across the BOTTOM of the photo (both over the image).
side— photo alone on the left, title and description
stacked on the right, nothing written over the image. Intended for one-column "view all" style pages.
- cta — a URL. If set, adds a small button to every card in this
feed. Combine with ctalabel for the button's text (default: "Learn more").
- actions — set to
1to add placeholder like/share
icon buttons to every card in this feed. (These are visual only — no click behavior is wired up yet, since the action wasn't defined.)
Examples:
{{Feed|title=Latest Camping Blog Posts|category=Camping|count=3|mode=preview|viewall=Feed:Camping}}
-> exactly like before, 3 across, title-over-image style
{{Feed|title=Latest Camping Blog Posts|category=Camping|count=3|cols=4}}
-> same style, but 4 across instead of 3
{{Feed|title=Latest Camping Blog Posts|category=Camping|count=50|mode=full|style=side}}
-> "view all" page, one per row, photo left / text right
{{Feed|title=Latest Camping Blog Posts|category=Camping|count=3|style=overlaytop|cta=https://example.com/book|ctalabel=Book Now|actions=1}}
-> title-top/desc-bottom over the photo, plus a "Book Now" button
and like/share icons on every card
