Difference between revisions of "Template:Region/testing"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 7: Line 7:
   | #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}}}}}}{{#switch:{{{showpos|true}}}|#default|true|1|yes=&#32;({{#if:{{{x|{{{2|}}}}}}|{{#if:{{{y|{{{3|}}}}}}|{{{x|{{{2}}}}}}, {{{y|{{{3}}}}}}{{#if:{{{z|{{{4|}}}}}}|, {{{z|{{{4}}}}}}}}}}}})|false|0|no=}}}}}]</includeonly>
}}{{#urlencode:{{{region|{{{1|}}}}}}|PATH}}/{{#if:{{{x|{{{2|}}}}}}|{{#if:{{{y|{{{3|}}}}}}|{{{x|{{{2}}}}}}/{{{y|{{{3}}}}}}{{#if:{{{z|{{{4|}}}}}}|/{{{z|{{{4}}}}}}}}}}}} {{{text|{{{region|{{{1}}}}}}{{#switch:{{{showpos|true}}}|#default|true|1|yes=&#32;({{#if:{{{x|{{{2|}}}}}}|{{#if:{{{y|{{{3|}}}}}}|{{{x|{{{2}}}}}}, {{{y|{{{3}}}}}}{{#if:{{{z|{{{4|}}}}}}|, {{{z|{{{4}}}}}}}}}}}})|false|0|no=}}}}}]</includeonly>
<noinclude>==Demo==
<noinclude>{{Warning|This is the '''testing''' version of this template! Do not use in production, it may break pages!
{{Region/testing
Once you finish a modification and tested it '''thoroughly''', feel free to move it over to the production template.}}
==Demo==
{{{{PAGENAME}}
| region      = Bug Island
| region      = Bug Island
| x = 128
| x = 128
Line 14: Line 16:
| rating = g
| rating = g
}}
}}
{{Region/testing|Bug Island|12|34|56
{{{{PAGENAME}}|Bug Island|12|34|56
| rating = g
| rating = g
}}
}}
{{Region/testing|Bug Island|12|34|56
{{{{PAGENAME}}|Bug Island|12|34|56
| rating = g
| rating = g
| showpos = false
| showpos = false
}}
}}
{{Region/testing|Bug Island|12|34|56
{{{{PAGENAME}}|Bug Island|12|34|56
| rating = g
| rating = g
| text = Meme
| text = Meme

Latest revision as of 21:15, 26 September 2018

Warning!

This is the testing version of this template! Do not use in production, it may break pages! Once you finish a modification and tested it thoroughly, feel free to move it over to the production template.

Demo

Parcel lght G.png Island|PATH}}/128/128 Bug Island (128, 128)

Parcel lght G.png Island|PATH}}/12/34/56 Bug Island (12, 34, 56)

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

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.
| showpos      = Defaults to "no", if "yes", the position part will be omitted.
| text         = Show this text instead of "Region [(x, y[, z])]"