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

From blackwiki
Jump to navigation Jump to search
imported>Jackmcbarn
(categorize maps with skew and other such params)
imported>Izno
(use code rather than tt)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div id="contentSub"><span class="subpages">< [[Template:Location map]]</span></div><!--
+
<includeonly>{{#ifexist:Template:{{BASEPAGENAME}}|{{#if:{{{{BASEPAGENAME}}|skew}}{{{{BASEPAGENAME}}|lat_skew}}{{{{BASEPAGENAME}}|crosses180}}|[[Category:Location maps using skew|~]]}}|{{error|Error: [[Template:{{BASEPAGENAME}}]] doesn't exist}}}}<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 14: Line 14:
 
|-
 
|-
 
! name
 
! name
|colspan="3"| [[{{{{BASEPAGENAME}}|name}}]]
+
|colspan="3"| {{{{BASEPAGENAME}}|name}}
 
|-
 
|-
 
{{#if:{{{{BASEPAGENAME}}|top}}|
 
{{#if:{{{{BASEPAGENAME}}|top}}|
Line 43: Line 43:
 
}}
 
}}
 
! image
 
! image
|colspan="3"| <tt>[[:Image:{{{{BASEPAGENAME}}|image}}|{{{{BASEPAGENAME}}|image}}]]</tt>
+
|colspan="3"| <code>[[:Image:{{{{BASEPAGENAME}}|image}}|{{{{BASEPAGENAME}}|image}}]]</code>
 
|-
 
|-
 
|colspan="4"|[[image:{{{{BASEPAGENAME}}|image}}|400x400px|{{BASEPAGENAME}}]]
 
|colspan="4"|[[image:{{{{BASEPAGENAME}}|image}}|400x400px|{{BASEPAGENAME}}]]
Line 49: Line 49:
 
{{#if:{{{{BASEPAGENAME}}|image1}}|
 
{{#if:{{{{BASEPAGENAME}}|image1}}|
 
! image1
 
! image1
{{!}}colspan="3"{{!}} <tt>[[:Image:{{{{BASEPAGENAME}}|image1}}|{{{{BASEPAGENAME}}|image1}}]]</tt>
+
{{!}}colspan="3"{{!}} <code>[[:Image:{{{{BASEPAGENAME}}|image1}}|{{{{BASEPAGENAME}}|image1}}]]</code>
 
{{!}}-
 
{{!}}-
 
{{!}}colspan="4"{{!}}[[image:{{{{BASEPAGENAME}}|image1}}|400x400px|{{BASEPAGENAME}}]]
 
{{!}}colspan="4"{{!}}[[image:{{{{BASEPAGENAME}}|image1}}|400x400px|{{BASEPAGENAME}}]]
Line 56: Line 56:
 
{{#if:{{{{BASEPAGENAME}}|image2}}|
 
{{#if:{{{{BASEPAGENAME}}|image2}}|
 
! image2
 
! image2
{{!}}colspan="3"{{!}} <tt>[[:Image:{{{{BASEPAGENAME}}|image2}}|{{{{BASEPAGENAME}}|image2}}]]</tt>
+
{{!}}colspan="3"{{!}} <code>[[:Image:{{{{BASEPAGENAME}}|image2}}|{{{{BASEPAGENAME}}|image2}}]]</code>
 
{{!}}-
 
{{!}}-
 
{{!}}colspan="4"{{!}}[[image:{{{{BASEPAGENAME}}|image2}}|400x400px|{{BASEPAGENAME}}]]
 
{{!}}colspan="4"{{!}}[[image:{{{{BASEPAGENAME}}|image2}}|400x400px|{{BASEPAGENAME}}]]
Line 73: Line 73:
 
{{#if: {{{{BASEPAGENAME}}|mark}} |
 
{{#if: {{{{BASEPAGENAME}}|mark}} |
 
! mark
 
! mark
{{!}}colspan="3"{{!}} <tt>[[:File:{{{{BASEPAGENAME}}|mark}}|{{{{BASEPAGENAME}}|mark}}]]</tt>
+
{{!}}colspan="3"{{!}} <code>[[:File:{{{{BASEPAGENAME}}|mark}}|{{{{BASEPAGENAME}}|mark}}]]</code>
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 81: Line 81:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
|}{{#if:{{{{BASEPAGENAME}}|skew}}{{{{BASEPAGENAME}}|lat_skew}}{{{{BASEPAGENAME}}|crosses180}}|[[Category:Location maps using skew|~]]}}</includeonly><noinclude>
+
|}</includeonly><noinclude>
 
<!--categories and interwikis should be placed in /doc, not here-->
 
<!--categories and interwikis should be placed in /doc, not here-->
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 13:33, 12 December 2017

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