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

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
(Remove crosses180 and add tracking to make sure this is indeed not in use ...)
imported>Plastikspork
(Add center correction)
Line 30: Line 30:
 
{{!}}-
 
{{!}}-
 
! map center
 
! map center
{{!}}colspan="4"{{!}} {{coord|{{#expr:({{{{PAGENAME}}|top}}+{{{{PAGENAME}}|bottom}})/2}}|{{#expr:({{{{PAGENAME}}|left}}+{{{{PAGENAME}}|right}})/2}}}}
+
{{!}}colspan="4"{{!}} {{coord|{{#expr:({{{{PAGENAME}}|top}}+{{{{PAGENAME}}|bottom}})/2}}|{{#expr:({{{{PAGENAME}}|left}}+{{{{PAGENAME}}|right}} {{#ifexpr:{{{{PAGENAME}}|right}}< {{{{PAGENAME}}|left}}| + 360}})/2}}}}|
 
{{!}}-
 
{{!}}-
 
}}
 
}}

Revision as of 19:18, 9 January 2011

Template:Location map

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

Template:Location map 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