Abrir menu principal

Mudanças

 

2 569 bytes adicionados ,  15h00min de 22 de março de 2014
Criou página com '<noinclude>{{note|This is a documentation subpage for Template:Location map}}<hr></noinclude> This template generates a location map as a composite image consisting of a ...'
<noinclude>{{note|This is a documentation subpage for [[Template:Location map]]}}<hr></noinclude>

This template generates a location map as a composite image consisting of a map and a location mark. Optionally a label and caption can be added.
Note: The template was copied whole from [[Wikipedia:Template:Location map]], while we don't use all of its functionality, it was left intact to ease the process of future integration.

==Basic Usage==
Simple syntax versions
<pre>
{{Location map| RegionName | long=XX |lat=YY }}
{{Location map| RegionName | long=XX |lat=YY | label= LocationName }}
</pre>

==Additional Options==
{| class="wikitable" style="width:100%;"
! colspan="2" | Additional Map display parameters
|-
! Parameter
! Description
|-
| <code>width</code>
| Determines the width of the map in pixels. The default is 350. Do not include <code>px</code>, for example: <code>width=300</code>, not <code>width=300px</code>.
|-
| <code>caption</code>
| The text of a caption to be displayed below the map. Specifying a caption will cause the map to be displayed with a frame. If <code>caption</code> is defined but is not assigned a value, the map will not be framed and no caption will be displayed. If <code>caption</code> is not defined, the map will not be framed and a default caption will be generated. The default caption is created from the <code>label</code> parameter (or the current page name if label not defined) and the <code>name</code> parameter from map definition template. See the [[#Examples|examples]] below.
|-
| <code>alt</code>
| Alt text for map; shown on mouse hover.
|-
| <code>position</code>
| The position of the label relative to the mark. Valid values are <code>left</code>, <code>right</code>, <code>top</code> and <code>bottom</code>. The default is <code>right</code>''.
|-
| <code>mark</code>
| The name of an image to display as the mark. The default is [[:File:Red pog.png|Red pog.png]] ([[File:Red pog.png|8px]]). See examples at [[:Category:Location markers]].
|-
| <code>link</code>
| Specifies a wiki link which will be followed if the reader clicks on the mark. The name of the linked article is displayed when the mouse pointer hovers over the mark.
|}

==Empty template with all the options==
<pre>{{Location map
| {{{1}}}
| width =
| caption =
| alt =
| label =
| label_size =
| position =
| mark =
| marksize =
| link =
| lat_deg =
| lon_deg =
}}</pre>

==References==
{{EnWP|Template:Location map|small=yes}}
<noinclude>[[Category:Location map| ]]</noinclude>
Editores, Patrulheiros
4 519

edições