Template:Object location: Difference between revisions
Template page
More actions
move lots of functionality from template to module |
Undo revision 370869202 by Jarekt (talk) - bug needs fixing, see Module talk:Coordinates |
||
| Line 1: | Line 1: | ||
< | <!--Explanation of variables | ||
--><includeonly>{{#invoke:TemplatePar|check | {1}:Degree(°) | ||
|opt= secondary= lang= prec= bare | {2}:Minutes(') | ||
{3}:Seconds("), | |||
{4}:Latitude, e.g. N (North) or S (South) | |||
{5}:Degree (°) | |||
{6}:Minutes (') | |||
{7}:Seconds (") | |||
{8}:Longitude, e.g. E (East) or W (West) | |||
{9}:Attribute-Parameters "type", "region" and "scale"(type:landmark_region:EG_scale:5000 | |||
OR | |||
{1}:Degree (decimal) of latitude , e.g. + (North) or - (South) | |||
{2}:Degree (decimal) of longitude, e.g. + (East) or - (West) | |||
{3}:Attribute-Parameters "type", "region" and "scale"(type:landmark_region:EG_scale:5000 | |||
-->{{#if: {{{4|}}} |<!-- | |||
== 9 parameter version == | |||
-->{{#invoke:Coordinates| LocationTemplateCore | | |||
| globe = Earth | |||
| mode = object | |||
| lat = {{ #ifeq:{{uc:{{{4|}}}}}|S|-|}}{{#expr: {{{1|0}}} + {{{2|0}}}/60.0 + {{{3|0}}}/3600.0 }} | |||
| lon = {{ #ifeq:{{uc:{{{8|}}}}}|W|-|}}{{#expr: {{{5|0}}} + {{{6|0}}}/60.0 + {{{7|0}}}/3600.0 }} | |||
| attributes = {{{attributes|{{{9|}}} }}} | |||
| prec = {{{prec|}}} | |||
| lang = {{#if:{{{lang|}}} | {{{lang|}}} |{{int:Lang}}}} | |||
| bare = {{{bare|}}} | |||
| error = {{#expr:not ({{IsNum|{{{1|}}}}} and {{IsNum|{{{2|}}}}} and {{IsNum|{{{3|}}}}} and {{IsNum|{{{5|}}}}} and {{IsNum|{{{6|}}}}} and {{IsNum|{{{7|}}}}} and {{#switch:{{uc:{{{4|}}}{{{8|}}}}}|NE|NW|SE|SW=1 |#default=0}}) }} | |||
| secondary = {{{secondary|}}} | |||
| wikidata = {{{Wikidata|{{{wikidata|}}} }}} | |||
| namespace = {{NAMESPACE}} | |||
}}|<!-- | |||
== 3 parameter version == | |||
-->{{#invoke:Coordinates| LocationTemplateCore | | |||
| globe = Earth | |||
| mode = object | |||
| lat = {{{1|}}} | |||
| lon = {{{2|}}} | |||
| attributes = {{{attributes|{{{3|}}} }}} | |||
| prec = {{{prec|}}} | |||
| lang = {{#if:{{{lang|}}} | {{{lang|}}} |{{int:Lang}}}} | |||
| bare = {{{bare|}}} | |||
| error = {{#expr:not ({{IsNum|{{{1|}}}}} and {{IsNum|{{{2|}}}}} }} | |||
| secondary = {{{secondary|}}} | |||
| wikidata = {{{Wikidata|{{{wikidata|}}} }}} | |||
| namespace = {{NAMESPACE}} | |||
}}}}<includeonly>{{#invoke:TemplatePar|check | |||
|opt= secondary= lang= prec= bare= 1= 2= 3= 4= 5= 6= 7= 8= 9= wikidata= Wikidata= attributes= | |||
|cat= Media using Location template with incorrect parameter | |cat= Media using Location template with incorrect parameter | ||
|errNS=6 14 | |errNS=6 14 | ||
| Line 9: | Line 56: | ||
--><noinclude> | --><noinclude> | ||
{{Documentation | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 07:56, 17 October 2019
Error: Invalid parameters! (coordinates are missing or not numeric)
This documentation is transcluded from Template:Object location/doc.