Template:Map: Difference between revisions
Jump to navigation
Jump to search
(This will get rid of the extra <p> element which is messing up the height) |
m (Better preview.) |
||
Line 41: | Line 41: | ||
{{map icon | Hocotate ship | 132 | 181}} | {{map icon | Hocotate ship | 132 | 181}} | ||
}}</pre> | }}</pre> | ||
| {{ map | width = 368 | height = 232 | image = AW map cropped.jpg | icons = | | <div style="margin-bottom: 1em;">{{ map | width = 368 | height = 232 | image = AW map cropped.jpg | icons = | ||
{{map icon | Hocotate ship | 132 | 181}} | {{map icon | Hocotate ship | 132 | 181}} | ||
}} | }}</div> | ||
|} | |} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 14:22, August 6, 2021
Info
This template places an image on the article and allows it to be overlaid with icons. As such, it's useful to make interactable maps of areas with items of interest pointed out.
Parameters
Parameter | Mandatory | Default | Detailed description |
---|---|---|---|
width | Yes | Width to display the image at. | |
height | Yes | Height to display the image at. | |
image | Yes | Name of the image file, with extension. | |
icons | No | A collection of icons to place on the image. Use {{map icon}} for this. | |
bg | No | Background color to use. |
Skeleton
{{map | width = <width> | height = <height> | image = <image> | bg = <background color> | icons = {{map icon | <icon> | <x> | <y> | <size> | <custom?>}} }}
Examples
Code | Result |
---|---|
{{ map | width = 368 | height = 232 | image = AW map cropped.jpg | icons = {{map icon | Hocotate ship | 132 | 181}} }} |