Vorlage:Lead/Inner: Unterschied zwischen den Versionen
Aus Offene Naturführer
(Minor simplification by combining the "L" plus keyID plus leadID already in calling Template:Lead) |
|||
Zeile 1: | Zeile 1: | ||
<noinclude>'''See [[Template:Key Start/doc| Key Start-Doc]] for the main documentation, [[Template:Lead/doc| Lead-Doc]] for recent technical changes of the Lead-templates.''' | <noinclude>'''See [[Template:Key Start/doc| Key Start-Doc]] for the main documentation, [[Template:Lead/doc| Lead-Doc]] for recent technical changes of the Lead-templates.''' | ||
− | |||
− | |||
− | |||
[[Category:Single-access key templates]] | [[Category:Single-access key templates]] | ||
Zeile 103: | Zeile 100: | ||
// THEN: NEW LAYOUT RULES -> ignore commonnames+scientificname if resulttextoverride | // THEN: NEW LAYOUT RULES -> ignore commonnames+scientificname if resulttextoverride | ||
// ELSE:-> output common names even for resulttextoverride | // ELSE:-> output common names even for resulttextoverride | ||
− | -->|{{#if: {{{commonnames}}}<!-- | + | ## DEBUG: commented out for testing ## |
− | -->|<span class="commonnames"> {{Lead/MakeCommaBreakingList | listtext={{{commonnames}}} }} | + | -##->|{{#if: {{{commonnames}}}<!-##- |
− | + | -##->|<span class="commonnames"> {{Lead/MakeCommaBreakingList | listtext={{{commonnames}}} }} –</span><!-##- (no additional space after ndash!) | |
− | -->}}<!-- | + | -##->}}<!-##- |
+ | ## END DEBUG: commented out for testing ## | ||
-->}}<!-- // END scientificname | -->}}<!-- // END scientificname | ||
// ELSE: no resulttextoverride, output commonnames for both OLD and NEW LAYOUT | // ELSE: no resulttextoverride, output commonnames for both OLD and NEW LAYOUT | ||
-->|{{#if: {{{commonnames}}}<!-- | -->|{{#if: {{{commonnames}}}<!-- | ||
− | -->|<span class="commonnames"> {{Lead/MakeCommaBreakingList | listtext={{{commonnames}}} }}<!-- | + | -->|<span class="commonnames"> {{Lead/MakeCommaBreakingList | listtext={{{commonnames}}} }} –</span><!-- |
− | // DEBUG: | + | // (no additional space after ndash!) |
− | + | // DEBUG: ABOVE WAS: {{#if: {{{resulttext}}} | –| }}</span> // OK WITHOUT? | |
-->}}<!-- | -->}}<!-- | ||
// END resulttextoverride: | // END resulttextoverride: | ||
Zeile 139: | Zeile 137: | ||
// THEN (start with wrappable blank, NOT a br-if-image-sidebar present: res.qual. may just be "L.") | // THEN (start with wrappable blank, NOT a br-if-image-sidebar present: res.qual. may just be "L.") | ||
-->|<nowiki></nowiki> <span class="resultqualifier {{#ifexpr:{{#len:{{{resultqualifier}}} }} < 40|nowrap}}"> {{{resultqualifier}}}</span><!-- | -->|<nowiki></nowiki> <span class="resultqualifier {{#ifexpr:{{#len:{{{resultqualifier}}} }} < 40|nowrap}}"> {{{resultqualifier}}}</span><!-- | ||
− | // END (res.qual.) | + | // END (res.qual.), + closing span.leadresults (= nowrap-span around result+qualif.) |
− | + | -->}}</span><!-- | |
− | + | ||
− | --></span><!-- | + | |
// NESTED (= pointer to indented subkey with parentlead) in addition to result, all result-layout variants | // NESTED (= pointer to indented subkey with parentlead) in addition to result, all result-layout variants | ||
− | // Note: leadpart2 may be a "*" | + | // Note: leadpart2 may be a "*" -> forbidden in @id. BUT: some step in mediawiki will convert "*" to ".2A". OK |
− | // Note: leadpart2 could | + | // Note: leadpart2 could be backlink. -> ??? QUESTION: CURRENTLY suppressed for [ but not ( ? |
-->{{#if:{{{nested}}}<!-- | -->{{#if:{{{nested}}}<!-- | ||
− | -->|<br / | + | -->|<br /><span class="leadon"> [[#{{{leadID}}}{{ |
− | + | #ifeq:{{#sub:{{{leadpart2}}}|0|1}}|[|<!--THEN nothing | |
− | + | ||
− | + | ||
-->|<!--ELSE -->{{{leadpart2}}}<!-- | -->|<!--ELSE -->{{{leadpart2}}}<!-- | ||
-->}}{{{nested}}}| ▼▼ {{{nested}}}]]</span><!-- | -->}}{{{nested}}}| ▼▼ {{{nested}}}]]</span><!-- |
Version vom 7. September 2012, 23:42 Uhr
See Key Start-Doc for the main documentation, Lead-Doc for recent technical changes of the Lead-templates.