Difference between revisions of "Template:Location map/Info/doc"
Jump to navigation
Jump to search
The
imported>Zyxw (update intro, change "sup-page" to "sub-page, change "United states" to "United States", add See also links) |
imported>Jonesey95 (Fix Linter errors) |
||
Line 18: | 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 | + | : Chicago is located in <u>the</u> United States. 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}}. | ||
Latest revision as of 22:16, 16 March 2019
![]() | This is a documentation subpage for Template:Location map/Info. It contains usage information, categories and other content that is not part of the original template page. |
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
- Module:Location map/info, used for location map data modules such as "Module:Location map/data/Belgium"
- {{Location map}} and Module:Location map