Template:AreaSection: Difference between revisions

From IdleOn MMO Wiki
mNo edit summary
mNo edit summary
Line 37: Line 37:
     -->|<!-- if the area is not on the map, draw nothing
     -->|<!-- if the area is not on the map, draw nothing
   -->}}<!--
   -->}}<!--
   --><h3 style="display: inline;">{{{ID}}} - {{{Area}}}</h3><!--
   --><h3 style="display: inline;"><!--
    -->{{#if:{{{Link|}}}<!-- if link given, draw link
        -->|{{{ID}}} - [[{{{Link}}}|{{{Area}}}]]<!--
        -->|{{{ID}}} - {{{Area}}}<!--
    -->}}<!--
  --></h3><!--
--></div>
--></div>
{|class="wikitable mw-collapsible worldtable"
{|class="wikitable mw-collapsible worldtable"
Line 51: Line 56:
|ID=<the ID displayed on map>
|ID=<the ID displayed on map>
|Area=<Area(map)>
|Area=<Area(map)>
|Link=<Link to the page of the area>
|World=<World(Integer)>
|World=<World(Integer)>
|WorldImage=<WorldImage.png> (If you want to draw a marker on the map)
|WorldImage=<WorldImage.png> (If you want to draw a marker on the map)

Revision as of 16:45, 29 August 2024

This template defines the table "AreaData". View table. Usage:

{{AreaSection
|ID=<the ID displayed on map>
|Area=<Area(map)>
|Link=<Link to the page of the area>
|World=<World(Integer)>
|WorldImage=<WorldImage.png> (If you want to draw a marker on the map)
|x=<x coordinate of the marker> (If you want to draw a marker on the map)
|y=<y coordinate of the marker> (If you want to draw a marker on the map)
|Size=<Diameter of the marker circle> (Default value 25)
|color_text=<Color of the text and border of the marker on map> (Default value depends on map)
|color_fill=<Color of the fill of the marker on map> (Default value depends on map)
}}