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