Difference between revisions of "Template:Map Embed"

From Zezenia Online Wiki
(Add disable built-ins example)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly><div
<div
 
 
     class="zezenia-map-embed"
 
     class="zezenia-map-embed"
 
     data-x="{{{X|}}}"
 
     data-x="{{{X|}}}"
Line 8: Line 7:
 
     data-width="{{{Width|}}}"
 
     data-width="{{{Width|}}}"
 
     data-height="{{{Height|}}}"
 
     data-height="{{{Height|}}}"
>
+
    data-center="{{{Center|}}}"
</div>
+
    data-markers="{{{Markers|}}}"
</includeonly>
+
    data-nobuiltins="{{{NoBuiltins|}}}"
<noinclude>
+
></div></includeonly><noinclude>
 
This template is used to embed the Zezenia Map on pages.
 
This template is used to embed the Zezenia Map on pages.
  
 
== Examples ==
 
== Examples ==
 
{{Map Embed|X=123|Y=123|Z=7|Zoom=1}}
 
<code><nowiki>{{Map Embed|X=123|Y=123|Z=7|Zoom=4}}</nowiki></code>
 
  
 
{{Map Embed|Center=Arne|Zoom=4|Width=320|Height=240}}
 
{{Map Embed|Center=Arne|Zoom=4|Width=320|Height=240}}
 
<code><nowiki>{{Map Embed|Center=Arne|Zoom=4|Width=320|Height=240}}
 
<code><nowiki>{{Map Embed|Center=Arne|Zoom=4|Width=320|Height=240}}
 
</nowiki></code>
 
</nowiki></code>
 +
 +
{{Map Embed|X=540|Y=3120|Zoom=0}}
 +
<code><nowiki>{{Map Embed|X=540|Y=3120|Zoom=0}}</nowiki></code>
 +
 +
=== Custom markers ===
 +
 +
{{Map Embed
 +
|X=130
 +
|Y=130
 +
|Zoom=2
 +
|Width=320
 +
|Height=240
 +
|Markers=120,120,7,Top left
 +
{{!}}120,140,7,Bottom left
 +
{{!}}140,120,7,Top right
 +
{{!}}140,140,7,Bottom right
 +
}}
 +
 +
<pre>
 +
<nowiki>
 +
{{Map Embed
 +
|X=130
 +
|Y=130
 +
|Zoom=2
 +
|Width=320
 +
|Height=240
 +
|Markers=120,120,7,Top left
 +
{{!}}120,140,7,Bottom left
 +
{{!}}140,120,7,Top right
 +
{{!}}140,140,7,Bottom right
 +
}}
 +
</nowiki>
 +
</pre>
 +
 +
=== Disable built-in markers ===
 +
 +
{{Map Embed
 +
|X=1130
 +
|Y=1300
 +
|Zoom=1
 +
|NoBuiltins=X
 +
}}
 +
<pre>
 +
<nowiki>
 +
{{Map Embed
 +
|X=1130
 +
|Y=1300
 +
|Zoom=1
 +
|NoBuiltins=X
 +
}}
 +
</nowiki>
 +
</pre>
  
 
</noinclude>
 
</noinclude>

Latest revision as of 02:55, 28 March 2021

This template is used to embed the Zezenia Map on pages.

Examples

{{Map Embed|Center=Arne|Zoom=4|Width=320|Height=240}}

{{Map Embed|X=540|Y=3120|Zoom=0}}

Custom markers


{{Map Embed
|X=130
|Y=130
|Zoom=2
|Width=320
|Height=240
|Markers=120,120,7,Top left
{{!}}120,140,7,Bottom left
{{!}}140,120,7,Top right
{{!}}140,140,7,Bottom right
}}

Disable built-in markers


{{Map Embed
|X=1130
|Y=1300
|Zoom=1
|NoBuiltins=X
}}