Difference between revisions of "Template:SLurl"
Jump to navigation
Jump to search
(revert.) |
(revert further) |
||
Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{ #if: {{{region|}}} && {{{x|}}} && {{{y|}}} && {{{z|}}} | [http://slurl.com/secondlife/{{urlencode|{{{region}}}}}/{{{x}}}/{{{y}}}/{{{z}}}/{{ #if: {{{title|}}} |?title={{urlencode|{{{title}}}}}| }} | ||
#if: {{{region|}}} && {{{x|}}} && {{{y|}}} && {{{z|}}} | |||
|[http://slurl.com/secondlife/{{urlencode | | <strong style="color:red;">Region name as well as X, Y and Z co-ordinates are required fields.</strong> | ||
#if: {{{title|}}} | |||
|?title={{urlencode | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
Line 17: | Line 7: | ||
== Usage == | == Usage == | ||
<div style="font-size: 140% ;"><code><nowiki>{{SLurl | <div style="font-size: 140% ;"><code><nowiki>{{</nowiki>Template:SLurl |''' <region name> '''|''' <x> '''|''' <y> '''|''' <z> '''|''' <target description>'''<nowiki>}}</nowiki></code></div> | ||
|region | |||
|x | |||
|y | |||
|z | |||
| | |||
}}</nowiki></code></div> | |||
== Example == | == Example == | ||
Line 29: | Line 13: | ||
{{SLurl | {{SLurl | ||
|region=Ahern | |region=Ahern | ||
|x= | |x=50 | ||
|y= | |y=120 | ||
|z=20 | |z=20 | ||
|title=Ahern Welcome Area | |title=Ahern Welcome Area |
Revision as of 16:56, 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)
Usage
{{Template:SLurl | <region name> | <x> | <y> | <z> | <target description>}}
Example
[http://slurl.com/secondlife/Template:Urlencode/50/120/20/?title=Template:Urlencode