Vorlage:CoordinateMain: Unterschied zwischen den Versionen
Aus KKWiki
Zur Navigation springenZur Suche springen✓ (Diskussion) K (verschob „Vorlage:Coordinate/Test/MAIN“ nach „Vorlage:CoordinateMain“) |
K (30 Versionen) |
||
(12 dazwischenliegende Versionen von 7 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
− | <onlyinclude>{{#iferror:{{{NS}}}{{{EW}}} | + | <onlyinclude><includeonly>{{#iferror:{{{NS}}}{{{EW}}} |
− | | {{ | + | | {{CoordinateMessage|1 |{{{NS}}} |{{{EW}}} }} |
|<!-- | |<!-- | ||
Zeile 7: | Zeile 7: | ||
-->{{#if: {{{text}}} | -->{{#if: {{{text}}} | ||
| {{#if: {{{sortkey}}} | | {{#if: {{{sortkey}}} | ||
− | | {{ | + | | {{CoordinateSort |{{{NS}}} |{{{EW}}} |key={{{sortkey}}} }} |
}}<span id="{{#if: {{{name}}} | }}<span id="{{#if: {{{name}}} | ||
| {{anchorencode:{{{name}}}}} | | {{anchorencode:{{{name}}}}} | ||
| text_coordinates | | text_coordinates | ||
− | }}" class="coordinates plainlinks-print">{{#ifeq: {{{ | + | }}" class="coordinates plainlinks-print">{{#ifeq: {{{type_safe}}} | example |
| <span style="background:white; font-style:italic;">Beispiel</span>  | | <span style="background:white; font-style:italic;">Beispiel</span>  | ||
}}{{#if: {{{article}}}{{{name}}} | }}{{#if: {{{article}}}{{{name}}} | ||
| | | | ||
− | | {{ | + | | {{CoordinateMessage|8}}  |
− | }}{{ | + | }}{{CoordinateLink |
|NS = {{{NS}}} | |NS = {{{NS}}} | ||
|EW = {{{EW}}} | |EW = {{{EW}}} | ||
|globe = {{{globe}}} | |globe = {{{globe}}} | ||
− | |type = {{{ | + | |type = {{{type_safe}}} |
|pop = {{#iferror: {{{pop}}} | }} | |pop = {{#iferror: {{{pop}}} | }} | ||
|elevation = {{#iferror: {{{elevation}}} | }} | |elevation = {{#iferror: {{{elevation}}} | }} | ||
|dim = {{{dim}}} | |dim = {{{dim}}} | ||
− | | | + | |dim_safe = {{{dim_safe}}} |
|region = {{{region}}} | |region = {{{region}}} | ||
|name = {{{name}}} | |name = {{{name}}} | ||
|label = <!-- zweites Format nicht bezeichnen --> | |label = <!-- zweites Format nicht bezeichnen --> | ||
+ | |trenner =  ( | ||
|tooltip = {{{tooltip}}} | |tooltip = {{{tooltip}}} | ||
|ttf = {{{ttf}}} | |ttf = {{{ttf}}} | ||
Zeile 37: | Zeile 38: | ||
|0 = {{#switch: {{uc:{{#titleparts:{{{text}}}|1|1}}}} | |0 = {{#switch: {{uc:{{#titleparts:{{{text}}}|1|1}}}} | ||
|<!--leer--> |OSGB36<!--nicht implementiert-->|DMS|DM|DEC|CH1903|UTM= <!--leer--> | |<!--leer--> |OSGB36<!--nicht implementiert-->|DMS|DM|DEC|CH1903|UTM= <!--leer--> | ||
− | |ICON0= | + | |ICON0=⊙ |
− | |ICON = | + | |ICON =⦁ |
− | |ICON1=<sup> | + | |ICON1=<sup>▼</sup> |
|#default= {{{text}}} | |#default= {{{text}}} | ||
}} | }} | ||
Zeile 59: | Zeile 60: | ||
|CH1903= CH1903 | |CH1903= CH1903 | ||
|UTM= UTM | |UTM= UTM | ||
− | <!--| | + | <!--|OSGB36 = nicht implementiert--> |
}} | }} | ||
− | |||
}}</span> | }}</span> | ||
− | }}<span class="geo microformat"><span class="body">{{{globe}}}</span><span class="latitude">{{{NS}}}</span><span class="longitude">{{{EW}}}</span><span class="elevation">{{{ | + | }}<span class="geo microformat"><span class="body">{{ucfirst:{{{globe}}}}}</span><span class="latitude">{{{NS}}}</span><span class="longitude">{{{EW}}}</span><span class="elevation">{{{elevation}}}</span><!-- leere Tags werden von Tidy entfernt --></span>{{#if: {{#iferror:{{{pop}}}{{{elevation}}}|X|}}{{#if:{{{region}}}{{{globe}}}||X}}{{#ifeq:{{{type}}}|{{{type_safe}}}||X}} |
− | + | |  {{CoordinateMessage | |
− | |||
− | |||
− | |  {{ | ||
|3<!-- 4,6,7,9 --> | |3<!-- 4,6,7,9 --> | ||
|type = {{{type}}} | |type = {{{type}}} | ||
Zeile 73: | Zeile 70: | ||
|elevation = {{{elevation}}} | |elevation = {{{elevation}}} | ||
|pop = {{{pop}}} | |pop = {{{pop}}} | ||
− | }}{{#if:{{{mapfloat}}}<!-- alternativ {{{mapname|}}}{{{maplevel|}}}{{{mapsize|}}}{{{maptype|}}}{{{maplayer|}}}{{{maptrenner|}}} --> | + | }}{{#if:{{{mapfloat|}}}<!-- alternativ {{{mapname|}}}{{{maplevel|}}}{{{mapsize|}}}{{{maptype|}}}{{{maplayer|}}}{{{maptrenner|}}} --> |
− | |<!-- Einbindung aus / | + | |<!-- Einbindung aus /Map --> |
| {{#if:{{{mapname}}}{{{maplevel}}}{{{mapsize}}}{{{maptype}}}{{{maplayer}}}{{{maptrenner}}} | | {{#if:{{{mapname}}}{{{maplevel}}}{{{mapsize}}}{{{maptype}}}{{{maplayer}}}{{{maptrenner}}} | ||
− | |  {{ | + | |  {{CoordinateMessage|10}} |
}} | }} | ||
}} | }} | ||
Zeile 84: | Zeile 81: | ||
-->{{#if:{{{article}}} | -->{{#if:{{{article}}} | ||
− | | <span id="coordinates" class="coordinates plainlinks-print"><span title="Koordinatensystem WGS84">Koordinaten: </span>{{#ifeq: {{{ | + | | <span id="coordinates" class="coordinates plainlinks-print"><span title="Koordinatensystem WGS84">Koordinaten: </span>{{#ifeq: {{{type_safe}}} | example |
| <span style="background:white; font-style:italic;">Beispiel</span>  | | <span style="background:white; font-style:italic;">Beispiel</span>  | ||
− | }}{{ | + | }}{{CoordinateLink |
|NS = {{{NS}}} | |NS = {{{NS}}} | ||
|EW = {{{EW}}} | |EW = {{{EW}}} | ||
|globe = {{{globe}}} | |globe = {{{globe}}} | ||
− | |type = {{{ | + | |type = {{{type_safe}}} |
|pop = {{#iferror: {{{pop}}} | }} | |pop = {{#iferror: {{{pop}}} | }} | ||
|elevation = {{#iferror: {{{elevation}}} | }} | |elevation = {{#iferror: {{{elevation}}} | }} | ||
|dim = {{{dim}}} | |dim = {{{dim}}} | ||
− | | | + | |dim_safe = {{{dim_safe}}} |
|region = {{{region}}} | |region = {{{region}}} | ||
|name = <!-- Artikelkoordinate ohne title-Parameter ??? --> | |name = <!-- Artikelkoordinate ohne title-Parameter ??? --> | ||
|label = ja | |label = ja | ||
+ | |trenner = ;  <!-- „; “ --> | ||
|tooltip = <!-- kein Tooltip --> | |tooltip = <!-- kein Tooltip --> | ||
<!--|ttf = wird eh nicht ausgewertet --> | <!--|ttf = wird eh nicht ausgewertet --> | ||
Zeile 111: | Zeile 109: | ||
|#default= {{#titleparts:{{#if:{{{default}}} | |#default= {{#titleparts:{{#if:{{{default}}} | ||
| {{{default}}} | | {{{default}}} | ||
− | | {{ | + | | {{CoordinateDefault|{{{region}}} }} |
}}|1|2}} | }}|1|2}} | ||
}} | }} | ||
− | |||
}}</span> | }}</span> | ||
+ | }}<!-- | ||
+ | |||
+ | coordinates parser function | ||
+ | |||
+ | -->{{#ifeq:{{NAMESPACE}}|{{ns:0}}| | ||
+ | {{#if:{{{globe|}}}|<!--nichts-->| | ||
+ | {{#coordinates:{{formatnum:{{{NS}}}}}|{{formatnum:{{{EW}}}}}|{{#if:{{{article}}}|primary}} | ||
+ | |dim={{{dim}}} | ||
+ | |globe={{{globe}}} | ||
+ | |name={{{name}}} | ||
+ | |region={{{region}}} | ||
+ | |type={{{type}}} | ||
+ | }} | ||
+ | }} | ||
}} | }} | ||
− | }}</onlyinclude> | + | }}</includeonly></onlyinclude> |
{{Dokumentation/Unterseite}} | {{Dokumentation/Unterseite}} |
Aktuelle Version vom 23. September 2014, 21:20 Uhr
Diese Seite ist eine Untervorlage von [[]]. |