Difference between revisions of "FeedData"
| Line 1: | Line 1: | ||
<includeonly>{{#vardefine:feedimage|{{{image|}}}}}{{#vardefine:feeddesc|{{{desc|}}}}}</includeonly><noinclude> | <includeonly>{{#vardefine:feedimage|{{{image|}}}}}{{#vardefine:feeddesc|{{{desc|}}}}}</includeonly><noinclude> | ||
Put this at the very top of any page that should look good in a Feed. It shows nothing on the page itself; the feed reads the values typed here. | |||
<pre> | <pre> | ||
{{FeedData | {{FeedData | ||
|image= | |image=CampingTrail.jpg | ||
|desc=A short one or two | |desc=A short teaser, one or two sentences. | ||
|cta=https://example.com/book | |||
|ctalabel=Book now | |||
}} | }} | ||
</pre> | </pre> | ||
* '''image''' – file name of an uploaded picture, without "File:" in front. | |||
* '''desc''' – short teaser (a card shows at most 3 lines). | |||
* '''cta''' – OPTIONAL. Web address for this post's own button, starting with <code>https://</code>. It only appears in feeds that have <code>postbuttons=1</code>. | |||
* '''ctalabel''' – OPTIONAL. Text on that button (default "Learn more"). | |||
</noinclude> | </noinclude> | ||
Revision as of 04:26, 14 October 2026
Put this at the very top of any page that should look good in a Feed. It shows nothing on the page itself; the feed reads the values typed here.
{{FeedData
|image=CampingTrail.jpg
|desc=A short teaser, one or two sentences.
|cta=https://example.com/book
|ctalabel=Book now
}}
- image – file name of an uploaded picture, without "File:" in front.
- desc – short teaser (a card shows at most 3 lines).
- cta – OPTIONAL. Web address for this post's own button, starting with
https://. It only appears in feeds that havepostbuttons=1. - ctalabel – OPTIONAL. Text on that button (default "Learn more").
