Template:Location map: Difference between revisions

no edit summary
(Created page with "<includeonly>{| style="float: left; margin: 0 1em 0 0;" class="wikitable" | {{map | width = {{{width}}} | height = {{{height}}} | image = {{{image}}} | bg = {{{bg|}}} | icons...")
 
No edit summary
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{| style="float: left; margin: 0 1em 0 0;" class="wikitable"
<includeonly><div class="locationMap thumb t{{{align|left}}}"><div class="thumbinner" style="width: {{{width}}}px;">
|
{{map | width = {{{width}}} | height = {{{height}}} | image = {{{image}}} | bg = {{{bg|}}} | icons = {{{icons|}}} }}
{{map | width = {{{width}}} | height = {{{height}}} | image = {{{image}}} | bg = {{{bg|}}} | icons = {{{icons|}}} }}
|-
<div class="thumbcaption"><div class="magnify">[[:File:{{{image}}}]]</div>{{{caption}}}</div>
| style="text-align: center; font-size: 90%" | {{{caption}}}
</div></div></includeonly><noinclude>
|}</includeonly><noinclude>


== Info ==
== Info ==
This template creates a map, particularly one that shows the location of some item. It makes use of {{tem|map}}, but wraps it around a nice table.
This template creates a map, particularly one that shows the location of some item. It makes use of {{tem|map}}, but wraps it in a thumbnail frame and highlights each icon with a circle by default.


==Parameters==
==Parameters==
Line 25: Line 23:
| '''Yes''' ||  || Caption to write below the image.
| '''Yes''' ||  || Caption to write below the image.
|-
|-
! icons
! align
| No || || A collection of icons to place on the image. Use {{tem|map icon}} for this.
| No || left || Page alignment for the thumbnail frame. Can be set to "right".
|-
|-
! bg
! bg
| No ||  || Background color to use.
| No ||  || Background color to use.
|-
! icons
| No ||  || A collection of icons to place on the image. Use {{tem|map icon}} for this.
|}
|}


==Skeleton==
==Skeleton==
<pre>
<pre>
{{location map | width = <width> | height = <height> | image = <image> | bg = <background color> | caption = <caption> | icons =
{{location map | width = <width> | height = <height> | image = <image> | caption = <caption> | align = <align?> | bg = <background color?> | icons =
{{map icon | <icon> | <x> | <y> | <size> | <custom?>}}
{{map icon | <icon> | <x> | <y> | <size> | bg = <background?> | custom = <custom?>}}
}}
}}
</pre>
</pre>
Line 43: Line 44:
! 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>