Vorlage:Lead/Inner: Unterschied zwischen den Versionen
Aus Offene Naturführer
(semantic properties are back; fix for resulttext without result-link case) |
|||
Zeile 15: | Zeile 15: | ||
-->|<!-- new output separator | -->|<!-- new output separator | ||
-->}}<!-- | -->}}<!-- | ||
− | END -->}} | + | END -->}}{{ |
− | + | #if: {{{synonyms}}}<!-- | |
THEN-->| [[Synonymliste:: {{StripFormatting |{{{synonyms}}}}}| ]]<!-- | THEN-->| [[Synonymliste:: {{StripFormatting |{{{synonyms}}}}}| ]]<!-- | ||
− | END -->}} | + | END -->}}{{ |
− | + | ||
− | + | #if: {{{scientificname}}}<!-- | |
THEN-->|[[Wissenschaftlicher Name::{{StripFormatting | {{{scientificname}}}}}| ]]<!-- | THEN-->|[[Wissenschaftlicher Name::{{StripFormatting | {{{scientificname}}}}}| ]]<!-- | ||
END -->}}<!-- | END -->}}<!-- | ||
Zeile 38: | Zeile 38: | ||
// THEN 2nd/3rd/etc lead in a couplet, normal start | // THEN 2nd/3rd/etc lead in a couplet, normal start | ||
-->|{{#vardefine: decisiontreeAlternative|{{#expr: {{#var: decisiontreeAlternative}}+1}}}}<!-- | -->|{{#vardefine: decisiontreeAlternative|{{#expr: {{#var: decisiontreeAlternative}}+1}}}}<!-- | ||
− | --><tr id="L{{{keyID}}}_{{{leadID}}}_{{#var:decisiontreeAlternative}}_row" class="dt-row" | + | --><tr id="L{{{keyID}}}_{{{leadID}}}_{{#var:decisiontreeAlternative}}_row" class="dt-row">{{ |
− | + | #if:{{{parentlead}}}<!-- THEN: indent 2 columns -->|<td></td><td></td>}} | |
− | + | <td class="dt-nodeid">{{{displayID}}}</td><!-- | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
// ELSE first lead: | // ELSE first lead: | ||
-->|{{#if: {{#ifeq: 0|{{#var: decisiontreePreviousCouplet}}|FIRSTCOUPLET|}}{{{parentlead}}}<!-- | -->|{{#if: {{#ifeq: 0|{{#var: decisiontreePreviousCouplet}}|FIRSTCOUPLET|}}{{{parentlead}}}<!-- | ||
// THEN: no spacer row before first couplet or nested subkeys | // THEN: no spacer row before first couplet or nested subkeys | ||
− | + | -->|<!-- // nothing | |
// ELSE: insert spacer row | // ELSE: insert spacer row | ||
− | + | -->|<tr class="dt-hspacer"><td colspan="6"></td></tr><!-- | |
− | + | -->}}{{ | |
− | + | #vardefine: decisiontreePreviousCouplet|{{{leadID}}}}}{{ | |
− | + | #vardefine: decisiontreeAlternative|1}}{{ | |
− | + | #if: {{{subheading}}}<!-- | |
− | + | ||
-->|<tr class="dt-subheading"><!-- | -->|<tr class="dt-subheading"><!-- | ||
--><td colspan="6" style="font-weight:bold;padding:0.5em 0.75em 0.3em 0.75em; <!-- | --><td colspan="6" style="font-weight:bold;padding:0.5em 0.75em 0.3em 0.75em; <!-- | ||
Zeile 69: | Zeile 64: | ||
--></tr><!-- | --></tr><!-- | ||
--><tr class="dt-hspacer"><td></td></tr><!-- | --><tr class="dt-hspacer"><td></td></tr><!-- | ||
− | + | // END subheading: | |
-->}}<!-- | -->}}<!-- | ||
// Next column is lead id for first alternative. | // Next column is lead id for first alternative. | ||
− | --><tr id="L{{{keyID}}}_{{{leadID}}}_row" class="dt-row" | + | --><tr id="L{{{keyID}}}_{{{leadID}}}_row" class="dt-row">{{ |
− | + | #if:{{{parentlead}}}<!-- THEN: indent 2 columns -->|<td></td><td></td>}} | |
− | + | <td id="L{{{keyID}}}_{{{leadID}}}" class="dt-nodeid">{{{displayID}}}</td><!-- | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
// END PART 1, Manage spacer rows and subheadings above a lead row | // END PART 1, Manage spacer rows and subheadings above a lead row | ||
-->}}<!-- | -->}}<!-- | ||
Zeile 93: | Zeile 84: | ||
--><span class="leadspan">{{Trim|1={{{statement}}}}} </span><!-- | --><span class="leadspan">{{Trim|1={{{statement}}}}} </span><!-- | ||
// add mw-collapsible mechanism | // add mw-collapsible mechanism | ||
− | -->{{#if: | + | -->{{#if: {{{detailtext}}}{{{image m}}} <!-- |
// THEN create custom toggle-link for "more…" | // THEN create custom toggle-link for "more…" | ||
-->|<span class="leadspan noprint mw-customtoggle-L{{{keyID}}}{{{leadID}}}{{#var:decisiontreeAlternative}}row"></span>}}<!-- | -->|<span class="leadspan noprint mw-customtoggle-L{{{keyID}}}{{{leadID}}}{{#var:decisiontreeAlternative}}row"></span>}}<!-- | ||
Zeile 128: | Zeile 119: | ||
-->|{{#if: {{{commonnames}}}<!-- | -->|{{#if: {{{commonnames}}}<!-- | ||
-->|<span class="commonnames"> {{Lead/MakeCommaBreakingList | listtext={{{commonnames}}} }}<!-- | -->|<span class="commonnames"> {{Lead/MakeCommaBreakingList | listtext={{{commonnames}}} }}<!-- | ||
− | DEBUG: NEXT WAS: {{#if: {{{resulttext}}} | –| }}</span> // CHECK WHETHER OK WITHOUT | + | // DEBUG: NEXT WAS: {{#if: {{{resulttext}}} | –| }}</span> // CHECK WHETHER OK WITHOUT |
--> –</span><!-- (no additional space after ndash!) | --> –</span><!-- (no additional space after ndash!) | ||
-->}}<!-- | -->}}<!-- | ||
Zeile 142: | Zeile 133: | ||
-->|[{{{resultlink}}} {{{resulttext}}}]<!-- | -->|[{{{resultlink}}} {{{resulttext}}}]<!-- | ||
// ELSE wiki link or result-text-only (non-link). | // ELSE wiki link or result-text-only (non-link). | ||
− | + | -->|{{#if: {{{resultlink}}}<!-- | |
// THEN | // THEN | ||
-->|[[{{{resultlink}}}|{{{resulttext}}}]]<!-- | -->|[[{{{resultlink}}}|{{{resulttext}}}]]<!-- |
Version vom 3. September 2012, 13:54 Uhr
[Erstellen]
Dokumentation der Vorlage