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|}}}}}{{#feedtags:{{{tags|}}}}}</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. | 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. | ||
| Line 9: | Line 9: | ||
|ctalabel=Book now | |ctalabel=Book now | ||
}} | }} | ||
</pre> | </pre> | ||
* '''image''' – file name of an uploaded picture, without "File:" in front. | * '''image''' – file name of an uploaded picture, without "File:" in front, or a full web address of a picture (https://.../pic.jpg). | ||
* '''desc''' – short teaser (a card shows at most 3 lines). | * '''desc''' – short teaser (a card shows at most 3 lines). | ||
* '''tags''' – OPTIONAL. Keywords separated by commas, without #. They show under the page as #keyword links. (The edit box fills this in.) | |||
* '''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>. | * '''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"). | * '''ctalabel''' – OPTIONAL. Text on that button (default "Learn more"). | ||
</noinclude> | </noinclude> | ||
Latest revision as of 02:18, 21 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, or a full web address of a picture (
). - desc – short teaser (a card shows at most 3 lines).
- tags – OPTIONAL. Keywords separated by commas, without #. They show under the page as #keyword links. (The edit box fills this in.)
- 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").
