Template

Difference between revisions of "FeedItem"

Line 1: Line 1:
<includeonly><div class="feed-item-media">{{#if:{{{image|}}}|[[File:{{{image}}}|frameless|link={{{%PAGE%}}}|alt={{{%TITLE%}}}|class=feed-item-img|480px]]|<span class="feed-item-noimg"></span>}}<div class="feed-item-title feed-item-title-over">[[{{{%PAGE%}}}|{{{%TITLE%}}}]]</div><div class="feed-item-actionsbar"><span class="feed-action" title="Like">&#9825;</span><span class="feed-action" title="Share">&#8599;</span></div></div><div class="feed-item-body"><div class="feed-item-title feed-item-title-side">[[{{{%PAGE%}}}|{{{%TITLE%}}}]]</div><div class="feed-item-desc">{{{desc|}}}</div><div class="feed-item-more">[[{{{%PAGE%}}}|More &raquo;]]</div>{{#if:{{{cta|}}}|<div class="feed-item-postbtn">[{{{cta}}} {{#if:{{{ctalabel|}}}|{{{ctalabel}}}|Learn more}}]</div>}}</div></includeonly><noinclude>
<includeonly>{{FeedCard|page={{{%PAGE%}}}|title={{{%TITLE%}}}|image={{{image|}}}|desc={{{desc|}}}|cta={{{cta|}}}|ctalabel={{{ctalabel|}}}}}</includeonly><noinclude>
One card. It is never typed by hand: the Feed template (through DynamicPageList) fills it in for each page, using the values in that page's <code><nowiki>{{FeedData}}</nowiki></code> line. Pages that have no FeedData line use ''Template:FeedItem.default'' instead.
Passes the values of a page's FeedData line to Template:FeedCard. Never typed by hand.
</noinclude>
</noinclude>

Revision as of 19:37, 15 October 2026

Passes the values of a page's FeedData line to Template:FeedCard. Never typed by hand.