Template:Map

From eRepublik Official Wiki
Jump to: navigation, search
edit

Complex.png Complex template

The code of this template is really complex, please use your sandbox before editing this template


Copy and Paste

For simplicity's sake, and the ability to preview your map without having to save any external pages first, the base map code is mainly copy and paste.

Code

<div>
<div style="position: absolute;">
POINTS GO HERE
</div>
MAP LINK GOES HERE
</div>

Example

<div>
<div style="position: absolute;">
{{MapCustomTextPoint|300|150|200|Polar Bears!|css=background: blue; width: 200px; border-radius: 5px;|}}
{{Map/Point|220|190||Alaska|AK|owner}}
{{Map/TextPoint|660|600|140|{{SmFlag|Canada}} Maple Syrup}}
</div>
[[File:1024px-BlankMap-USA-states-Canada-provinces,_HI_closer.svg.png]]
</div>

Points

There are four point templates you may use.

Point Usage

{{Map/Point|1|2|3|4|5|6|flag=|css=|}}
  1. Pixels from left
  2. Pixels from top
  3. Font size (as a percentage of default font size) -- May be left blank (default is 90%)
  4. Region name
  5. Region abbreviation -- If none specified, then full region name will be used
  6. Region's current owner -- Displays a small flag of region's current owner (Type in "owner" to activate.)
  • flag=Region flag link -- Displays region's flag or coat of arms
  • css=Custom CSS styling here

CustomPoint Usage

{{Map/CustomPoint|1|2|3|4|5|6|flag=|css=|}}
  1. Pixels from left
  2. Pixels from top
  3. Font size (as a percentage of default font size) -- May be left blank (default is 90%)
  4. Region name
  5. Region abbreviation -- If none specified, then full region name will be used
  6. Region's current owner -- Displays a small flag of region's current owner (Type in "owner" to activate.)
  • flag=Region flag link -- Displays region's flag or coat of arms
  • css=Custom CSS styling here

TextPoint Usage

{{Map/TextPoint|1|2|3|4}}
  1. Pixels from left
  2. Pixels from top
  3. Font size (as a percentage of default font size) -- May be left blank (default is 90%)
  4. Text

CustomTextPoint Usage

{{Map/CustomTextPoint|1|2|3|4|css=|}}
  1. Pixels from left
  2. Pixels from top
  3. Font size (as a percentage of default font size) -- May be left blank (default is 90%)
  4. Text
  • css=Custom CSS styling here