Difference between revisions of "Template:SLurl"

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



Revision as of 16:11, 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

{{#if: Ahern && 18 && 11 && 20 |[http://slurl.com/secondlife/Ahern/18/11/20/?title=Ahern+Welcome+Area{{#if: |?img=%7B%7B%7Bimage%7D%7D%7D{{#if: |?msg=%7B%7B%7Bmessage%7D%7D%7DRegion name as well as X, Y and Z co-ordinates are required fields.