Difference between revisions of "Template:SLurl"

From Second Life Wiki
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:{{{region}}}}}/{{{x}}}/{{{y}}}/{{{z}}}/{{
| <strong style="color:red;">Region name as well as X, Y and Z co-ordinates are required fields.</strong>
#if: {{{title|}}}  
|?title={{urlencode:{{{title}}}}}|}}{{
#if: {{{image|}}}
|?img={{urlencode:{{{image}}}|}}{{
#if: {{{message|}}}
|?msg={{urlencode:{{{message}}}|}}{{
#if: {{{iframe|}}}
|?iframe={{urlencode:{{{iframe}}}|}}{{
#if: {{{title|}}}
| {{{title}}}|}}]| <strong style="color:red;">Region name as well as X, Y and Z co-ordinates are required fields.</strong>


}}</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=Ahern
|x=18
|y=11
|z=20
|title=Ahern Welcome Area
}}</nowiki></code></div>


== Example ==
== Example ==
Line 29: Line 13:
{{SLurl
{{SLurl
|region=Ahern
|region=Ahern
|x=18
|x=50
|y=11
|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