Difference between revisions of "Template: Location map"

From A Wiki of Ice and Fire
Jump to: navigation, search
 
(38 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
+
<includeonly>{{location map+
The purpose of this template is welcome new users to A Wiki of Ice and Fire.
+
| {{{1|World}}}
</noinclude>
+
| border = {{{border|}}}
 
+
| alt = {{{alt|}}}
== Welcome! ==
+
| caption_undefined = {{#ifeq: {{{caption|+}}} | {{{caption|-}}} || defined }}
 
+
| caption = {{{caption|}}}
<div style="align: center; padding: 1em; border: solid 2px yellow; background-color: darkblue;">
+
| label = {{{label|}}}
<center ><font size="+1" color="yellow">'''Hello, {{PAGENAME}}, <font color="lightblue">[[w:Wikipedia:Welcome, newcomers|Welcome]]</font> to A Wiki of Ice and Fire!</font ></center ></div >
+
| float = {{{float|}}}
<div style="align: center; padding: 1em; border: solid 2px black; background-color: white;">
+
| width = {{{width|}}}
<center >'''I hope you enjoy your stay on this Wiki and keep contributing. </center>
+
| relief= {{{relief|}}}
<br>
+
| AlternativeMap = {{{AlternativeMap|}}}
----
+
| overlay_image = {{{overlay_image|}}}
::Below some tips some may find usefull
+
| places = {{Location map~
::*On the [[A_Wiki_of_Ice_and_Fire:Community_Portal|Community page]] there is more information for how you can contribute
+
  | {{{1|World}}}
::*The [[Main_Page|Main Page]] contains information about this Wiki. It is a good entrence to explore this wiki.
+
  | label = {{{label|}}}
::*If you want to try some edit you can use the [[Sandbox]]
+
  | label_size = {{{label_size|}}}
::*We encourage you to be [[w:Be bold|be bold]] in your edits
+
  | label_width = {{{label_width|}}}
::*You can sign your comments with 4x ~. The result is your name and the time.
+
  | mark = {{#ifexist:media:{{{mark}}}|{{{mark}}}|Red pog.png}} <!-- I'd rather not user this, but its needed to work around some typos-->
::*If you have questions don't hesiate to leave a question on [[User_Talk:{{{User}}}|my talk page]] or the [[AWOIAF:Questions|Questions page]].
+
  | marksize = {{{marksize|}}}
----
+
  | alt = {{{alt|}}}
<center ><font size="+1">'''Happy editing!'''<br>
+
  | position = {{{position|}}}
Regards, <br> [[User:{{{MyUserName}}}]]
+
  | background = {{{background|}}}
</font ></center >
+
  | link = {{{link|}}}
</div >
+
  | lat_dir = {{{lat_dir|}}}
 +
  | lat_deg = {{{lat_deg|}}}
 +
  | lat_min = {{{lat_min|}}}
 +
  | lat_sec = {{{lat_sec|}}}
 +
  | lon_deg = {{{lon_deg|}}}
 +
  | lon_min = {{{lon_min|}}}
 +
  | lon_sec = {{{lon_sec|}}}
 +
  | lon_dir = {{{lon_dir|}}}
 +
  | lat = {{{lat|}}}
 +
  | long = {{{long|}}}
 +
  }}
 +
}}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 21:23, 19 October 2022

Template documentation[view] [edit] [history] [purge]

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

{{Location map| RegionName | long=XX |lat=YY }}
{{Location map| RegionName | long=XX |lat=YY | label= LocationName }}

Additional Options

Additional Map display parameters
Parameter Description
width Determines the width of the map in pixels. The default is 350. Do not include px, for example: width=300, not width=300px.
caption 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 caption is defined but is not assigned a value, the map will not be framed and no caption will be displayed. If caption is not defined, the map will not be framed and a default caption will be generated. The default caption is created from the label parameter (or the current page name if label not defined) and the name parameter from map definition template. See the examples below.
alt Alt text for map; shown on mouse hover.
position The position of the label relative to the mark. Valid values are left, right, top and bottom. The default is right.
mark The name of an image to display as the mark. The default is Red pog.png (Red pog.png). See examples at Category:Location markers.
link 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

{{Location map
| {{{1}}}
| width      = 
| caption    = 
| alt        = 
| label      = 
| label_size = 
| position   = 
| mark       = 
| marksize   = 
| link       = 
| lat_deg    = 
| lon_deg    = 
}}

References

This page uses content from the English Wikipedia. The original content was at Template:Location map. The list of authors can be seen in the page history of Template:Location map. As with A Wiki of Ice and Fire, the content of Wikipedia is available under the Creative Commons Attribution-ShareAlike License.