Template:Map spawn: Difference between revisions

From OpenSpell Wiki
Jump to navigationJump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
<noinclude>
== Usage ==
== Usage ==
Displays an interactive map embed showing NPC spawn locations.
Requires <code>$wgRawHtml = true</code> in LocalSettings.php.
Requires <code>$wgRawHtml = true</code> in LocalSettings.php.


Line 8: Line 6:
{{Map spawn|label=Knight|cx=-273|cy=-254|level=1|markers=-273,-254;112,-182}}
{{Map spawn|label=Knight|cx=-273|cy=-254|level=1|markers=-273,-254;112,-182}}
</pre>
</pre>
=== Parameters ===
{| class="wikitable"
! Parameter !! Description
|-
| <code>label</code> || NPC name shown in the map header
|-
| <code>cx</code> || Center X coordinate on load
|-
| <code>cy</code> || Center Y coordinate on load
|-
| <code>level</code> || Map level: <code>1</code> = overworld (default)
|-
| <code>markers</code> || Semicolon-separated spawn points: <code>x,y;x,y</code>
|}
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>
<includeonly><html><iframe src="https://highspellmap.com/embed?label={{{label|}}}&cx={{{cx|0}}}&cy={{{cy|0}}}&level={{{level|1}}}&markers={{{markers|}}}" width="100%" height="400" style="border:1px solid #a2a9b1; border-radius:2px; display:block; margin:8px 0;" loading="lazy"></iframe></html></includeonly>
<includeonly>{{#tag:html|<iframe src="https://highspellmap.com/embed.html?label={{{label|}}}&cx={{{cx|0}}}&cy={{{cy|0}}}&level={{{level|1}}}&markers={{{markers|}}}" width="100%" height="350" style="border:1px solid #a2a9b1; border-radius:2px; display:block;" loading="lazy"></iframe>}}</includeonly>

Latest revision as of 14:05, 28 February 2026

Usage

[edit]

Requires $wgRawHtml = true in LocalSettings.php.

{{Map spawn|label=Knight|cx=-273|cy=-254|level=1|markers=-273,-254;112,-182}}