Template:Map spawn: Difference between revisions
From OpenSpell Wiki
Jump to navigationJump to search
No edit summary |
|||
| Line 1: | Line 1: | ||
<noinclude> | |||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
Displays | Displays an interactive map embed showing NPC spawn locations. | ||
Requires <code>$wgRawHtml = true</code> in LocalSettings.php. | |||
<pre> | <pre> | ||
{{Map spawn|label=Knight|cx=-273|cy=-254|level=1|markers= | {{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> | <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> | |||
Revision as of 13:27, 28 February 2026
Usage
Displays an interactive map embed showing NPC spawn locations.
Requires $wgRawHtml = true in LocalSettings.php.
{{Map spawn|label=Knight|cx=-273|cy=-254|level=1|markers=-273,-254;112,-182}}
Parameters
| Parameter | Description |
|---|---|
label |
NPC name shown in the map header |
cx |
Center X coordinate on load |
cy |
Center Y coordinate on load |
level |
Map level: 1 = overworld (default)
|
markers |
Semicolon-separated spawn points: x,y;x,y
|