Template

Difference between revisions of "FeedCard"

Admin
Admin (talk | contribs) (Created page with "<includeonly><div class="feed-item-media">{{#if:{{#feedimage:{{{page}}}|{{{image|}}}|{{FeedDefaultImage}}}}|[[File:{{#feedimage:{{{page}}}|{{{image|}}}|{{FeedDefaultImage}}}}|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">♡</span><span class="feed-acti...")
 
 
Line 1: Line 1:
<includeonly><div class="feed-item-media">{{#if:{{#feedimage:{{{page}}}|{{{image|}}}|{{FeedDefaultImage}}}}|[[File:{{#feedimage:{{{page}}}|{{{image|}}}|{{FeedDefaultImage}}}}|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">{{#if:{{{desc|}}}|{{{desc}}}|{{#feedexcerpt:{{{page}}}}}}}</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><div class="feed-item-media">{{#if:{{#feedimageurl:{{{image|}}}}}|[{{fullurl:{{{page}}}}} {{#feedimageurl:{{{image|}}}}}]|{{#if:{{#feedimage:{{{page}}}|{{{image|}}}|{{FeedDefaultImage}}}}|[[File:{{#feedimage:{{{page}}}|{{{image|}}}|{{FeedDefaultImage}}}}|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">{{#if:{{{desc|}}}|{{{desc}}}|{{#feedexcerpt:{{{page}}}}}}}</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>
One card. Used by Template:FeedItem and Template:FeedItem.default; never typed by hand. Picture: the image typed in the page's FeedData, else the first picture in the page, else Template:FeedDefaultImage. Description: the desc typed in FeedData, else the start of the page text.
One card. Used by Template:FeedItem and Template:FeedItem.default; never typed by hand. Picture: a picture web address typed in FeedData (only if the site allows outside pictures), else the image file name typed in FeedData, else the first picture in the page, else Template:FeedDefaultImage. Description: the desc typed in FeedData, else the start of the page text.
</noinclude>
</noinclude>

Latest revision as of 02:15, 21 October 2026

One card. Used by Template:FeedItem and Template:FeedItem.default; never typed by hand. Picture: a picture web address typed in FeedData (only if the site allows outside pictures), else the image file name typed in FeedData, else the first picture in the page, else Template:FeedDefaultImage. Description: the desc typed in FeedData, else the start of the page text.