« Modèle:Coord » : différence entre les versions

Contenu supprimé Contenu ajouté
m A modifié le niveau de protection de « Modèle:Coord »: pour interventions [edit=autoconfirmed:move=autoconfirmed]
Phe (discussion | contributions)
m remplacement par une version lisible, aucune modification réelle, seulement du cosmétique
Ligne 1 :
<includeonly>{{Coord/display/{{{display|inline}}}
<includeonly>{{Coord/display/{{{display|inline}}}|1={{Coord/input/{{#ifeq:{{{4|}}}||dec|{{#if:{{#switch:{{{4}}}{{{8}}}|NE|NW|SE|SW=y}}|{{#ifeq:{{{format|}}}|dms long|dms long|dms}}|{{#if:{{#switch:{{{3}}}{{{6}}}|NE|NW|SE|SW=y}}|{{#ifeq:{{{format|}}}|dms long|dm long|dm}}|{{#if:{{#switch:{{{2}}}{{{4}}}|NE|NW|SE|SW=y}}|d|ERROR}}}}}}}}|1={{{1|}}}|2={{{2|}}}|3={{{3|}}}|4={{{4|}}}|5={{{5|}}}|6={{{6|}}}|7={{{7|}}}|8={{{8|}}}|9={{{9|}}}|format={{{format|}}}|name={{{name|}}}}}}}</includeonly><noinclude>{{Doc modèle}}</noinclude>
| 1={{Coord/input/{{
#ifeq:{{{4|}}}
|
| dec
| {{#if:
{{#switch:{{{4}}}{{{8}}}|NE|NW|SE|SW=y}}
| {{#ifeq:{{{format|}}}|dms long|dms long|dms}}
| {{#if:
{{#switch:
{{{3}}}{{{6}}}
| NE
| NW
| SE
| SW = y
}}
| {{#ifeq:{{{format|}}}|dms long|dm long|dm}}
| {{#if:
{{#switch:
{{{2}}}{{{4}}}
| NE
| NW
| SE
| SW=y
}}
| d
| ERROR
}}
}}
}}
}}
| 1 = {{{1|}}}
| 2 = {{{2|}}}
| 3 = {{{3|}}}
| 4 = {{{4|}}}
| 5 = {{{5|}}}
| 6 = {{{6|}}}
| 7 = {{{7|}}}
| 8 = {{{8|}}}
| 9 = {{{9|}}}
| format = {{{format|}}}
| name = {{{name|}}}
}}
}}</includeonly><noinclude>{{Doc modèle}}</noinclude>