Difference between revisions of "Template:Location map/Info/doc"

From blackwiki
Jump to navigation Jump to search
imported>Funandtrvl
(fix code)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
This template displays values for the map templates such as {{tl|Location map Spain}}. These templates are used by {{tl|Location map}} to obtain values such as the file name and the border coordinates of each location map.
+
This template displays values for the map templates such as {{tl|Location map United Kingdom}}. These templates are used by {{tl|Location map}} to obtain values such as the file name and the border coordinates of each location map.
  
=== Usage ===
+
== Usage ==
 
;On a template page
 
;On a template page
 
<pre>
 
<pre>
Line 13: Line 13:
 
</pre>
 
</pre>
  
====The <code>name</code> parameter====
+
===The <code>name</code> parameter===
  
 
The {{tl|Location map}} family of templates uses the value assigned to <code>name</code> to generate [[wp:alt|alt text]]. It is used to construct the sentence "<code>label</code> is located in <code>name</code>". Assign a value to <code><name></code> that fits in the sentence. For example:
 
The {{tl|Location map}} family of templates uses the value assigned to <code>name</code> to generate [[wp:alt|alt text]]. It is used to construct the sentence "<code>label</code> is located in <code>name</code>". Assign a value to <code><name></code> that fits in the sentence. For example:
Line 20: Line 20:
 
:  Santo Domingo is located in <u>the</u> Dominican Republic. So {{para|name|the Dominican Republic}}.
 
:  Santo Domingo is located in <u>the</u> Dominican Republic. So {{para|name|the Dominican Republic}}.
  
=== See also ===
+
== See also ==
 
* {{tl|Location map}}
 
* {{tl|Location map}}
<includeonly>
+
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<includeonly>{{sandbox other||
 +
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Template namespace templates]]
 
[[Category:Template namespace templates]]
 
+
}}</includeonly>
</includeonly>
 

Revision as of 22:38, 12 July 2016

This template displays values for the map templates such as {{Location map United Kingdom}}. These templates are used by {{Location map}} to obtain values such as the file name and the border coordinates of each location map.

Usage

On a template page
<noinclude>{{Location map/Info}}</noinclude>
On a documentation sup-page
{{Location map/Info}}

The name parameter

The {{Location map}} family of templates uses the value assigned to name to generate alt text. It is used to construct the sentence "label is located in name". Assign a value to <name> that fits in the sentence. For example:

Chicago is located in the United States. So |name=the United states.
Santo Domingo is located in the Dominican Republic. So |name=the Dominican Republic.

See also