Template

Difference between revisions of "FeedItem"

 
(2 intermediate revisions by the same user not shown)
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>{{#if:{{#feedonce:{{{%PAGE%}}}}}|{{FeedCard|page={{{%PAGE%}}}|title={{{%TITLE%}}}|image={{{image|}}}|desc={{{desc|{{{description|}}}}}}|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, once per page even if a page has more than one FeedData line. Never typed by hand.
</noinclude>
</noinclude>

Latest revision as of 03:57, 28 October 2026

Passes the values of a page's FeedData line to Template:FeedCard, once per page even if a page has more than one FeedData line. Never typed by hand.