Template:Object location: Difference between revisions
Template page
More actions
add "secondary" parameter and use different {{#coordinates}} for 3 and 9 parameter version of the template |
files will be secondary and categories primary coordinates |
||
| Line 24: | Line 24: | ||
| 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}}}|{{# | }}<includeonly>{{#coordinates:{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|class:object_{{{9|type:landmark}}}|{{#ifeq:{{NAMESPACE}}|File|secondary|primary}}}}</includeonly> |<!-- | ||
== 3 parameter version == | == 3 parameter version == | ||
| Line 35: | 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}}}|{{# | }}<includeonly>{{#coordinates:{{{1}}}|{{{2}}}|class:object_{{{3|type:landmark}}}|{{#ifeq:{{NAMESPACE}}|File|secondary|primary}}}}</includeonly> | ||
}}<noinclude> | }}<noinclude> | ||
Revision as of 04:22, 7 December 2013
This documentation is transcluded from Template:Object location/doc.