Difference between revisions of "Feed"
| Line 4: | Line 4: | ||
</h2> | </h2> | ||
<div class="feed-items{{#if:{{{cols|}}}| feed-grid}}"{{#if:{{{cols|}}}| style="--feed-cols:{{{cols}}}"}}> | <div class="feed-items{{#if:{{{cols|}}}| feed-grid}}"{{#if:{{{cols|}}}| style="--feed-cols:{{{cols}}}"}}> | ||
{{# | {{#if:{{{category|}}}|{{#dpl: | ||
category = {{{category}}} | |||
count = {{{count|3}}} | count = {{{count|3}}} | ||
order = descending | order = descending | ||
ordermethod = lastedit | ordermethod = lastedit | ||
format = ,{{FeedItem|page=%PAGE%|title=%TITLE%|image={{#var:feedimage}}|desc={{#var:feeddesc}}|style={{{style|overlay}}}|cta={{{cta|}}}|ctalabel={{{ctalabel|}}}|actions={{{actions|}}}\n}},, | format = ,{{FeedItem|page=%PAGE%|title=%TITLE%|image={{#var:feedimage}}|desc={{#var:feeddesc}}|style={{{style|overlay}}}|cta={{{cta|}}}|ctalabel={{{ctalabel|}}}|actions={{{actions|}}}\n}},, | ||
}} | }}|{{#if:{{{namespace|}}}|{{#dpl: | ||
namespace = {{{namespace}}} | |||
count = {{{count|3}}} | |||
order = descending | |||
ordermethod = lastedit | |||
format = ,{{FeedItem|page=%PAGE%|title=%TITLE%|image={{#var:feedimage}}|desc={{#var:feeddesc}}|style={{{style|overlay}}}|cta={{{cta|}}}|ctalabel={{{ctalabel|}}}|actions={{{actions|}}}\n}},, | |||
}}|{{#dpl: | |||
namespace = Main | |||
count = {{{count|3}}} | |||
order = descending | |||
ordermethod = lastedit | |||
format = ,{{FeedItem|page=%PAGE%|title=%TITLE%|image={{#var:feedimage}}|desc={{#var:feeddesc}}|style={{{style|overlay}}}|cta={{{cta|}}}|ctalabel={{{ctalabel|}}}|actions={{{actions|}}}\n}},, | |||
}}}}}} | |||
</div> | </div> | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
Usage: {{Feed|title=Latest Pages|count=3|mode=preview|viewall=Feed:AllPages}} | Usage: {{Feed|title=Latest Pages|count=3|mode=preview|viewall=Feed:AllPages}} | ||
Parameters: title, category, namespace | Parameters: title, category, namespace, count, mode, viewall, cols, style, cta, ctalabel, actions. | ||
If neither category nor namespace is given, the feed defaults to the Main (article) namespace. | If neither category nor namespace is given, the feed defaults to the Main (article) namespace. | ||
</noinclude> | </noinclude> | ||
Revision as of 23:56, 13 October 2026
Usage:
Latest Pages
Extension:DynamicPageList (DPL), version 3.3.7: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants
Parameters: title, category, namespace, count, mode, viewall, cols, style, cta, ctalabel, actions. If neither category nor namespace is given, the feed defaults to the Main (article) namespace.
