Vorlage:CoordinateMain: Unterschied zwischen den Versionen
Aus KKWiki
Zur Navigation springenZur Suche springen✓ (Diskussion) K (erster fix) |
K (30 Versionen) |
||
(30 dazwischenliegende Versionen von 8 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}}} | ||
− | |label = {{ | + | |name = {{{name}}} |
− | | | + | |label = <!-- zweites Format nicht bezeichnen --> |
− | + | |trenner =  ( | |
− | |0 = {{#switch: {{uc:{{ | + | |tooltip = {{{tooltip}}} |
− | |<!--leer--> |OSGB36 | + | |ttf = {{{ttf}}} |
− | |ICON0= | + | |format = {{#if: {{{sortkey}}} |sortable }} |
− | |ICON = | + | |datei = {{#switch: {{padleft:|5|{{{text}}}}}<!-- {{NAMESPACE:{{{text}}}}} funktioniert mit {{!}} nicht --> |
− | |ICON1=<sup> | + | | ICON2 = Datei:Erioll world.svg{{!}}15px{{!}}alt=Welt-Icon |
+ | | Datei = {{{text}}} | ||
+ | }} | ||
+ | |0 = {{#switch: {{uc:{{#titleparts:{{{text}}}|1|1}}}} | ||
+ | |<!--leer--> |OSGB36<!--nicht implementiert-->|DMS|DM|DEC|CH1903|UTM= <!--leer--> | ||
+ | |ICON0=⊙ | ||
+ | |ICON =⦁ | ||
+ | |ICON1=<sup>▼</sup> | ||
|#default= {{{text}}} | |#default= {{{text}}} | ||
}} | }} | ||
− | |1 = {{#switch: {{uc:{{ | + | |1 = {{#switch: {{uc:{{#titleparts:{{{text}}}|1|1}}}} |
− | |<!--leer-->={{#titleparts: | + | |<!--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:{{ | + | |2 = {{#switch: {{uc:{{#titleparts:{{{text}}}|1|2}}}} |
− | |<!--leer-->= {{#if:{{ | + | |<!--leer-->= {{#if: {{{default}}} <!-- kein erster Teil --> |
+ | | {{#titleparts:{{{default}}}|1|2}} | ||
+ | }} | ||
|DMS= DMS | |DMS= DMS | ||
|DEC= DEC | |DEC= DEC | ||
|CH1903= CH1903 | |CH1903= CH1903 | ||
− | <!-- | | + | |UTM= UTM |
+ | <!--|OSGB36 = nicht implementiert--> | ||
}} | }} | ||
}}</span> | }}</span> | ||
− | }} | + | }}<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 70: | 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 ??? --> |
− | | | + | |label = ja |
− | | | + | |trenner = ;  <!-- „; “ --> |
− | |1 =DMS | + | |tooltip = <!-- kein Tooltip --> |
− | |2 ={{#switch: {{uc:{{{article}}}}} | + | <!--|ttf = wird eh nicht ausgewertet --> |
+ | |datei = <!-- Artikelkoordinate immer als Text --> | ||
+ | |format = <!-- Artikelkoordinate nie in sort-Format --> | ||
+ | |0 = | ||
+ | |1 = DMS | ||
+ | |2 = {{#switch: {{uc:{{{article}}}}} | ||
|DMS|DM= <!--leer--> | |DMS|DM= <!--leer--> | ||
|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:{{ | + | |#default= {{#titleparts:{{#if:{{{default}}} |
+ | | {{{default}}} | ||
+ | | {{CoordinateDefault|{{{region}}} }} | ||
+ | }}|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, 22:20 Uhr
Diese Seite ist eine Untervorlage von [[]]. |