Vorlage:CoordinateMain: Unterschied zwischen den Versionen
Aus KKWiki
Zur Navigation springenZur Suche springen✓ (Diskussion) (ImDruckVerbergen raus, microformat, globe) |
K (30 Versionen) |
||
(26 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}}}|{{anchorencode:{{{name}}}}}|text_coordinates}}" class="coordinates plainlinks-print">{{#ifeq: {{{ | + | }}<span id="{{#if: {{{name}}} |
− | | <span style="background:white; font-style:italic;">Beispiel</span> | + | | {{anchorencode:{{{name}}}}} |
+ | | text_coordinates | ||
+ | }}" class="coordinates plainlinks-print">{{#ifeq: {{{type_safe}}} | example | ||
+ | | <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 = {{{ | + | |pop = {{#iferror: {{{pop}}} | }} |
− | |elevation = {{{ | + | |elevation = {{#iferror: {{{elevation}}} | }} |
|dim = {{{dim}}} | |dim = {{{dim}}} | ||
− | | | + | |dim_safe = {{{dim_safe}}} |
|region = {{{region}}} | |region = {{{region}}} | ||
− | | | + | |name = {{{name}}} |
− | | | + | |label = <!-- zweites Format nicht bezeichnen --> |
+ | |trenner =  ( | ||
+ | |tooltip = {{{tooltip}}} | ||
+ | |ttf = {{{ttf}}} | ||
|format = {{#if: {{{sortkey}}} |sortable }} | |format = {{#if: {{{sortkey}}} |sortable }} | ||
+ | |datei = {{#switch: {{padleft:|5|{{{text}}}}}<!-- {{NAMESPACE:{{{text}}}}} funktioniert mit {{!}} nicht --> | ||
+ | | ICON2 = Datei:Erioll world.svg{{!}}15px{{!}}alt=Welt-Icon | ||
+ | | Datei = {{{text}}} | ||
+ | }} | ||
|0 = {{#switch: {{uc:{{#titleparts:{{{text}}}|1|1}}}} | |0 = {{#switch: {{uc:{{#titleparts:{{{text}}}|1|1}}}} | ||
− | |<!--leer--> |OSGB36 | + | |<!--leer--> |OSGB36<!--nicht implementiert-->|DMS|DM|DEC|CH1903|UTM= <!--leer--> |
− | |ICON0= | + | |ICON0=⊙ |
− | |ICON = | + | |ICON =⦁ |
− | |ICON1=<sup> | + | |ICON1=<sup>▼</sup> |
− | |||
|#default= {{{text}}} | |#default= {{{text}}} | ||
}} | }} | ||
|1 = {{#switch: {{uc:{{#titleparts:{{{text}}}|1|1}}}} | |1 = {{#switch: {{uc:{{#titleparts:{{{text}}}|1|1}}}} | ||
|<!--leer-->= {{#titleparts:{{{default}}}|1|1}} | |<!--leer-->= {{#titleparts:{{{default}}}|1|1}} | ||
− | |OSGB36 | + | |OSGB36<!--nicht implementiert → DMS --> |
|DMS= DMS | |DMS= DMS | ||
|DM= DM | |DM= DM | ||
|DEC= DEC | |DEC= DEC | ||
|CH1903= CH1903 | |CH1903= CH1903 | ||
+ | |UTM= UTM | ||
}} | }} | ||
|2 = {{#switch: {{uc:{{#titleparts:{{{text}}}|1|2}}}} | |2 = {{#switch: {{uc:{{#titleparts:{{{text}}}|1|2}}}} | ||
Zeile 49: | Zeile 59: | ||
|DEC= DEC | |DEC= DEC | ||
|CH1903= CH1903 | |CH1903= CH1903 | ||
− | <!-- | | + | |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 --> | |
− | | | + | |type = {{{type}}} |
− | | {{ | + | |rg = {{{region}}}{{{globe}}} |
+ | |elevation = {{{elevation}}} | ||
+ | |pop = {{{pop}}} | ||
+ | }}{{#if:{{{mapfloat|}}}<!-- alternativ {{{mapname|}}}{{{maplevel|}}}{{{mapsize|}}}{{{maptype|}}}{{{maplayer|}}}{{{maptrenner|}}} --> | ||
+ | |<!-- Einbindung aus /Map --> | ||
+ | | {{#if:{{{mapname}}}{{{maplevel}}}{{{mapsize}}}{{{maptype}}}{{{maplayer}}}{{{maptrenner}}} | ||
+ | |  {{CoordinateMessage|10}} | ||
+ | }} | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}}<!-- | }}<!-- | ||
Zeile 72: | Zeile 81: | ||
-->{{#if:{{{article}}} | -->{{#if:{{{article}}} | ||
− | | < | + | | <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 = {{{ | + | |pop = {{#iferror: {{{pop}}} | }} |
− | |elevation = {{{ | + | |elevation = {{#iferror: {{{elevation}}} | }} |
|dim = {{{dim}}} | |dim = {{{dim}}} | ||
− | | | + | |dim_safe = {{{dim_safe}}} |
|region = {{{region}}} | |region = {{{region}}} | ||
− | |label = | + | |name = <!-- Artikelkoordinate ohne title-Parameter ??? --> |
− | |tooltip = <!-- | + | |label = ja |
− | | | + | |trenner = ;  <!-- „; “ --> |
+ | |tooltip = <!-- kein Tooltip --> | ||
+ | <!--|ttf = wird eh nicht ausgewertet --> | ||
+ | |datei = <!-- Artikelkoordinate immer als Text --> | ||
+ | |format = <!-- Artikelkoordinate nie in sort-Format --> | ||
|0 = | |0 = | ||
|1 = DMS | |1 = DMS | ||
Zeile 93: | Zeile 106: | ||
|CH1903|CH1903/DMS|DMS/CH1903= CH1903 | |CH1903|CH1903/DMS|DMS/CH1903= CH1903 | ||
|OSGB36|OSGB36/DMS|DMS/OSGB36= <!--OSGB36--> | |OSGB36|OSGB36/DMS|DMS/OSGB36= <!--OSGB36--> | ||
− | |UTM|UTM/DMS|DMS/UTM= | + | |UTM|UTM/DMS|DMS/UTM= UTM |
|#default= {{#titleparts:{{#if:{{{default}}} | |#default= {{#titleparts:{{#if:{{{default}}} | ||
| {{{default}}} | | {{{default}}} | ||
− | | {{ | + | | {{CoordinateDefault|{{{region}}} }} |
}}|1|2}} | }}|1|2}} | ||
}} | }} | ||
− | }}</ | + | }}</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 [[]]. |