|
|
| (4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) |
| Zeile 1: |
Zeile 1: |
| == Einzelwerte selbtätig übersetzen ==
| | {{#ask: [[Aufgabe::~*Datenfeld IPEN z.Z. unüberarbeitbar*]] |
| | |?Letzte Änderung |
| | |?Aufgabe |
| | }} |
|
| |
|
| Die Spalte „geschätzte Hangneigung“ soll aus der „Sammeldaten“-Beispieltabelle selbtätig übersetzt werden, eingetragene Werte seien diese:
| |
|
| |
|
| {| class="tabellenblatt"
| | == Test: Abfragen als Navigationsreihe (Seite vorher, nachher) == |
| |- class="anzeige-zell-spalten"
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |-
| |
| |
| |
| ! …
| |
| ! geschätzte Hangneigung
| |
| ! …
| |
| |-
| |
| | || … || 0-5% || …
| |
| |-
| |
| | || … || 11-20% || …
| |
| |-
| |
| | || … || 0-5% || …
| |
| |}
| |
| <div style="display:inline-block;margin-left:1em;border:2px solid #ccc;border-top:0 none;font-weight:bold; padding: 0 0.5em;color:brown"> Sammeldaten</div>
| |
|
| |
|
| In einer gesonderten Übersetzungstabelle hält man die Zuordnungen der vorhandenen und gewünschten Werte vorrätig, die man übersetzen will, dies können auch Übesetzungen in andere Sprachen sein, je nach Belieben:
| | Siehe Doku https://www.semantic-mediawiki.org/wiki/Help:Selecting_pages |
| {| class="tabellenblatt"
| |
| |- class="anzeige-zell-spalten"
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |-
| |
| |
| |
| ! style="text-align:left" | Feldbeschreibung
| |
| ! Wert1
| |
| ! Wert2
| |
| ! Wert3
| |
| ! Wert4
| |
| ! Wert5
| |
| ! Wert6
| |
| ! Wert7
| |
| ! Wert8
| |
| ! …
| |
| |-
| |
| |
| |
| | exposition
| |
| | N
| |
| | S
| |
| | E
| |
| | W
| |
| | NE
| |
| | NW
| |
| | SE
| |
| | SW
| |
| |
| |
| |-
| |
| |
| |
| | vorherrschende Himmelsrichtung<br>(ersetzt)
| |
| | N
| |
| | S
| |
| | O
| |
| | W
| |
| | NO
| |
| | NW
| |
| | SO
| |
| | SW
| |
| |
| |
| |-
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |-
| |
| |
| |
| | Hangneigung
| |
| | style="color:blue" | Keine Angabe
| |
| | style="color:blue" | 0-5%
| |
| | style="color:blue" | 6-10%
| |
| | style="color:blue" | 11-20%
| |
| | style="color:blue" | 21-30%
| |
| | style="color:blue" | >30%
| |
| |
| |
| |
| |
| |
| |
| |-
| |
| |
| |
| | Hangneigung (ersetzt)
| |
| | style="color:green" | n.a. (nichts angegeben)
| |
| | style="color:green" | Eben (0-5%)
| |
| | style="color:green" | Wellig (6-10%)
| |
| | style="color:green" | Hügelig (11-20%)
| |
| | style="color:green" | Moderat (21-30%)
| |
| | style="color:green" | Steil (>30%)
| |
| |
| |
| |
| |
| |
| |
| |-
| |
| |
| |
| | Slope (return values)
| |
| | n.a. (not available)
| |
| | level (0-5%)
| |
| | wavy (6-10%)
| |
| | rolling (11-20%)
| |
| | moderate (21-30%)
| |
| | steep (>30%)
| |
| |
| |
| |
| |
| |
| |
| |}
| |
| <div style="display:inline-block;margin-left:1em;border:2px solid #ccc;border-top:0 none;font-weight:bold; padding: 0 0.5em;color:green"> Datenwertübersetzung</div>
| |
|
| |
|
| Das selbtätige Suchen und zugeordnete Übersetzen bewirkt man mit der allg. Formel:
| | {{#ask: [[Kategorie:Verantwortungsarten]]|format=count |
| <div class="pre-schlicht"> | | |intro=[[:Kategorie:Verantwortungsarten]] Seitenzahl: }} |
| XVERWEIS(<span style="color:brown">HIERWERT-suchen</span>; <span style="color:green">Übersetzung-</span><span style="color:blue">SUCH-Bereich</span>; <span style="color:green">Übersetzung-</span><span style="color:green">GEFUNDEN-Bereich</span>(=Rückgabe); wenn-nich-gefunden)
| | * {{#ask: [[Kategorie:Verantwortungsarten]] [[<:Acer pseudoplatanus]] | format=count |
| </div> | | |intro=Die wievielte Seite ist <code><:Acer pseudoplatanus</code>? – Ergebnis:  |
| … und in der Bericht-Beispieltabelle …
| | |outro= (=erste Seite) |
| | }} |
| | ** {{#ask: [[Kategorie:Verantwortungsarten]] [[>:Acer pseudoplatanus]] | offset= {{#expr: {{#ask: [[Kategorie:Verantwortungsarten]]|format=count}} - 1 }} |limit=1 | searchlabel= |intro=Seite vor Acer pseudoplatanus <code>(>:Acer pseudoplatanus) & (limit=1 (offset=n - 1 ) )</code>:  }} |
| | ** {{#ask: [[Kategorie:Verantwortungsarten]] [[>:Acer pseudoplatanus]] | offset=1 |limit=1 | searchlabel= |intro=Seite nach Acer pseudoplatanus <code>(>:Acer pseudoplatanus) & (limit=1 (offset=1 ) )</code>: }} |
| | * {{#ask: [[Kategorie:Verantwortungsarten]] [[<:Arnica montana]] | format=count |
| | |intro=Die wievielte Seite ist <code><:Arnica montana</code>? – Ergebnis:  |
| | |outro= (=inmitten von anderen Seiten) |
| | }} |
| | * <code><:Arnica montana</code> {{#ask: [[Kategorie:Verantwortungsarten]] [[<:Arnica montana]] }} |
| | * <code>>:Arnica montana</code> {{#ask: [[Kategorie:Verantwortungsarten]] [[>:Arnica montana]] | limit=5|searchlabel=|outro=, … usw. }} |
| | ** {{#ask: [[Kategorie:Verantwortungsarten]] [[<:Arnica montana]] | offset={{#expr: {{#ask: [[Kategorie:Verantwortungsarten]] [[<:Arnica montana]] | format=count}} - 2}} | limit=1 | searchlabel= |intro=Seite vor Arnica montana <code>(limit=1 ( offset= i(<:Arnica montana) - 2 )</code>: }} |
| | ** {{#ask: [[Kategorie:Verantwortungsarten]] [[>:Arnica montana]] | offset=1 |limit=1 | searchlabel= |intro=Seite nach Arnica montana <code>(>:Arnica montana) & (limit=1 (offset=1 ) )</code>: }} |
|
| |
|
| <table><!--
| | * <code><:Alchemilla longituba</code>: {{#ask: [[Kategorie:Verantwortungsarten]] [[<:Alchemilla longituba]] }} |
| --><tr><!--
| | ** <code>offset=1</code> {{#ask: [[Kategorie:Verantwortungsarten]] [[<:Alchemilla longituba]] | offset=1 }} |
| --><td>
| | ** <code>offset=2</code> {{#ask: [[Kategorie:Verantwortungsarten]] [[<:Alchemilla longituba]] | offset=2 }} |
| {| class="tabellenblatt"
| | ** <code>offset=(n - 2)</code> {{#ask: [[Kategorie:Verantwortungsarten]] [[<:Alchemilla longituba]] | offset={{#expr: {{#ask: [[Kategorie:Verantwortungsarten]]|format=count}} - 2}} }} |
| |- class="anzeige-zell-spalten"
| | ** <code>offset=(n + 2)</code> {{#ask: [[Kategorie:Verantwortungsarten]] [[<:Alchemilla longituba]] | offset={{#expr: {{#ask: [[Kategorie:Verantwortungsarten]]|format=count}} + 2}} }} |
| |
| | * <code><:Arnica montana</code> {{#ask: [[Kategorie:Verantwortungsarten]] [[<:Arnica montana]] }} |
| |
| |
| | style="background-color:green" |
| |
| |
| |
| |-
| |
| |
| |
| ! …
| |
| ! Hangneigung
| |
| ! …
| |
| |-
| |
| | style="background-color:green" |
| |
| | …
| |
| | Eben (0-5%)
| |
| | …
| |
| |-
| |
| | || … || Hügelig (11-20%) || …
| |
| |-
| |
| | || … || Eben (0-5%) || …
| |
| |}
| |
| <div style="display:inline-block;margin-left:1em;border:2px solid #ccc;border-top:0 none;font-weight:bold; padding: 0 0.5em;"> Bericht </div>
| |
| </td><!--
| |
| --><td>
| |
| … genauer in Zelle <code>Bericht.B2</code> kommt die Formel dann zur Wirkung:
| |
| <div class="pre-schlicht">
| |
| =XVERWEIS(<span style="color:brown">Sammeldaten</span>!B2; <span style="color:green">Datenwertübersetzung</span>!<span style="color:blue">$B$5:$G$5</span>; <span style="color:green">Datenwertübersetzung</span>!<span style="color:green">$B$6:$G$6</span>; Sammeldaten!B2)
| |
| </div>
| |
| </td><!--
| |
| --></tr><!--
| |
| --></table>
| |
| | |
| … und notfalls ergänzt man die Formel umschließend noch mit einer <code>ISTLEER(…)</code>-PRÜFUNG:
| |
| <div class="pre-schlicht">
| |
| =WENN(ISTLEER(<span style="color:brown">Sammeldaten</span>!B2);""; XVERWEIS(…) )
| |
| </div>
| |
| | |
| Dasselbe läßt sich bewirken mit englischen Übersetzungen.
| |
| | |
| Weitergedacht läßt sich <code>XVERWEIS(…)</code> beim Zusammenschluß von Einzeltabellen anwenden – z.B. für Zeitreihen, wo es eine Stätte, Örtlichkeit gibt, die ja am Ort verbleibt, und die Zeitreihe in der Daten fortlaufend aufgenommen werden und sich Daten ändern. So ließe sich eine Arten-Spalte, aus der Tabelle Ansiedlungstätte (neben anderen Infos zur Ansiedlungsstätte usw.) mit einer fortlaufenden Tabelle Beobachtungen_fortlaufend in Zusammenhang bringen über sinngemäß:
| |
| <div class="pre-schlicht">
| |
| =XVERWEIS(Datenschlüssel; Ansiedlungsstätte.Datenschlüssel; Ansiedlungsstätte.Art-Spalte (=Rückgabe); falls-nicht-gefunden)
| |
| </div>
| |
| … wobei der Datenschlüssel nur in der Ansiedlungsstätte festgelegt wird, und dieser in anderen Tabellen eingetragen werden kann, um vermittels <code>XVERWEIS(…)</code> beliebige Informationen der Ansiedlungsstätte zusammenzugliedern. Auf diese Weise kann man Ort- und Zeitereignis-Daten sondern und trotzdem zusammen auswerten.
| |
| | |
| | |
| | |
| <syntaxhighlight lang="css">
| |
| .tabellenblatt {
| |
| border-collapse: collapse;
| |
| }
| |
| .tabellenblatt td, .tabellenblatt th {
| |
| border: 1px solid #ccc;
| |
| min-width: 1em;
| |
| /* height: 3ex;*/
| |
|
| |
| }
| |
| .tabellenblatt th {
| |
| border-bottom-color: black;
| |
| font-weight: bold;
| |
| text-align: center;
| |
| }
| |
| | |
| .tabellenblatt {
| |
| counter-reset: zeilenzahl;
| |
| counter-reset: spaltenzahl;
| |
| }
| |
| | |
| .tabellenblatt td:first-of-type {
| |
| background-color: #ccc;
| |
| position: relative;
| |
| counter-increment: zeilenzahl;
| |
| }
| |
| | |
| .tabellenblatt td:first-of-type::after {
| |
| content: counter(zeilenzahl, decimal);
| |
| position: absolute;
| |
| top: 0;
| |
| right: 0.12em;
| |
| /* background: red; */
| |
| color: white;
| |
| }
| |
| | |
| .tabellenblatt tr.anzeige-zell-spalten td {
| |
| background-color: #ccc;
| |
| position: relative;
| |
| counter-increment: spaltenzahl;
| |
| height: 1em;
| |
| }
| |
| | |
| .tabellenblatt tr.anzeige-zell-spalten td::after {
| |
| content: counter(spaltenzahl, upper-alpha);
| |
| position: absolute;
| |
| top: 0;
| |
| right: 0.12em;
| |
| /* background: red; */
| |
| color: white;
| |
| }
| |
| </syntaxhighlight>
| |
| | |
| * <code><Intern:Alchemilla longituba</code>: {{#ask: [[Kategorie:Verantwortungsarten]] [[<Intern:Alchemilla longituba]] }} | |
| ** <code>offset=1</code> {{#ask: [[Kategorie:Verantwortungsarten]] [[<Intern:Alchemilla longituba]] | offset=1 }} | |
| ** <code>offset=2</code> {{#ask: [[Kategorie:Verantwortungsarten]] [[<Intern:Alchemilla longituba]] | offset=2 }} | |
| ** <code>offset=(n - 2)</code> {{#ask: [[Kategorie:Verantwortungsarten]] [[<Intern:Alchemilla longituba]] | offset={{#expr: {{#ask: [[Kategorie:Verantwortungsarten]]|format=count}} - 2}} }} | |
| ** <code>offset=(n + 2)</code> {{#ask: [[Kategorie:Verantwortungsarten]] [[<Intern:Alchemilla longituba]] | offset={{#expr: {{#ask: [[Kategorie:Verantwortungsarten]]|format=count}} + 2}} }} | |
| * <code><Intern:Arnica montana</code> {{#ask: [[Kategorie:Verantwortungsarten]] [[<Intern:Arnica montana]] }} | |
| ** <code>limit=2</code> {{#ask: [[Kategorie:Verantwortungsarten]] [[<Intern:Arnica montana]] | limit=2}}
| |
| ** <code>offset=3</code> {{#ask: [[Kategorie:Verantwortungsarten]] [[<Intern:Arnica montana]] | offset=3 }}
| |
| ** <code>offset=(n - 2)</code> {{#ask: [[Kategorie:Verantwortungsarten]] [[<Intern:Arnica montana]] | offset={{#expr: {{#ask: [[Kategorie:Verantwortungsarten]]|format=count}} - 2}} }}
| |
| ** <code>offset=(n + 2)</code> {{#ask: [[Kategorie:Verantwortungsarten]] [[<Intern:Arnica montana]] | offset={{#expr: {{#ask: [[Kategorie:Verantwortungsarten]]|format=count}} + 2}} }}
| |
| | |
| <!-- [[>Example page 1]] [[<Example page 3]] -->
| |
| | |
| | |
| {| style="width:100%" class="bildhoehe-hoechstens-100px"
| |
| |-
| |
| | style="text-align:left;" | [[Datei:Kennbild BMUV.png|x420px|link=|Kennbild Bundesministerium für Umweit, Naturschutz und nukleare Sicherheit]]
| |
| | style="text-align:center;" | [[Datei:Logo-BfN-DE-2022-rgb.svg|x400px|link=|Kennbild Bundesministerium für Naturschutz]]
| |
| | style="text-align:center;" | [[Datei:Wips logo.svg|x380px|link=|Kennbild botanischer Wildpflanzensch Deutschland (WIPs-De)|class=bildhoehe-hoechstens-80px]]
| |
| | style="text-align:right;" | [[Datei:Kennbild Botanischer Garten (Universität Potsdam).svg|x400px|link=|Kennbild Botanischer Garten, Universität Potsdam]]
| |
| |}
| |
| | |
| <syntaxhighlight lang="CSS">
| |
| .bildhoehe-hoechstens-100px img,
| |
| img.bildhoehe-hoechstens-100px { height:100px; width:auto; }
| |
| .bildhoehe-hoechstens-90px img,
| |
| img.bildhoehe-hoechstens-90px { height:90px; width:auto; }
| |
| .bildhoehe-hoechstens-80px img,
| |
| img.bildhoehe-hoechstens-80px { height:80px; width:auto; }
| |
| .bildhoehe-hoechstens-70px img,
| |
| img.bildhoehe-hoechstens-70px { height:70px; width:auto; }
| |
| </syntaxhighlight>
| |