Template:Object location: Difference between revisions
Template page
More actions
restrict Media using Location template with incorrect parameter to file and category namespace only |
improve error checking |
||
| Line 26: | Line 26: | ||
| lang = {{#if:{{{lang|}}} | {{{lang|}}} |{{int:Lang}}}} | | lang = {{#if:{{{lang|}}} | {{{lang|}}} |{{int:Lang}}}} | ||
| bare = {{{bare|}}} | | 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|}}} | | secondary = {{{secondary|}}} | ||
| namespace = {{NAMESPACE}} | | namespace = {{NAMESPACE}} | ||
| Line 42: | Line 42: | ||
| lang = {{#if:{{{lang|}}} | {{{lang|}}} |{{int:Lang}}}} | | lang = {{#if:{{{lang|}}} | {{{lang|}}} |{{int:Lang}}}} | ||
| bare = {{{bare|}}} | | bare = {{{bare|}}} | ||
| | | error = {{#expr:not ({{IsNum|{{{1|}}}}} and {{IsNum|{{{2|}}}}} }} | ||
| secondary = {{{secondary|}}} | | secondary = {{{secondary|}}} | ||
| namespace = {{NAMESPACE}} | | namespace = {{NAMESPACE}} | ||
Revision as of 20:07, 28 December 2015
Error: Invalid parameters! (coordinates are missing or not numeric)
This documentation is transcluded from Template:Object location/doc.