Template:Location map: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{| style="float: left; margin: 0 1em 0 0;" class="wikitable" | {{map | width = {{{width}}} | height = {{{height}}} | image = {{{image}}} | bg = {{{bg|}}} | icons...") |
(Moving the caption to the same cell.) |
||
Line 2: | Line 2: | ||
| | | | ||
{{map | width = {{{width}}} | height = {{{height}}} | image = {{{image}}} | bg = {{{bg|}}} | icons = {{{icons|}}} }} | {{map | width = {{{width}}} | height = {{{height}}} | image = {{{image}}} | bg = {{{bg|}}} | icons = {{{icons|}}} }} | ||
<span style="text-align: center; font-size: 90%">{{{caption}}}</span> | |||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
Line 43: | Line 42: | ||
! Code || Result | ! Code || Result | ||
|- | |- | ||
| <pre>{{ location map | width = 368 | height = 232 | image = AW map cropped.jpg | icons = | | <pre>{{ location map | width = 368 | height = 232 | image = AW map cropped.jpg | caption = Location of the landing site. | icons = | ||
{{map icon | Hocotate ship | 132 | 181}} | {{map icon | Hocotate ship | 132 | 181}} | ||
}}</pre> | }}</pre> | ||
| <div style="margin-bottom: 1em;">{{ location map | width = 368 | height = 232 | image = AW map cropped.jpg | icons = | | <div style="margin-bottom: 1em;">{{ location map | width = 368 | height = 232 | image = AW map cropped.jpg | caption = Location of the landing site. | icons = | ||
{{map icon | Hocotate ship | 132 | 181}} | {{map icon | Hocotate ship | 132 | 181}} | ||
}}</div> | }}</div> |
Revision as of 14:22, August 6, 2021
Info
This template creates a map, particularly one that shows the location of some item. It makes use of {{map}}, but wraps it around a nice table.
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. | |
caption | Yes | Caption to write below the image. | |
icons | No | A collection of icons to place on the image. Use {{map icon}} for this. | |
bg | No | Background color to use. |
Skeleton
{{location map | width = <width> | height = <height> | image = <image> | bg = <background color> | caption = <caption> | icons = {{map icon | <icon> | <x> | <y> | <size> | <custom?>}} }}
Examples
Code | Result | |
---|---|---|
{{ location map | width = 368 | height = 232 | image = AW map cropped.jpg | caption = Location of the landing site. | icons = {{map icon | Hocotate ship | 132 | 181}} }} |
|