Difference between revisions of "Template:Region"
Jump to navigation
Jump to search
Chaser Zaks (talk | contribs) |
Chaser Zaks (talk | contribs) |
||
Line 1: | Line 1: | ||
< | <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]] | ||
}} | }} | ||
[ | [{{#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:// | ||
</ | }}{{#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= | </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
| 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.