User:SignpostMarv Martin/Sandbox/Template:RSSfeed: Difference between revisions
m prepping for move |
m quick test |
||
| Line 1: | Line 1: | ||
# | <includeonly>{{#replace:{{{3|{{{icon|[[Image:Feed-icon-14x14.png]]}}}}}}|<nowiki> | ||
</nowiki>|}} [{{#replace:{{{1|{{{url|#Usage}}}}}}|<nowiki> | |||
</nowiki>|}} {{#replace:{{{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-14x14.png]] | |||
=== 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== | |||
=== 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]] | |||
}} | |||
{{feed}} | |||
</noinclude> | |||
Revision as of 18:49, 8 August 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
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-0xyX_MY-T84LxrBEPJ6qR71ze3ny3mS9': No such file or directory @ error/constitute.c/ReadImage/619. convert-im6.q16: no images defined `PNG:/tmp/transform_7719eaf19aed.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-25SR568QBh67UT0mKtP9f0-2zbeB3C1r': No such file or directory @ error/constitute.c/ReadImage/619. convert-im6.q16: no images defined `PNG:/tmp/transform_116905cf915d.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
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-KSDF8uhqSSWolDZ581mz9BhD0zE3n518': No such file or directory @ error/constitute.c/ReadImage/619. convert-im6.q16: no images defined `PNG:/tmp/transform_19d4a34aab78.png' @ error/convert.c/ConvertImageCommand/3229. <strongstyle="color:red;">NoURLhasbeenspecified.