Difference between revisions of "User:SignpostMarv Martin/Sandbox/Template:RSSfeed"

From Second Life Wiki
Jump to navigation Jump to search
m (wiki-fu)
m (restoring redirect)
 
Line 1: Line 1:
<includeonly>{{#replace:{{{3|{{{icon|[[Image:Feed-icon-14x14.png]]}}}}}}|<nowiki>
#REDIRECT [[Template:feed]]
</nowiki>|}} [{{#replace:{{{1|{{{url|http://wiki.secondlife.com/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-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]]
}}
 
{{:User:SignpostMarv Martin/Sandbox/Template:RSSfeed}}
</noinclude>

Latest revision as of 18:58, 8 August 2008

Redirect to: