Difference between revisions of "Template:Region"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<onlyinclude>
<includeonly>
{{#switch:{{{rating|}}}
{{#switch:{{{rating|}}}
   | a|adult = [[File:Parcel_lght_A.png]]
   | a|adult = [[File:Parcel_lght_A.png]]
Line 5: Line 5:
   | g|general = [[File:Parcel_lght_G.png]]
   | g|general = [[File:Parcel_lght_G.png]]
}}
}}
[secondlife://{{#switch:{{{grid|}}}
[{{#switch:{{{grid|}}}
   | aditi = Aditi/secondlife/
   | aditi = {{#if:{{{webmap|}}}||secondlife://Aditi/secondlife/
}}{{#urlencode:{{{region|}}}|PATH}}/{{#if:{{{x|}}}|{{#if:{{{y|}}}|{{{x}}}/{{{y}}}{{#if:{{{z|}}}|/{{{z}}}}}}}}} {{{region}}} ({{#if:{{{x|}}}|{{#if:{{{y|}}}|{{{x}}}, {{{y}}}{{#if:{{{z}}}|, {{{z}}}}}}}}})]
  | #default|agni = {{#if:{{{webmap|}}}|https://maps.secondlife.com/secondlife/|secondlife://
</onlyinclude>
}}{{#urlencode:{{{region|}}}|PATH}}/{{#if:{{{x|}}}|{{#if:{{{y|}}}|{{{x}}}/{{{y}}}{{#if:{{{z|}}}|/{{{z}}}}}}}}} {{{region}}} ({{#if:{{{x|}}}|{{#if:{{{y|}}}|{{{x}}}, {{{y}}}{{#if:{{{z}}}|, {{{z}}}|}}}}}})]
<noinclude>{{Region|rating=a|grid=aditi|region=Sandbox Wanderton|x=1|y=1|z=1}}</noinclude>
</includeonly>
<noinclude>==Demo==
{{Region
| region      = Bug Island
| x = 128
| y = 128
| rating = g
}}
==Usage==
<pre style="overflow:auto">
{{Region
| region      = Name of the region
}}</pre>
 
Extra options:
<pre style="overflow:auto">
| x           = X location
| y           = Y location
| z           = Z location
| rating      = a/adult, m/moderate, or g/general. This prepends a rating icon
| grid        = Currently only supports "Aditi" as a option, default is no grid/default location
| webmap      = If present, it will use the webmap URL instead of a secondlife:// url.
</pre>
</noinclude>

Revision as of 16:17, 26 September 2018

Demo

Parcel lght G.png [{{#switch:

  | aditi = {{#if:||secondlife://Aditi/secondlife/
  | #default|agni = secondlife://{{#urlencode:Bug Island|PATH}}/128/128 Bug Island (128, 128, {{{z}}})]


Usage

{{Region
| region       = Name of the region
}}

Extra options:

| x            = X location
| y            = Y location
| z            = Z location
| rating       = a/adult, m/moderate, or g/general. This prepends a rating icon
| grid         = Currently only supports "Aditi" as a option, default is no grid/default location
| webmap       = If present, it will use the webmap URL instead of a secondlife:// url.