Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Object location: Difference between revisions

Template page
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:{{{4}}}|S|-|}}{{ #ifeq:{{{4}}}|s|-|}}{{#expr: {{{1|0}}} + {{{2|0}}}/60.0 + {{{3|0}}}/3600.0 }}
| lat  = {{ #ifeq:{{uc:{{{4}}}}}|S|-|}}{{#expr: {{{1|0}}} + {{{2|0}}}/60.0 + {{{3|0}}}/3600.0 }}
| lon  = {{ #ifeq:{{{8}}}|W|-|}}{{ #ifeq:{{{8}}}|w|-|}}{{#expr: {{{5|0}}} + {{{6|0}}}/60.0 + {{{7|0}}}/3600.0 }}
| 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|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}}}</includeonly><noinclude>
}}<noinclude>
 
{{Location/lang}}
{{Location/lang}}
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 02:55, 4 December 2013

Template:Location/en

Template:Location/lang

Template documentation[ create · purge ]
This documentation is transcluded from Template:Object location/doc.


Cookies help us deliver our services. By using our services, you agree to our use of cookies.