Jump to content

Template:MiniMap/doc

From Worldwide Dead Wiki
This is a documentation subpage for Template:MiniMap.
It contains usage information, categories, and other content that is not part of the original template page.

Usage

{{MiniMap
 |size=
 |all=
 |x[1..10]=
 |y[1..10]=
 |x[1..10]y[1..10]=
}}

The minimap will be rendered with a width and height equals to the size attribute.

The all parameter assigns a css style to all cells on the map.

The x1, x2, .., x10 parameters assign a css style to an entire column.

The y1, y2, .., y10 parameters assign a css style to an entire row.

The x1y1, x1y2, .., x10y10 parameters will assign a css style to that particular cell on the map.

The all, x[1..10], y[1..10], and x[1..10]y[1..10] attributes will modify the css style for each cell (in that order).

Example

{{MiniMap
 |size=100px
 |all=background-color: yellow;
 |x1y1=background-color: red;
 |x1=background-color: green;
 |y1=background-color: blue;
}}

You can also use the MiniMaps Colors template to define the colors.

{{MiniMap
 |size=82px
 |all={{MiniMap/Colors|street}}
 |x1y1={{MiniMap/Colors|hospital}}
 |x1y2={{MiniMap/Colors|police}}
 |x1y3={{MiniMap/Colors|factory}}
 |x1y4={{MiniMap/Colors|autorepair}}
 |x1y5={{MiniMap/Colors|necrotech}}
 |x1y6={{MiniMap/Colors|firefighter}}
 |x1y7={{MiniMap/Colors|building}}
 |x1y8={{MiniMap/Colors|mall}}
 |x1y9={{MiniMap/Colors|fort}}
 |x1y10={{MiniMap/Colors|powerStation}}
}}