Template:Feed: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Nava Muni (talk | contribs)
empty
 
switching to SVG
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly></includeonly>
<includeonly>{{#replace:{{{3|{{{icon|[[Image:Feed-icon.svg|14px]]}}}}}}|<nowiki>
</nowiki>|}} [{{#replace:{{{1|{{{url|http://wiki.secondlife.com/wiki/Template:feed#Usage}}}}}}|<nowiki>
</nowiki>|}} {{#replace:{{#ifeq:{{{1|{{{url|}}}}}}||<strong style="color:red;">No URL has been specified.</strong>|{{{2|{{{text|subscribe to this feed}}}}}}}}|<nowiki>
</nowiki>|}}]</includeonly><noinclude>
This template provides a basic RSS feed link.
 
== Usage ==
* <strong>url</strong> is required, all others are optional.
* Default <strong>text</strong> is "<em>subscribe to this feed</em>"
* Default icon is [[Image:Feed-icon.svg|14px]]
 
=== Named-parameters ===
<code style="font-size:1.4em"><pre><nowiki>{{feed
|url=<!-- URL to RSS/Atom feed -->
|text=<!-- text for link -->
|icon=<!-- Icon to use next to link -->
}}</nowiki></pre></code>
 
=== Numeric-parameters ===
<code style="font-size:1.4em"><pre><nowiki>{{feed
|1=<!-- URL to RSS/Atom feed -->
|2=<!-- text for link -->
|3=<!-- Icon to use next to link -->
}}</nowiki></pre></code>
 
==Examples==
 
=== Missing URL ===
<code style="font-size:1.4em;"><pre><nowiki>{{feed
|text=This text will not be displayed because the URL is missing
}}</nowiki></pre></code>
{{feed
|text=This text will not be displayed because the URL is missing
}}
 
 
=== URL Only ===
<code style="font-size:1.4em"><pre><nowiki>{{feed
|http://blog.secondlife.com/feed/
}}</nowiki></pre></code>
{{feed
|http://blog.secondlife.com/feed/
}}
 
=== URL + Text ===
<code style="font-size:1.4em"><pre><nowiki>{{feed
|http://blog.secondlife.com/feed/
|Subscribe to the Official Second Life Blog
}}</nowiki></pre></code>
{{feed
|http://blog.secondlife.com/feed/
|Subscribe to the Official Second Life Blog
}}
 
=== URL + Text + Image ===
<code style="font-size:1.4em"><pre><nowiki>{{feed
|http://blog.secondlife.com/author/torleylinden/feed/
|Subscribe to Torley's posts on the Official Second Life Blog
|[[Image:Torley-favicon.png|14px]]
}}</nowiki></pre></code>
{{feed
|http://blog.secondlife.com/author/torleylinden/feed/
|Subscribe to Torley's posts on the Official Second Life Blog
|[[Image:Torley-favicon.png|14px]]
}}


<noinclude>
</noinclude>
</noinclude>

Latest revision as of 21:41, 4 December 2008

This template provides a basic RSS feed link.

Usage

Named-parameters

{{feed
|url=<!-- URL to RSS/Atom feed -->
|text=<!-- text for link -->
|icon=<!-- Icon to use next to link -->
}}

Numeric-parameters

{{feed
|1=<!-- URL to RSS/Atom feed -->
|2=<!-- text for link -->
|3=<!-- Icon to use next to link -->
}}

Examples

Missing URL

{{feed
|text=This text will not be displayed because the URL is missing
}}

Error creating thumbnail: convert-im6.q16: delegate failed `'rsvg-convert' -o '%o' '%i @ error/delegate.c/InvokeDelegate/1966. convert-im6.q16: unable to open file `/tmp/magick-7DrcvT021Bq8TOZ3yAoWHVEoPytxc1Eg': No such file or directory @ error/constitute.c/ReadImage/619. convert-im6.q16: no images defined `PNG:/tmp/transform_b7aa30b54964.png' @ error/convert.c/ConvertImageCommand/3229. <strongstyle="color:red;">NoURLhasbeenspecified.


URL Only

{{feed
|http://blog.secondlife.com/feed/
}}

Error creating thumbnail: convert-im6.q16: delegate failed `'rsvg-convert' -o '%o' '%i @ error/delegate.c/InvokeDelegate/1966. convert-im6.q16: unable to open file `/tmp/magick-U0TT20G3QsUlv1sUun97icHm73qQAz4E': No such file or directory @ error/constitute.c/ReadImage/619. convert-im6.q16: no images defined `PNG:/tmp/transform_68f79140d4a8.png' @ error/convert.c/ConvertImageCommand/3229. subscribetothisfeed

URL + Text

{{feed
|http://blog.secondlife.com/feed/
|Subscribe to the Official Second Life Blog
}}

Error creating thumbnail: convert-im6.q16: delegate failed `'rsvg-convert' -o '%o' '%i @ error/delegate.c/InvokeDelegate/1966. convert-im6.q16: unable to open file `/tmp/magick-o4CcdnNsFUetH9ESEsmdotFQMGDbsZJ4': No such file or directory @ error/constitute.c/ReadImage/619. convert-im6.q16: no images defined `PNG:/tmp/transform_c5af085df631.png' @ error/convert.c/ConvertImageCommand/3229. SubscribetotheOfficialSecondLifeBlog

URL + Text + Image

{{feed
|http://blog.secondlife.com/author/torleylinden/feed/
|Subscribe to Torley's posts on the Official Second Life Blog
|[[Image:Torley-favicon.png|14px]]
}}

SubscribetoTorley'spostsontheOfficialSecondLifeBlog