Template:Map spawn

From OpenSpell Wiki
Revision as of 09:04, 28 February 2026 by Valsekamerplant (talk | contribs) (Created page with "<noinclude> == Usage == Renders a "View on map" button that opens a popup map showing NPC spawn locations. The map loads lazily — only when the user clicks the button. <pre> {{Map spawn|label=Knight|cx=-286|cy=-1|level=1|markers=-286,-1,4;112,-182,5}} </pre> === Parameters === {| class="wikitable" ! Parameter !! Description |- | <code>label</code> || NPC/entity name shown in the map header |- | <code>cx</code> || Center X coordinate (game coords) |- | <code>cy</code>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Usage

Renders a "View on map" button that opens a popup map showing NPC spawn locations. The map loads lazily — only when the user clicks the button.

{{Map spawn|label=Knight|cx=-286|cy=-1|level=1|markers=-286,-1,4;112,-182,5}}

Parameters

Parameter Description
label NPC/entity name shown in the map header
cx Center X coordinate (game coords)
cy Center Y coordinate (game coords)
level Map level: 0=underground, 1=overworld (default: 1)
markers Semicolon-separated spawn points: x,y or x,y,wanderRadius

Requires the MediaWiki:MapEmbed extension and MediaWiki:MapModal.js to be installed.