Difference between revisions of "Template:SLurl"

From Second Life Wiki
Jump to navigation Jump to search
m (wiki-typo)
(testing full SLurl support)
Line 1: Line 1:
<includeonly>{{ #if: {{{region|}}} && {{{x|}}} && {{{y|}}} && {{{z|}}} | [http://slurl.com/secondlife/{{urlencode:{{{region}}}}}/{{{x}}}/{{{y}}}/{{{z}}}/{{ #if: {{{title|}}} |?title={{urlencode:{{{title}}}}}| }}]| <strong style="color:red;">Region name as well as X, Y and Z co-ordinates are required fields.</strong>
<includeonly>{{
#if: {{{region|}}} && {{{x|}}} && {{{y|}}} && {{{z|}}}
|[http://slurl.com/secondlife/{{urlencode:{{{region}}}}}/{{{x}}}/{{{y}}}/{{{z}}}/{{
#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 5: Line 17:


== Usage ==
== Usage ==
<div style="font-size: 140% ;"><code><nowiki>{{</nowiki>Template:SLurl |''' <region name> '''|''' <x> '''|''' <y> '''|''' <z> '''|''' <target description>'''<nowiki>}}</nowiki></code></div>
<div style="font-size: 140% ;"><code><nowiki>{{SLurl
|region=Ahern
|x=18
|y=11
|z=20
|title=Ahern Welcome Area
}}</nowiki></code></div>


== Example ==
== Example ==
Line 11: Line 29:
{{SLurl
{{SLurl
|region=Ahern
|region=Ahern
|x=50
|x=18
|y=120
|y=11
|z=20
|z=20
|title=Ahern Welcome Area
|title=Ahern Welcome Area

Revision as of 17:10, 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

{{SLurl |region=Ahern |x=18 |y=11 |z=20 |title=Ahern Welcome Area }}

Example

{{

  1. if: Ahern && 18 && 11 && 20

|[http://slurl.com/secondlife/Ahern/18/11/20/?title=Ahern+Welcome+Area{{

  1. if:

|?img=%7B%7B%7Bimage%7D%7D%7D{{

  1. if:

|?msg=%7B%7B%7Bmessage%7D%7D%7DRegion name as well as X, Y and Z co-ordinates are required fields.