Difference between revisions of "Template:Region"
Jump to navigation
Jump to search
Chaser Zaks (talk | contribs) |
Chaser Zaks (talk | contribs) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#switch:{{{rating|}}} | ||
{{#switch:{{{rating|}}} | |||
| a|adult = [[File:Parcel_lght_A.png]] | | a|adult = [[File:Parcel_lght_A.png]] | ||
| m|moderate = [[File:Parcel_lght_M.png]] | | m|moderate = [[File:Parcel_lght_M.png]] | ||
| g|general = [[File:Parcel_lght_G.png]] | | g|general = [[File:Parcel_lght_G.png]] | ||
}} | }} [{{#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|{{{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= ({{#if:{{{x|{{{2|}}}}}}|{{#if:{{{y|{{{3|}}}}}}|{{{x|{{{2}}}}}}, {{{y|{{{3}}}}}}{{#if:{{{z|{{{4|}}}}}}|, {{{z|{{{4}}}}}}}}}}}})|false|0|no=}}}}}]</includeonly> | ||
</includeonly> | |||
<noinclude>==Demo== | <noinclude>==Demo== | ||
{{Region | {{Region | ||
Line 16: | Line 13: | ||
| y = 128 | | y = 128 | ||
| rating = g | | rating = g | ||
}} | |||
{{Region|Bug Island|12|34|56 | |||
| rating = g | |||
}} | |||
{{Region|Bug Island|12|34|56 | |||
| rating = g | |||
| showpos = false | |||
}} | |||
{{Region|Bug Island|12|34|56 | |||
| rating = g | |||
| text = Meme | |||
}} | }} | ||
==Usage== | ==Usage== | ||
Line 22: | Line 30: | ||
| region = Name of the region | | region = Name of the region | ||
}}</pre> | }}</pre> | ||
The following syntax is also acceptable: | |||
<pre style="overflow:auto"> | |||
{{Region|region name|x|y|z|rating=a}} | |||
</pre> | |||
Extra options: | Extra options: | ||
Line 31: | Line 43: | ||
| grid = Currently only supports "Aditi" as a option, default is no grid/default location | | 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. | | 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])]" | |||
</pre> | </pre> | ||
</noinclude> | </noinclude> |
Latest revision as of 20:08, 26 September 2018
Demo
Island|PATH}}/128/128 Bug Island (128, 128)
Island|PATH}}/12/34/56 Bug Island (12, 34, 56)
Island|PATH}}/12/34/56 Bug Island
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])]"