வார்ப்புரு:Infobox map/doc
{{Documentation subpage}}
 &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt;
 {{ombox
 | type = content
 | text = This template will generate an error message and garbage if it is transcluded with {{param|map}} undefined. This reduces [[m:Help:Expansion_depth|expansion depth]] which is critical in many infoboxes that transclude this template.
 }}
 {{ombox
 | type = notice
 | text = The parameters {{param|label_x}} and {{param|label_y}} are deprecated. They will remain functional for a time.
 }}
 
 This [[Help:Templates/Helper templates|helper template]] provides a way to display a map in an [[Wikipedia:WikiProject Infoboxes|Infobox]]. Optionally a location marker can be included.
 
 ==Usage==
 ===Parameter descriptions===
 {| class=&quot;wikitable&quot; style=&quot;width: 97%;&quot;
 ! style=&quot;width: 14%&quot; | Field name || Description
 |-
 |&lt;code&gt;map&lt;/code&gt; || The name of the map to be displayed. This is the only required parameter.
 |-
 |&lt;code&gt;map_width&lt;/code&gt; || The width of the map image to be displayed. For example &lt;code&gt;map_width=220&lt;/code&gt; and not &lt;code&gt;map_width=220px&lt;/code&gt;.
 |-
 |&lt;code&gt;default_width&lt;/code&gt; || When this template is used in another template, e.g. an infobox, the default width of the map image preferred by the infobox should be specified here. For example &lt;code&gt;map_width=220&lt;/code&gt;. When used with location maps, this value may be modified by a certain value if specified in the location map template. The default value is 220px.
 |-
 |&lt;code&gt;relief&lt;/code&gt; || Selects a relief map when assigned any value. This only works when the geographical coordinates method is used and then only for a few maps. See [[#Map display methods|Map display methods]].
 |-
 |&lt;code&gt;map_alt&lt;/code&gt; || Alt text for the map. A visually impaired reader who uses a [[screen reader]] will have access to this text. See [[WP:ALT]].
 |-
 |&lt;code&gt;map_caption&lt;/code&gt; || The caption that appears below the map if one is required.
 |-
 |&lt;code&gt;mark&lt;/code&gt; || The image file that will be used to mark the location on the map. The default is [[:file:Red pog.svg|Red pog.svg]]. See [[#Marks|below]].
 |-
 |&lt;code&gt;mark_width&lt;/code&gt; || The width of the marker image to be displayed. For example &lt;code&gt;mark_width=8&lt;/code&gt; and not &lt;code&gt;mark_width=8px&lt;/code&gt;. The default width is 8px.
 |-
 |&lt;code&gt;label&lt;/code&gt; || A text message that will be displayed next to the marker.
 |-
 |&lt;code&gt;label_position&lt;/code&gt; || The position of a label with respect to the marker. Valid values are &lt;code&gt;left&lt;/code&gt;, &lt;code&gt;right&lt;/code&gt;, &lt;code&gt;top&lt;/code&gt;, &lt;code&gt;bottom&lt;/code&gt; and &lt;code&gt;none&lt;/code&gt;.
 |-
 |-&lt;code&gt;background&lt;/code&gt; || The background color for the label. If no value is assigned the background will be transparent. See [[Web colors]].
 |-
 |&lt;code&gt;lat&lt;/code&gt;&lt;br/&gt;&lt;code&gt;long&lt;/code&gt; || Specifies the latitude and longitude of the location when the geographical coordinates method is used. This value must be specified as a [[Decimal degrees|signed decimal degree]]. See [[#Geographical coordinates|below]].
 |-
 |&lt;code&gt;x&lt;/code&gt;&lt;br/&gt;&lt;code&gt;y&lt;/code&gt; || Specifies the position of the location marker. The coordinates of the marker in [[pixel]]s based on a map width of 1000 pixels. The template will scale these values for proper display. See [[#Display a marker on any map image using the x and y parameters|below]].
 |-
 |&lt;code&gt;x%&lt;/code&gt;&lt;br/&gt;&lt;code&gt;y%&lt;/code&gt; || Specifies the position of the location marker. &lt;code&gt;x%&lt;/code&gt; specifies the percentage of the distance across the image from the left edge and &lt;code&gt;y%&lt;/code&gt; specifies the percentage of the distance down from the top edge. See [[#Display a marker on any map image using the x% and y% parameters|below]].
 |}
 
 == Map display methods ==
 There are three methods which can display a mark to on a map. These examples use {{tl|Infobox park}} which uses this template as a back end.
 {{Infobox map/Map display methods}}
 
 ===Display any image===
 Another option allows the display of any image without a location mark.
 
 {{Infobox
 | above  = Average regional brazil nut output (kg/ha)
 | image2 = {{Infobox map
            | map         = Braziloutput.png
            | map_alt     = A world map showing regions that produce Brazil nuts.
            | map_caption =
            | map_width   = 200
            }}
 }}
 
 &lt;pre style=&quot;overflow:auto; font-size: 90%;&quot;&gt;
 {{Infobox
 | above =
 | image2 = {{Infobox map
            | map         = Braziloutput.png
            | map_alt     = A world map showing regions that produce Brazil nuts.
            | map_caption =
            | map_width   = 200
            }}
 }}&lt;/pre&gt;
 
 {{Infobox map/marks}}
 
 ==Geographical coordinates==
 The template {{tl|decdeg}} can be used to allow additional parameters for the entry of geographical coordinates. The template can be used with or without named parameters. If the unnamed option is used all parameters must be supplied but they can be void. The following markup can be used to allow the template user to enter coordinates. These parameters names are recommended by [[Wikipedia:WikiProject Geographical coordinates#Creating new templates|WikiProject Geographical coordinates]].
 
 &lt;pre style=&quot;overflow:auto; font-size: 90%; width: 50em;&quot;&gt;
 | lat  = {{decdeg|{{{lat_d|}}}|{{{lat_m|}}}|{{{lat_s|}}}|{{{lat_NS|}}} }}
 | long = {{decdeg|{{{long_d|}}}|{{{long_m|}}}|{{{long_s|}}}|{{{long_EW|}}} }}&lt;/pre&gt;
 
 To display coordinates in the Infobox two methods can be used. The template {{tl|Infobox coord}} can be used to display coordinates entered using the method discussed above. If the X,Y method is used to display a marker then the template {{tl|coord}} can be used. For examples of coordinate entry see [[Template:Infobox map/coordinate examples|coordinate examples]].
 
 == See also ==
 * {{tl|Location map}}
 * {{tl|Superimpose}}
 
 &lt;includeonly&gt;
 &lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&gt;
 [[Category:Geography infobox subtemplates]]