Difference between revisions of "Template:Location map/Info"
Jump to navigation
Jump to search
The
imported>Ucucha (change image placement per talk) |
imported>Plastikspork m (Tweak per comments left on my talk page by Droll. Revert if this causes a problem.) |
||
| Line 1: | Line 1: | ||
| − | < | + | <includeonly><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;" | + | {| class="wikitable" style="text-align:center; margin-top:0;" |
| − | |+ Location map of {{{{ | + | |+ Location map of {{{{BASEPAGENAME}}|name}} |
|- | |- | ||
! name | ! name | ||
| − | |colspan="3"| [[{{{{ | + | |colspan="3"| [[{{{{BASEPAGENAME}}|name}}]] |
|- | |- | ||
| − | {{#if:{{{{ | + | {{#if:{{{{BASEPAGENAME}}|top}}| |
!rowspan="4"{{!}}border<br/>coordinates | !rowspan="4"{{!}}border<br/>coordinates | ||
{{!}}- | {{!}}- | ||
| − | {{!}}colspan="3"{{!}} {{{{ | + | {{!}}colspan="3"{{!}} {{{{BASEPAGENAME}}|top}} |
{{!}}- | {{!}}- | ||
| − | {{!}}style="width:7em;"{{!}} {{{{ | + | {{!}}style="width:7em;"{{!}} {{{{BASEPAGENAME}}|left}} |
{{!}} ←↕→ | {{!}} ←↕→ | ||
| − | {{!}}style="width:7em;"{{!}} {{{{ | + | {{!}}style="width:7em;"{{!}} {{{{BASEPAGENAME}}|right}} {{#ifexpr: {{{{BASEPAGENAME}}|right}} > 180 | ({{#expr: {{{{BASEPAGENAME}}|right}} - 360 }})}} |
{{!}}- | {{!}}- | ||
| − | {{!}}colspan="3"{{!}} {{{{ | + | {{!}}colspan="3"{{!}} {{{{BASEPAGENAME}}|bottom}} |
{{!}}- | {{!}}- | ||
! map center | ! map center | ||
| − | {{!}}colspan="4"{{!}} {{coord|{{#expr:({{{{ | + | {{!}}colspan="4"{{!}} {{coord|{{#expr:({{{{BASEPAGENAME}}|top}}+{{{{BASEPAGENAME}}|bottom}})/2}}|{{#expr:({{{{BASEPAGENAME}}|left}}+{{{{BASEPAGENAME}}|right}} {{#ifexpr:{{{{BASEPAGENAME}}|right}}< {{{{BASEPAGENAME}}|left}}| + 360}})/2}}}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
| − | {{#if:{{{{ | + | {{#if:{{{{BASEPAGENAME}}|x}}| |
! x | ! x | ||
| − | {{!}}colspan="3" style="overflow: auto; white-space: auto; width: 350px"{{!}} {{{{ | + | {{!}}colspan="3" style="overflow: auto; white-space: auto; width: 350px"{{!}} {{{{BASEPAGENAME}}|x}} |
{{!}}- | {{!}}- | ||
! y | ! y | ||
| − | {{!}}colspan="3" style="overflow: auto; white-space: auto; width: 350px"{{!}} {{{{ | + | {{!}}colspan="3" style="overflow: auto; white-space: auto; width: 350px"{{!}} {{{{BASEPAGENAME}}|y}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
! image | ! image | ||
| − | |colspan="3"| <tt>[[:Image:{{{{ | + | |colspan="3"| <tt>[[:Image:{{{{BASEPAGENAME}}|image}}|{{{{BASEPAGENAME}}|image}}]]</tt> |
|- | |- | ||
| − | |colspan="4"|[[image:{{{{ | + | |colspan="4"|[[image:{{{{BASEPAGENAME}}|image}}|400x400px|{{BASEPAGENAME}}]] |
|- | |- | ||
| − | {{#if:{{{{ | + | {{#if:{{{{BASEPAGENAME}}|image1}}| |
! image1 | ! image1 | ||
| − | {{!}}colspan="3"{{!}} <tt>[[:Image:{{{{ | + | {{!}}colspan="3"{{!}} <tt>[[:Image:{{{{BASEPAGENAME}}|image1}}|{{{{BASEPAGENAME}}|image1}}]]</tt> |
{{!}}- | {{!}}- | ||
| − | {{!}}colspan="4"{{!}}[[image:{{{{ | + | {{!}}colspan="4"{{!}}[[image:{{{{BASEPAGENAME}}|image1}}|400x400px|{{BASEPAGENAME}}]] |
{{!}}- | {{!}}- | ||
}} | }} | ||
| − | {{#if:{{{{ | + | {{#if:{{{{BASEPAGENAME}}|image2}}| |
! image2 | ! image2 | ||
| − | {{!}}colspan="3"{{!}} <tt>[[:Image:{{{{ | + | {{!}}colspan="3"{{!}} <tt>[[:Image:{{{{BASEPAGENAME}}|image2}}|{{{{BASEPAGENAME}}|image2}}]]</tt> |
{{!}}- | {{!}}- | ||
| − | {{!}}colspan="4"{{!}}[[image:{{{{ | + | {{!}}colspan="4"{{!}}[[image:{{{{BASEPAGENAME}}|image2}}|400x400px|{{BASEPAGENAME}}]] |
{{!}}- | {{!}}- | ||
}} | }} | ||
| − | {{#if: {{{{ | + | {{#if: {{{{BASEPAGENAME}}|skew}} | |
! skew | ! skew | ||
| − | {{!}}colspan="3"{{!}} {{{{ | + | {{!}}colspan="3"{{!}} {{{{BASEPAGENAME}}|skew}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
| − | {{#if: {{{{ | + | {{#if: {{{{BASEPAGENAME}}|lat_skew}} | |
! lat_skew | ! lat_skew | ||
| − | {{!}}colspan="3"{{!}} {{{{ | + | {{!}}colspan="3"{{!}} {{{{BASEPAGENAME}}|lat_skew}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
| − | {{#if: {{{{ | + | {{#if: {{{{BASEPAGENAME}}|mark}} | |
! mark | ! mark | ||
| − | {{!}}colspan="3"{{!}} <tt>[[:File:{{{{ | + | {{!}}colspan="3"{{!}} <tt>[[:File:{{{{BASEPAGENAME}}|mark}}|{{{{BASEPAGENAME}}|mark}}]]</tt> |
{{!}}- | {{!}}- | ||
}} | }} | ||
| − | {{#if: {{{{ | + | {{#if: {{{{BASEPAGENAME}}|marksize}} | |
! marksize | ! marksize | ||
| − | {{!}}colspan="3"{{!}} {{{{ | + | {{!}}colspan="3"{{!}} {{{{BASEPAGENAME}}|marksize}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
| − | | | + | |}</includeonly><noinclude> |
| + | <!--categories and interwikis should be placed in /doc, not here--> | ||
{{documentation}} | {{documentation}} | ||
| − | |||
</noinclude> | </noinclude> | ||
Revision as of 01:20, 17 August 2011
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
- Module:Location map/info, used for location map data modules such as "Module:Location map/data/Belgium"
- {{Location map}} and Module:Location map
| The above documentation is transcluded from Template:Location map/Info/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |