Difference between revisions of "Template:Place"
Jump to navigation
Jump to search
(Add |y=0 to example, make x and z optional) |
|||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
+ | {{#if: {{{maplocation|}}} | <div role="note" class="note note-info" style="background-color:#fc3; padding:0.5em">Please update maplocation parameter for Place template used in this page. Use <code>{{!}}x= {{!}}y= {{!}}z=</code> parameters instead of <code>{{!}}maplocation=</code></div> | }} | ||
{| class="wikitable" style="float:right;" | {| class="wikitable" style="float:right;" | ||
− | !colspan="10"| {{{name}}} | + | !colspan="10" style="background:green;"| {{{name}}} |
+ | |||
|- | |- | ||
!colspan="10"|[[File:{{{preview}}}|320px]] | !colspan="10"|[[File:{{{preview}}}|320px]] | ||
− | |- | + | |
+ | |- {{#if: {{{maplocation|}}} | | style="display: none;" }} | ||
|Map | |Map | ||
|[https://pandorabox.io/map/#{{{maplocation}}} {{{maplocation}}}] | |[https://pandorabox.io/map/#{{{maplocation}}} {{{maplocation}}}] | ||
+ | |||
+ | |- {{#if: {{{x|}}}{{{z|}}} | | style="display: none;" }} | ||
+ | |Map | ||
+ | |{{Coordinates |x={{{x|0}}} |y={{{y|0}}} |z={{{z|0}}} |zoom={{{zoom|12}}} }} | ||
+ | |||
+ | |- {{#if: {{{state|}}} | | style="display: none;" }} | ||
+ | |State | ||
+ | |{{{state}}} | ||
+ | |||
+ | |- {{#if: {{{owner|}}} | | style="display: none;" }} | ||
+ | |Owner | ||
+ | |[[User:{{{owner}}}|{{{owner}}}]] | ||
+ | |||
+ | |- {{#if: {{{founder|}}} | | style="display: none;" }} | ||
+ | |Founder | ||
+ | |[[User:{{{founder}}}|{{{founder}}}]] | ||
+ | |||
+ | |- {{#if: {{{builddate|}}} | | style="display: none;" }} | ||
+ | |Build date | ||
+ | |{{{builddate}}} | ||
|} | |} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
− | {{ | + | {{Place |
|name=New Town | |name=New Town | ||
− | | | + | |x=-1799 |
+ | |y=0 | ||
+ | |z=399 | ||
+ | |zoom=10 | ||
+ | |state={{Label|text=Open for public|color=green}} | ||
|preview=Screenshot 20181106 203026.png | |preview=Screenshot 20181106 203026.png | ||
+ | |owner=BuckarooBanzai | ||
+ | |founder=somedude | ||
}} | }} | ||
+ | |||
+ | === Include example === | ||
+ | From [[New Town]] | ||
+ | <pre> | ||
+ | {{Place | ||
+ | |name=New Town | ||
+ | |x=-1799 | ||
+ | |y=0 | ||
+ | |z=399 | ||
+ | |zoom=10 | ||
+ | |state={{Label|text=Open for public|color=green}} | ||
+ | |preview=Screenshot 20181106 203026.png | ||
+ | |owner=BuckarooBanzai | ||
+ | |founder=somedude | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | [[Category:Template]] | ||
</noinclude> | </noinclude> |
Latest revision as of 20:53, 16 January 2021
New Town | |||||||||
---|---|---|---|---|---|---|---|---|---|
Map | X: -1799 Y: 0 Z: 399
| ||||||||
State | Open for public | ||||||||
Owner | BuckarooBanzai | ||||||||
Founder | somedude |
Include example
From New Town
{{Place |name=New Town |x=-1799 |y=0 |z=399 |zoom=10 |state={{Label|text=Open for public|color=green}} |preview=Screenshot 20181106 203026.png |owner=BuckarooBanzai |founder=somedude }}