Vorlage:Lead/Inner: Unterschied zwischen den Versionen
Aus Offene Naturführer
(completing new lead-ID processing) |
|||
Zeile 21: | Zeile 21: | ||
-->| #default =[[Category:Keys based on lead template]]<!-- Hidden cat for SWM form! | -->| #default =[[Category:Keys based on lead template]]<!-- Hidden cat for SWM form! | ||
− | ! ENGLISH SEMANTIC PROPERTIES NOT YET DEFINED | + | // ! ENGLISH SEMANTIC PROPERTIES NOT YET DEFINED |
− | |||
-->}}<!-- | -->}}<!-- | ||
− | |||
− | |||
− | |||
// PART 1. Spacer rows and subheadings above a lead row | // PART 1. Spacer rows and subheadings above a lead row | ||
-->{{#ifeq: {{{coupletID}}}|{{#var: decisiontreePreviousCouplet}}<!-- | -->{{#ifeq: {{{coupletID}}}|{{#var: decisiontreePreviousCouplet}}<!-- | ||
Zeile 34: | Zeile 30: | ||
--><tr id="{{{IDprefix}}}{{{coupletID}}}_{{#var:decisiontreeAlternative}}_row" class="dt-row">{{ | --><tr id="{{{IDprefix}}}{{{coupletID}}}_{{#var:decisiontreeAlternative}}_row" class="dt-row">{{ | ||
#if:{{{parentlead}}}<!-- THEN: indent 2 columns -->|<td></td><td></td>}} | #if:{{{parentlead}}}<!-- THEN: indent 2 columns -->|<td></td><td></td>}} | ||
− | <td | + | <td <!-- (td is filled and closed at end!) |
// ELSE first lead; suppress spacer row for first couplet of key or nested subkeys | // ELSE first lead; suppress spacer row for first couplet of key or nested subkeys | ||
-->|{{#if: {{#ifeq: 0|{{#var: decisiontreePreviousCouplet}}|FIRSTCOUPLET|{{{parentlead}}}}}<!-- | -->|{{#if: {{#ifeq: 0|{{#var: decisiontreePreviousCouplet}}|FIRSTCOUPLET|{{{parentlead}}}}}<!-- | ||
Zeile 62: | Zeile 58: | ||
--><tr id="{{{IDprefix}}}{{{coupletID}}}_row" class="dt-row">{{ | --><tr id="{{{IDprefix}}}{{{coupletID}}}_row" class="dt-row">{{ | ||
#if:{{{parentlead}}}<!-- THEN: indent 2 columns -->|<td></td><td></td>}} | #if:{{{parentlead}}}<!-- THEN: indent 2 columns -->|<td></td><td></td>}} | ||
− | <td id="{{{IDprefix}}}{{{coupletID}}}" | + | <td id="{{{IDprefix}}}{{{coupletID}}}" <!-- (td is filled and closed at end!) |
// END PART 1, Spacer rows and subheadings above a lead row | // END PART 1, Spacer rows and subheadings above a lead row | ||
− | -->}}<!-- | + | -->}} class="dt-nodeid">{{#ifeq:{{{withinCoupletID}}}|–|–|{{{coupletID}}}}}</td><!-- |
// PART 2. Prepare lead core. | // PART 2. Prepare lead core. | ||
// 2nd column contains either withinCoupletID = lead-differentiators (*, ', -, etc.) or backlink previous couplet. Both may be empty! | // 2nd column contains either withinCoupletID = lead-differentiators (*, ', -, etc.) or backlink previous couplet. Both may be empty! | ||
− | --><td class="leadalt">{{#ifeq:{{{withinCoupletID}}}|–||{{{withinCoupletID}}}}}{{#if:{{{leadIDbacklink}}}| [[#{{{IDprefix}}}{{{leadIDbacklink}}}|({{{leadIDbacklink}}})]]}}</td><!-- | + | --><td class="leadalt">{{ |
+ | #ifeq:{{{withinCoupletID}}}|–||{{{withinCoupletID}}}}}{{ | ||
+ | #if:{{{leadIDbacklink}}}| [[#{{{IDprefix}}}{{{leadIDbacklink}}}|({{{leadIDbacklink}}})]]}}</td><!-- | ||
// 3rd column is main statement text. Uses a nested table to allow for row-by-row variable col. width | // 3rd column is main statement text. Uses a nested table to allow for row-by-row variable col. width | ||
Zeile 89: | Zeile 87: | ||
// FIRST NESTED (= pointer to indented subkey with parentlead) in addition to result, all result-layout variants | // FIRST NESTED (= pointer to indented subkey with parentlead) in addition to result, all result-layout variants | ||
-->{{#if:{{{nested}}}<!-- | -->{{#if:{{{nested}}}<!-- | ||
− | -->|<span class="leadon"> [[#{{{IDprefix}}}{{{ | + | -->|<span class="leadon"> [[#{{{IDprefix}}}{{{coupletID}}}{{{withinCoupletID}}}{{{nested}}}| ▼▼ {{{nested}}}]] – </span><!-- |
// END if nested: | // END if nested: | ||
-->}}<!-- | -->}}<!-- |
Version vom 21. September 2012, 21:36 Uhr
See Key Start-Doc for the main documentation, Lead-Doc for recent technical changes of the Lead-templates.