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
add {{#coordinates: only in category namespace for time beeing
Switch to Lua version using Module:Coordinates
Line 17: Line 17:
== 9 parameter version ==
== 9 parameter version ==


-->{{Location/{{Fallback|Location}} <!-- -->
-->{{#invoke:Coordinates| LocationTemplateCore |
| mode = 2 <!-- mode=2 gives Object Location -->
  | globe      = Earth
| lat = {{ #ifeq:{{uc:{{{4}}}}}|S|-|}}{{#expr: {{{1|0}}} + {{{2|0}}}/60.0 + {{{3|0}}}/3600.0 }}
| mode       = object
| lon = {{ #ifeq:{{uc:{{{8}}}}}|W|-|}}{{#expr: {{{5|0}}} + {{{6|0}}}/60.0 + {{{7|0}}}/3600.0 }}
| lat       = {{ #ifeq:{{uc:{{{4|}}}}}|S|-|}}{{#expr: {{{1|0}}} + {{{2|0}}}/60.0 + {{{3|0}}}/3600.0 }}
| attributes = class:object_{{{9|type:landmark}}}
| lon       = {{ #ifeq:{{uc:{{{8|}}}}}|W|-|}}{{#expr: {{{5|0}}} + {{{6|0}}}/60.0 + {{{7|0}}}/3600.0 }}
| 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}}   
| attributes = {{{9|}}}
| globe = Earth
| lang      = {{#if:{{{lang|}}} | {{{lang|}}} |{{int:Lang}}}}
}}<includeonly>{{#ifeq:{{NAMESPACE}}|File||{{#coordinates:{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|class:object_{{{9|type:landmark}}}}}}}</includeonly> |<!--  
| bare      = {{{bare|}}}
| 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}}
  | secondary  = {{{secondary|}}}
}}
|<!--  


== 3 parameter version ==
== 3 parameter version ==


-->{{Location/{{Fallback|Location}}
-->{{#invoke:Coordinates| LocationTemplateCore |
| mode = 2 <!-- mode=2 gives Object Location -->
| globe      = Earth
| lat = {{{1}}}
| mode       = object
| lon = {{{2}}}
| lat       = {{{1|}}}
| attributes = class:object_{{{3|type:landmark}}}
| lon       = {{{2|}}}
| NoError = {{IsNum|{{{1|}}}}} and {{IsNum|{{{2|}}}}} and {{#if:{{{NW|}}}{{{EW|}}}{{{type|}}}{{{region|}}}{{{article|}}}{{{display|}}}|0|1}}   
| attributes = {{{3|}}}
| globe = Earth
| lang      = {{#if:{{{lang|}}} | {{{lang|}}} |{{int:Lang}}}}
}}<includeonly>{{#ifeq:{{NAMESPACE}}|File||{{#coordinates:{{{1}}}|{{{2}}}|class:object_{{{3|type:landmark}}}}}}}</includeonly>
| bare      = {{{bare|}}}
| NoError   = {{IsNum|{{{1|}}}}} and {{IsNum|{{{2|}}}}} and {{#if:{{{NW|}}}{{{EW|}}}{{{type|}}}{{{region|}}}{{{article|}}}{{{display|}}}|0|1}}   
| secondary  = {{{secondary|}}}
}}
}}<noinclude>
}}<noinclude>


{{Location/lang}}
{{Documentation}}
{{Documentation}}


</noinclude>
</noinclude>

Revision as of 14:30, 22 January 2014

Error: Invalid parameters! (coordinates are missing or not numeric)

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.