Difference between revisions of "Template:Region"

From Second Life Wiki
Jump to navigation Jump to search
Line 6: Line 6:
}}
}}
[{{#switch:{{{grid|}}}
[{{#switch:{{{grid|}}}
   | aditi = {{#if:{{{webmap|}}}||secondlife://Aditi/secondlife/
   | aditi = {{#if:{{{webmap|}}}||secondlife://Aditi/secondlife/}}
   | #default|agni = {{#if:{{{webmap|}}}|https://maps.secondlife.com/secondlife/|secondlife://
   | #default|agni = {{#if:{{{webmap|}}}|https://maps.secondlife.com/secondlife/|secondlife://}}
}}{{#urlencode:{{{region|}}}|PATH}}/{{#if:{{{x|}}}|{{#if:{{{y|}}}|{{{x}}}/{{{y}}}{{#if:{{{z|}}}|/{{{z}}}}}}}}} {{{region}}} ({{#if:{{{x|}}}|{{#if:{{{y|}}}|{{{x}}}, {{{y}}}{{#if:{{{z}}}|, {{{z}}}|}}}}}})]
}}{{#urlencode:{{{region|}}}|PATH}}/{{#if:{{{x|}}}|{{#if:{{{y|}}}|{{{x}}}/{{{y}}}{{#if:{{{z|}}}|/{{{z}}}}}}}}} {{{region}}} ({{#if:{{{x|}}}|{{#if:{{{y|}}}|{{{x}}}, {{{y}}}{{#if:{{{z}}}|, {{{z}}}|}}}}}})]
</includeonly>
</includeonly>

Revision as of 17:17, 26 September 2018

Demo

Parcel lght G.png 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.