Template:Object location: Difference between revisions
Template page
More actions
m force a refresh |
add "secondary" parameter and use different {{#coordinates}} for 3 and 9 parameter version of the template |
||
| Line 13: | Line 13: | ||
{2}:Degree (decimal) of longitude, e.g. + (East) or - (West) | {2}:Degree (decimal) of longitude, e.g. + (East) or - (West) | ||
{3}:Attribute-Parameters "type", "region" and "scale"(type:landmark_region:EG_scale:5000 | {3}:Attribute-Parameters "type", "region" and "scale"(type:landmark_region:EG_scale:5000 | ||
-->{{#if: {{{4|}}} | | -->{{#if: {{{4|}}} |<!-- | ||
{{Location/{{Fallback|Location}} <!-- --> | |||
== 9 parameter version == | |||
-->{{Location/{{Fallback|Location}} <!-- --> | |||
| mode = 2 <!-- mode=2 gives Object Location --> | | mode = 2 <!-- mode=2 gives Object Location --> | ||
| lat = {{ #ifeq:{{ | | lat = {{ #ifeq:{{uc:{{{4}}}}}|S|-|}}{{#expr: {{{1|0}}} + {{{2|0}}}/60.0 + {{{3|0}}}/3600.0 }} | ||
| lon = {{ #ifeq:{{ | | lon = {{ #ifeq:{{uc:{{{8}}}}}|W|-|}}{{#expr: {{{5|0}}} + {{{6|0}}}/60.0 + {{{7|0}}}/3600.0 }} | ||
| attributes = class:object_{{{9|type:landmark}}} | | attributes = class:object_{{{9|type:landmark}}} | ||
| NoError = {{IsNum|{{{1|}}}}} and {{IsNum|{{{2|}}}}} and {{IsNum|{{{3|}}}}} and {{IsNum|{{{5|}}}}} and {{IsNum|{{{6|}}}}} and {{IsNum|{{{7|}}}}} and {{#switch:{{{4|}}}{{{8|}}}|NE|NW|SE|SW=1 |#default=0}} and {{#if:{{{10|}}}{{{NW|}}}{{{EW|}}}{{{type|}}}{{{region|}}}{{{article|}}}{{{display|}}}|0|1}} | | NoError = {{IsNum|{{{1|}}}}} and {{IsNum|{{{2|}}}}} and {{IsNum|{{{3|}}}}} and {{IsNum|{{{5|}}}}} and {{IsNum|{{{6|}}}}} and {{IsNum|{{{7|}}}}} and {{#switch:{{{4|}}}{{{8|}}}|NE|NW|SE|SW=1 |#default=0}} and {{#if:{{{10|}}}{{{NW|}}}{{{EW|}}}{{{type|}}}{{{region|}}}{{{article|}}}{{{display|}}}|0|1}} | ||
| globe = Earth | | globe = Earth | ||
}} | | }}<includeonly>{{#coordinates:{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|class:object_{{{9|type:landmark}}}|{{#if:{{{secondary|}}}|secondary|primary}}}}</includeonly> |<!-- | ||
{{Location/{{Fallback|Location}} | |||
== 3 parameter version == | |||
-->{{Location/{{Fallback|Location}} | |||
| mode = 2 <!-- mode=2 gives Object Location --> | | mode = 2 <!-- mode=2 gives Object Location --> | ||
| lat = {{{1}}} | | lat = {{{1}}} | ||
| Line 29: | Line 35: | ||
| NoError = {{IsNum|{{{1|}}}}} and {{IsNum|{{{2|}}}}} and {{#if:{{{NW|}}}{{{EW|}}}{{{type|}}}{{{region|}}}{{{article|}}}{{{display|}}}|0|1}} | | NoError = {{IsNum|{{{1|}}}}} and {{IsNum|{{{2|}}}}} and {{#if:{{{NW|}}}{{{EW|}}}{{{type|}}}{{{region|}}}{{{article|}}}{{{display|}}}|0|1}} | ||
| globe = Earth | | globe = Earth | ||
}}<includeonly>{{#coordinates:{{{1}}}|{{{2}}}|class:object_{{{3|type:landmark}}}|{{#if:{{{secondary|}}}|secondary|primary}}}}</includeonly> | |||
}}<includeonly>{{#coordinates:{{{1}}}|{{{2}}}|{{{3|}}}|{{{ | }}<noinclude> | ||
{{Location/lang}} | {{Location/lang}} | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 02:55, 4 December 2013
This documentation is transcluded from Template:Object location/doc.