Difference between revisions of "Template:Region/testing"

From Second Life Wiki
Jump to navigation Jump to search
Line 6: Line 6:
   | 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|{{{1|}}}}}}|PATH}}/{{#if:{{{x|{{{2|}}}}}}|{{#if:{{{y|{{{3|}}}}}}|{{{x|{{{2}}}}}}/{{{y|{{{3}}}}}}{{#if:{{{z|{{{4|}}}}}}|/{{{z|{{{4}}}}}}}}}}}} {{{text|{{{region|{{{1}}}}}}{{{#if:{{{hidelocation|}}}:| ({{#if:{{{x|{{{2|}}}}}}|{{#if:{{{y|{{{3|}}}}}}|{{{x|{{{2}}}}}}, {{{y|{{{3}}}}}}{{#if:{{{z|{{{4|}}}}}}|, {{{z|{{{4}}}}}}}}}}}})}}}}}}]</includeonly>
}}{{#urlencode:{{{region|{{{1|}}}}}}|PATH}}/{{#if:{{{x|{{{2|}}}}}}|{{#if:{{{y|{{{3|}}}}}}|{{{x|{{{2}}}}}}/{{{y|{{{3}}}}}}{{#if:{{{z|{{{4|}}}}}}|/{{{z|{{{4}}}}}}}}}}}} {{{text|{{{region|{{{1}}}}}}{{{#switch:{{{hidepos|false}}}:true|1|yes=|#default|false|0|no=({{#if:{{{x|{{{2|}}}}}}|{{#if:{{{y|{{{3|}}}}}}|{{{x|{{{2}}}}}}, {{{y|{{{3}}}}}}{{#if:{{{z|{{{4|}}}}}}|, {{{z|{{{4}}}}}}}}}}}})}}}}}}]</includeonly>
<noinclude>==Demo==
<noinclude>==Demo==
{{Region/testing
{{Region/testing
Line 19: Line 19:
{{Region/testing|Bug Island|12|34|56
{{Region/testing|Bug Island|12|34|56
| rating = g
| rating = g
| hidelocation
| hidepos
}}
}}
{{Region/testing|Bug Island|12|34|56
{{Region/testing|Bug Island|12|34|56

Revision as of 20:59, 26 September 2018

Demo

Parcel lght G.png Island|PATH}}/128/128 Bug Island1

Parcel lght G.png Island|PATH}}/12/34/56 Bug Island1

Parcel lght G.png Island|PATH}}/12/34/56 Bug Island1

Parcel lght G.png Island|PATH}}/12/34/56 Meme

Usage

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

The following syntax is also acceptable:

{{Region|region name|x|y|z|rating=a}}

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.
| hidelocation = If present, hides the location
| text         = Show this text instead of "Region [(x, y[, z])]"