Template:Object location: Difference between revisions
Template page
More actions
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 == | ||
-->{{ | -->{{#invoke:Coordinates| LocationTemplateCore | | ||
| mode = | | globe = Earth | ||
| lat | | mode = object | ||
| lon | | lat = {{ #ifeq:{{uc:{{{4|}}}}}|S|-|}}{{#expr: {{{1|0}}} + {{{2|0}}}/60.0 + {{{3|0}}}/3600.0 }} | ||
| attributes = | | 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|}}} | ||
| | | lang = {{#if:{{{lang|}}} | {{{lang|}}} |{{int:Lang}}}} | ||
| 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 == | ||
-->{{ | -->{{#invoke:Coordinates| LocationTemplateCore | | ||
| | | globe = Earth | ||
| lat | | mode = object | ||
| lon | | lat = {{{1|}}} | ||
| attributes = | | lon = {{{2|}}} | ||
| NoError = {{IsNum|{{{1|}}}}} and {{IsNum|{{{2|}}}}} and {{#if:{{{NW|}}}{{{EW|}}}{{{type|}}}{{{region|}}}{{{article|}}}{{{display|}}}|0|1}} | | attributes = {{{3|}}} | ||
| | | lang = {{#if:{{{lang|}}} | {{{lang|}}} |{{int:Lang}}}} | ||
| bare = {{{bare|}}} | |||
| NoError = {{IsNum|{{{1|}}}}} and {{IsNum|{{{2|}}}}} and {{#if:{{{NW|}}}{{{EW|}}}{{{type|}}}{{{region|}}}{{{article|}}}{{{display|}}}|0|1}} | |||
| secondary = {{{secondary|}}} | |||
}} | |||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 14:30, 22 January 2014
Error: Invalid parameters! (coordinates are missing or not numeric)
This documentation is transcluded from Template:Object location/doc.