Difference between revisions of "Template:Place"

From Pandorabox
Jump to navigation Jump to search
(Add |y=0 to example, make x and z optional)
 
(9 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;" }}
 
|- {{#if: {{{owner|}}} | | style="display: none;" }}
Line 17: Line 26:
 
|Founder
 
|Founder
 
|[[User:{{{founder}}}|{{{founder}}}]]
 
|[[User:{{{founder}}}|{{{founder}}}]]
 +
 +
|- {{#if: {{{builddate|}}} | | style="display: none;" }}
 +
|Build date
 +
|{{{builddate}}}
 
|}
 
|}
 
</includeonly>
 
</includeonly>
Line 23: 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}}
 
|preview=Screenshot 20181106 203026.png
 
|preview=Screenshot 20181106 203026.png
 
|owner=BuckarooBanzai
 
|owner=BuckarooBanzai
 
|founder=somedude
 
|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
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
}}