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

From blackwiki
Jump to navigation Jump to search
imported>Droll
(test)
imported>Droll
(another idea)
Line 1: Line 1:
<includeonly><div id="contentSub"><span class="subpages">< [[Template:Location map]]</span></div><!--
+
<includeonly>{{#ifeq:{{SUBPAGENAME}}|doc||<div id="contentSub"><span class="subpages">< [[Template:Location map]]</span></div>}}<!--
 
   Automatically add {{pp-template}} to protected templates.
 
   Automatically add {{pp-template}} to protected templates.
 
-->{{template other
 
-->{{template other
Line 10: Line 10:
 
   }}
 
   }}
 
}}
 
}}
{| class="wikitable" style="text-align:center; margin-top:0; {{#ifeq:{{SUBPAGENAME}}|doc|clear: right; float: right; font-size: 90%; margin: 0.5em 0 0.5em 1em;"}}
+
{| class="wikitable" style="text-align:center; margin-top:0;"
 
|+ Location map of {{{{BASEPAGENAME}}|name}}
 
|+ Location map of {{{{BASEPAGENAME}}|name}}
 
|-
 
|-
Line 79: Line 79:
 
}}
 
}}
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>
 +
<!--categories and interwikis should be placed in /doc, not here-->
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 05:32, 17 August 2011

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

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