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

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Zyxw
(update intro, change "sup-page" to "sub-page, change "United states" to "United States", add See also links)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- 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 {{tld|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.
+
 
 +
'''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays values stored in location map data [[Help:Template|templates]] with names such as {{nowrap|"Template:Location map Belgium"}}. These templates are used by {{tl|Location&nbsp;map}} to obtain values such as the file name and the border coordinates of each location map.
  
 
== Usage ==
 
== Usage ==
Line 8: Line 9:
 
<noinclude>{{Location map/Info}}</noinclude>
 
<noinclude>{{Location map/Info}}</noinclude>
 
</pre>
 
</pre>
;On a documentation sup-page
+
;On a documentation sub-page
 
<pre>
 
<pre>
 
{{Location map/Info}}
 
{{Location map/Info}}
Line 17: Line 18:
 
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:
  
:  Chicago is located in <u>the</u> United States</u>. So {{para|name|the United states}}.
+
:  Chicago is located in <u>the</u> United States</u>. So {{para|name|the United States}}.
 
:  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}}
+
* [[Module:Location map/info]], used for location map data [[Help:Module|modules]] such as "Module:Location map/data/Belgium"
 +
* {{tl|Location map}} and [[Module:Location map]]
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||

Revision as of 02:52, 5 August 2018

Template:Location map/Info displays values stored in location map data templates with names such as "Template:Location map Belgium". 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 sub-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