Difference between revisions of "Feed"
| (One intermediate revision by the same user not shown) | |||
| Line 5: | Line 5: | ||
|include={FeedData{{!}}FeedItem} | |include={FeedData{{!}}FeedItem} | ||
|notcategory={{{exclude|NoFeed}}} | |notcategory={{{exclude|NoFeed}}} | ||
|notcategory= | |notcategory=Staff only | ||
|format=,<div class="feed-item">,{{#if:{{{cta|}}}|<span class="feed-item-feedcard-btn">[{{{cta}}} {{#if:{{{ctalabel|}}}|{{{ctalabel}}}|Learn more}}]</span>}}</div>, | |format=,<div class="feed-item">,{{#if:{{{cta|}}}|<span class="feed-item-feedcard-btn">[{{{cta}}} {{#if:{{{ctalabel|}}}|{{{ctalabel}}}|Learn more}}]</span>}}</div>, | ||
}}|{{#if:{{{category|}}}|{{#dpl:category={{{category}}} | }}|{{#if:{{{category|}}}|{{#dpl:category={{{category}}} | ||
| Line 13: | Line 13: | ||
|include={FeedData{{!}}FeedItem} | |include={FeedData{{!}}FeedItem} | ||
|notcategory={{{exclude|NoFeed}}} | |notcategory={{{exclude|NoFeed}}} | ||
|notcategory= | |notcategory=Staff only | ||
|format=,<div class="feed-item">,{{#if:{{{cta|}}}|<span class="feed-item-feedcard-btn">[{{{cta}}} {{#if:{{{ctalabel|}}}|{{{ctalabel}}}|Learn more}}]</span>}}</div>, | |format=,<div class="feed-item">,{{#if:{{{cta|}}}|<span class="feed-item-feedcard-btn">[{{{cta}}} {{#if:{{{ctalabel|}}}|{{{ctalabel}}}|Learn more}}]</span>}}</div>, | ||
}}|{{#if:{{{namespace|}}}|{{#dpl:namespace={{{namespace}}} | }}|{{#if:{{{namespace|}}}|{{#dpl:namespace={{{namespace}}} | ||
| Line 21: | Line 21: | ||
|include={FeedData{{!}}FeedItem} | |include={FeedData{{!}}FeedItem} | ||
|notcategory={{{exclude|NoFeed}}} | |notcategory={{{exclude|NoFeed}}} | ||
|notcategory= | |notcategory=Staff only | ||
|format=,<div class="feed-item">,{{#if:{{{cta|}}}|<span class="feed-item-feedcard-btn">[{{{cta}}} {{#if:{{{ctalabel|}}}|{{{ctalabel}}}|Learn more}}]</span>}}</div>, | |format=,<div class="feed-item">,{{#if:{{{cta|}}}|<span class="feed-item-feedcard-btn">[{{{cta}}} {{#if:{{{ctalabel|}}}|{{{ctalabel}}}|Learn more}}]</span>}}</div>, | ||
}}|{{#dpl:namespace=Main | }}|{{#dpl:namespace=Main | ||
| Line 29: | Line 29: | ||
|include={FeedData{{!}}FeedItem} | |include={FeedData{{!}}FeedItem} | ||
|notcategory={{{exclude|NoFeed}}} | |notcategory={{{exclude|NoFeed}}} | ||
|notcategory= | |notcategory=Staff only | ||
|format=,<div class="feed-item">,{{#if:{{{cta|}}}|<span class="feed-item-feedcard-btn">[{{{cta}}} {{#if:{{{ctalabel|}}}|{{{ctalabel}}}|Learn more}}]</span>}}</div>, | |format=,<div class="feed-item">,{{#if:{{{cta|}}}|<span class="feed-item-feedcard-btn">[{{{cta}}} {{#if:{{{ctalabel|}}}|{{{ctalabel}}}|Learn more}}]</span>}}</div>, | ||
}}}}}}}}</div>{{#ifeq:{{{feedctapos|top}}}|bottom|{{#if:{{{feedcta|}}}|<div class="feed-footer"><span class="feed-feedbtn">[{{{feedcta}}} {{#if:{{{feedctalabel|}}}|{{{feedctalabel}}}|View all}}]</span></div>}}}}</div></includeonly><noinclude> | }}}}}}}}</div>{{#ifeq:{{{feedctapos|top}}}|bottom|{{#if:{{{feedcta|}}}|<div class="feed-footer"><span class="feed-feedbtn">[{{{feedcta}}} {{#if:{{{feedctalabel|}}}|{{{feedctalabel}}}|View all}}]</span></div>}}}}</div></includeonly><noinclude> | ||
| Line 36: | Line 36: | ||
<pre> | <pre> | ||
{{Feed | {{Feed | ||
|title=Latest | |title=Latest Knitting Posts | ||
|category= | |category=Knitting | ||
|count=3 | |count=3 | ||
|viewall=Feed: | |viewall=Feed:Knitting | ||
}} | }} | ||
</pre> | </pre> | ||
Latest revision as of 02:55, 27 October 2026
Feed shows the newest pages as a row of cards. Type it on any page:
{{Feed
|title=Latest Knitting Posts
|category=Knitting
|count=3
|viewall=Feed:Knitting
}}
Which pages: category (one category name) or namespace. If neither is given, the feed shows the newest pages in the main (article) namespace. count = how many cards. sort=created = newest created first (the default is most recently edited).
Look: style = (leave blank), overlaytop or side. cols = 1 to 5 columns (default 3). actions=1 = show like/share icons. mode = preview or full. viewall = the page the title links to.
Keyword feed: tag=camping shows every page tagged #camping (instead of category).
Extras: box=1 = grey rounded box around the feed. class=myclass = adds your own CSS class. exclude=CategoryName = hide pages in that category (default: pages in Category:NoFeed never show).
Buttons (all optional, any combination):
postbuttons=1– each card shows its OWN button, taken fromctaandctalabelin that post's{{FeedData}}line.ctaandctalabel– ONE button repeated on every card (same link and text on all). The label cannot contain a comma.feedctaandfeedctalabel– ONE button for the whole feed, beside the title. Addfeedctapos=bottomto put it under the cards instead.
Every web address must be complete, starting with https://.
