Difference between revisions of "Template:Place"

From Pandorabox
Jump to navigation Jump to search
(Add |y=0 to example, make x and z optional)
 
(2 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" style="background:green;"| {{{name}}}
 
!colspan="10" style="background:green;"| {{{name}}}
Line 8: Line 9:
 
|- {{#if: {{{maplocation|}}} | | style="display: none;" }}
 
|- {{#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;" }}
 
|- {{#if: {{{state|}}} | | style="display: none;" }}
Line 31: Line 36:
 
{{Place
 
{{Place
 
|name=New Town
 
|name=New Town
|maplocation=0/-1799.5/399/10
+
|x=-1799
 +
|y=0
 +
|z=399
 +
|zoom=10
 
|state={{Label|text=Open for public|color=green}}
 
|state={{Label|text=Open for public|color=green}}
 
|preview=Screenshot 20181106 203026.png
 
|preview=Screenshot 20181106 203026.png
Line 43: Line 51:
 
{{Place
 
{{Place
 
|name=New Town
 
|name=New Town
|maplocation=0/-1799.5/399/10
+
|x=-1799
 +
|y=0
 +
|z=399
 +
|zoom=10
 
|state={{Label|text=Open for public|color=green}}
 
|state={{Label|text=Open for public|color=green}}
 
|preview=Screenshot 20181106 203026.png
 
|preview=Screenshot 20181106 203026.png

Latest revision as of 20:53, 16 January 2021



New Town
Screenshot 20181106 203026.png
Map {{{maplocation}}}
Map X: -1799 Y: 0 Z: 399
State Open for public
Owner BuckarooBanzai
Founder somedude
Build date {{{builddate}}}



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
}}