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

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
(fix)
imported>Ucucha
(change image placement per talk)
Line 12: Line 12:
 
{| class="wikitable" style="text-align:center;"
 
{| class="wikitable" style="text-align:center;"
 
|+ Location map of {{{{PAGENAME}}|name}}
 
|+ Location map of {{{{PAGENAME}}|name}}
|-
 
|colspan="4"|[[image:{{{{PAGENAME}}|image}}|400x400px|{{PAGENAME}}]]
 
 
|-
 
|-
 
! name
 
! name
Line 43: Line 41:
 
! image
 
! image
 
|colspan="3"| <tt>[[:Image:{{{{PAGENAME}}|image}}|{{{{PAGENAME}}|image}}]]</tt>
 
|colspan="3"| <tt>[[:Image:{{{{PAGENAME}}|image}}|{{{{PAGENAME}}|image}}]]</tt>
 +
|-
 +
|colspan="4"|[[image:{{{{PAGENAME}}|image}}|400x400px|{{PAGENAME}}]]
 
|-
 
|-
 
{{#if:{{{{PAGENAME}}|image1}}|
 
{{#if:{{{{PAGENAME}}|image1}}|
Line 54: Line 54:
 
! image2
 
! image2
 
{{!}}colspan="3"{{!}} <tt>[[:Image:{{{{PAGENAME}}|image2}}|{{{{PAGENAME}}|image2}}]]</tt>
 
{{!}}colspan="3"{{!}} <tt>[[:Image:{{{{PAGENAME}}|image2}}|{{{{PAGENAME}}|image2}}]]</tt>
 +
{{!}}-
 +
{{!}}colspan="4"{{!}}[[image:{{{{PAGENAME}}|image2}}|400x400px|{{PAGENAME}}]]
 
{{!}}-
 
{{!}}-
 
}}
 
}}

Revision as of 23:13, 4 August 2011

Template:Location map

50px 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