Difference between revisions of "Template:Map"
From eRepublik Official Wiki
m |
(No difference)
|
Latest revision as of 00:47, 15 June 2011
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=|}}
- Pixels from left
- Pixels from top
- Font size (as a percentage of default font size) -- May be left blank (default is 90%)
- Region name
- Region abbreviation -- If none specified, then full region name will be used
- 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=|}}
- Pixels from left
- Pixels from top
- Font size (as a percentage of default font size) -- May be left blank (default is 90%)
- Region name
- Region abbreviation -- If none specified, then full region name will be used
- 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}}
- Pixels from left
- Pixels from top
- Font size (as a percentage of default font size) -- May be left blank (default is 90%)
- Text
CustomTextPoint Usage
{{Map/CustomTextPoint|1|2|3|4|css=|}}
- Pixels from left
- Pixels from top
- Font size (as a percentage of default font size) -- May be left blank (default is 90%)
- Text
- css=Custom CSS styling here