Difference between revisions of "Template:SLurl"
Jump to navigation
Jump to search
m (force space) |
m (fixed no-title in wiki-link support) |
||
Line 1: | Line 1: | ||
<includeonly>{{ #if: {{{region|}}} && {{{x|}}} && {{{y|}}} && {{{z|}}}||<strong style="color:red;">Region name as well as X, Y and Z co-ordinates are required fields.</strong>}}[http://slurl.com/secondlife/{{urlencode:{{{region}}}}}/{{{x}}}/{{{y}}}/{{{z}}}/{{ #if: {{{title|}}} |?title={{urlencode:{{{title}}}}}|}}{{ #if: {{{image|}}}|?img={{urlencode:{{{image}}}}}|}}{{ #if: {{{iframe|}}}|?iframe={{urlencode:{{{iframe}}}}}|}}{{ # | <includeonly>{{ #if: {{{region|}}} && {{{x|}}} && {{{y|}}} && {{{z|}}}||<strong style="color:red;">Region name as well as X, Y and Z co-ordinates are required fields.</strong>}}[http://slurl.com/secondlife/{{urlencode:{{{region}}}}}/{{{x}}}/{{{y}}}/{{{z}}}/{{ #if: {{{title|}}} |?title={{urlencode:{{{title}}}}}|}}{{ #if: {{{image|}}}|?img={{urlencode:{{{image}}}}}|}}{{ #if: {{{iframe|}}}|?iframe={{urlencode:{{{iframe}}}}}|}}{{ #ifeq: {{{no-title}}}|enabled||{{ #if: {{{title|}}}|<nowiki> </nowiki>{{{title}}}|}}|}}]</includeonly><noinclude> | ||
This template permits the easy inclusion of a '''[http://slurl.com/ SLurl]''' as a link without the need to create them manually or via ''tinyurl'' or similar external service (which is open to spamming problems) | This template permits the easy inclusion of a '''[http://slurl.com/ SLurl]''' as a link without the need to create them manually or via ''tinyurl'' or similar external service (which is open to spamming problems) | ||
== | == Examples == | ||
'''Basic''' | |||
{{SLurl | |||
|region=Ahern | |||
|x=18 | |||
|y=11 | |||
|z=20 | |||
|title=Ahern Welcome Area | |||
|}} | |||
<div style="font-size:160%;><code><pre><nowiki>{{SLurl | <div style="font-size:160%;><code><pre><nowiki>{{SLurl | ||
|region=Ahern | |region=Ahern | ||
Line 10: | Line 19: | ||
|}}</nowiki></pre></code> | |}}</nowiki></pre></code> | ||
'''Basic, no title''' | |||
{{SLurl | {{SLurl | ||
Line 18: | Line 27: | ||
|z=20 | |z=20 | ||
|title=Ahern Welcome Area | |title=Ahern Welcome Area | ||
|no-title=enabled | |||
|}} | |}} | ||
</noinclude> | </noinclude> |
Revision as of 18:00, 12 January 2007
This template permits the easy inclusion of a SLurl as a link without the need to create them manually or via tinyurl or similar external service (which is open to spamming problems)
Examples
Basic