Difference between revisions of "Template:Feed"
Jump to navigation
Jump to search
m (Template:RSSfeed moved to Template:Feed: There are more syndication formats than RSS.) |
(switching to SVG) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#replace:{{{3|{{{icon|[[Image:Feed-icon | <includeonly>{{#replace:{{{3|{{{icon|[[Image:Feed-icon.svg|14px]]}}}}}}|<nowiki> | ||
</nowiki>|}} [{{#replace:{{{1|{{{url|http://wiki.secondlife.com/Template:feed#Usage}}}}}}|<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>|}} {{#replace:{{#ifeq:{{{1|{{{url|}}}}}}||<strong style="color:red;">No URL has been specified.</strong>|{{{2|{{{text|subscribe to this feed}}}}}}}}|<nowiki> | ||
</nowiki>|}}]</includeonly><noinclude> | </nowiki>|}}]</includeonly><noinclude> | ||
Line 8: | Line 8: | ||
* <strong>url</strong> is required, all others are optional. | * <strong>url</strong> is required, all others are optional. | ||
* Default <strong>text</strong> is "<em>subscribe to this feed</em>" | * Default <strong>text</strong> is "<em>subscribe to this feed</em>" | ||
* Default icon is [[Image:Feed-icon | * Default icon is [[Image:Feed-icon.svg|14px]] | ||
=== Named-parameters === | === Named-parameters === |
Latest revision as of 20:41, 4 December 2008
This template provides a basic RSS feed link.
Usage
- url is required, all others are optional.
- Default text is "subscribe to this feed"
- Default icon is Error creating thumbnail: convert-im6.q16: delegate failed `'rsvg-convert' -o '%o' '%i'' @ error/delegate.c/InvokeDelegate/1928. convert-im6.q16: unable to open file `/tmp/magick-16591a53sWjP8Qfkb': No such file or directory @ error/constitute.c/ReadImage/600. convert-im6.q16: no images defined `PNG:/tmp/transform_708140303893.png' @ error/convert.c/ConvertImageCommand/3258.
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/1928. convert-im6.q16: unable to open file `/tmp/magick-16596xHrU4BErEY8e': No such file or directory @ error/constitute.c/ReadImage/600. convert-im6.q16: no images defined `PNG:/tmp/transform_ceabd47e9ad1.png' @ error/convert.c/ConvertImageCommand/3258.
<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/1928. convert-im6.q16: unable to open file `/tmp/magick-16601fCM1t6fl011d': No such file or directory @ error/constitute.c/ReadImage/600. convert-im6.q16: no images defined `PNG:/tmp/transform_2394fb6539b1.png' @ error/convert.c/ConvertImageCommand/3258.
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/1928. convert-im6.q16: unable to open file `/tmp/magick-16606b-sILrC51gUh': No such file or directory @ error/constitute.c/ReadImage/600. convert-im6.q16: no images defined `PNG:/tmp/transform_5bd6fb69e128.png' @ error/convert.c/ConvertImageCommand/3258.
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