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.) |
m (wiki-typo) |
||
Line 1: | Line 1: | ||
<includeonly>{{#replace:{{{3|{{{icon|[[Image:Feed-icon-14x14.png]]}}}}}}|<nowiki> | <includeonly>{{#replace:{{{3|{{{icon|[[Image:Feed-icon-14x14.png]]}}}}}}|<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> |
Revision as of 18:02, 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
Missing URL
{{feed
|text=This text will not be displayed because the URL is missing
}}
<strongstyle="color:red;">NoURLhasbeenspecified.
URL Only
{{feed
|http://blog.secondlife.com/feed/
}}
URL + Text
{{feed
|http://blog.secondlife.com/feed/
|Subscribe to the Official Second Life Blog
}}
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