Vorlage:Lead/Inner: Unterschied zwischen den Versionen
Aus Offene Naturführer
(Test removal of part 0: semantic properties and categories) |
(semantic properties are back; fix for resulttext without result-link case) |
||
Zeile 2: | Zeile 2: | ||
[[Category:Single-access key templates]] | [[Category:Single-access key templates]] | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
+ | // PART 0. Semantic properties and hidden category for SMW forms | ||
+ | -->{{#switch: {{CONTENTLANGUAGE}}<!-- | ||
+ | |||
+ | // German: Deutschsprachige Attribute | ||
+ | -->|de|de-formal=[[Category:Schlüssel mit Lead-Vorlage]]<!-- Hidden cat for SMW form! | ||
+ | |||
+ | -->{{#if: {{{commonnames}}}<!-- | ||
+ | THEN-->|{{#arraymap: {{{commonnames}}}<!-- values | ||
+ | -->|,<!-- split on , | ||
+ | -->|§<!-- assign temporary variable | ||
+ | -->|[[Deutscher Name::§| ]]<!-- output | ||
+ | -->|<!-- new output separator | ||
+ | -->}}<!-- | ||
+ | END -->}}<!-- | ||
+ | |||
+ | -->{{#if: {{{synonyms}}}<!-- | ||
+ | THEN-->| [[Synonymliste:: {{StripFormatting |{{{synonyms}}}}}| ]]<!-- | ||
+ | END -->}}<!-- | ||
+ | |||
+ | -->{{#if: {{{scientificname}}}<!-- | ||
+ | THEN-->|[[Wissenschaftlicher Name::{{StripFormatting | {{{scientificname}}}}}| ]]<!-- | ||
+ | END -->}}<!-- | ||
+ | |||
+ | // English properties | ||
+ | -->| #default =[[Category:Keys based on lead template]]<!-- Hidden cat for SWM form! | ||
+ | |||
+ | ! ENGLISH SEMANTIC PROPERTIES NOT YET DEFINED | ||
+ | |||
+ | // PART 0, END switch CONTENTLANGUAGE | ||
+ | -->}}<!-- | ||
+ | |||
+ | |||
// PART 1. Manage spacer rows and subheadings above a lead row | // PART 1. Manage spacer rows and subheadings above a lead row | ||
-->{{#ifeq: {{{leadID}}}|{{#var: decisiontreePreviousCouplet}}<!-- | -->{{#ifeq: {{{leadID}}}|{{#var: decisiontreePreviousCouplet}}<!-- | ||
Zeile 109: | Zeile 141: | ||
// THEN http-link: | // THEN http-link: | ||
-->|[{{{resultlink}}} {{{resulttext}}}]<!-- | -->|[{{{resultlink}}} {{{resulttext}}}]<!-- | ||
− | // ELSE | + | // ELSE wiki link or result-text-only (non-link). |
− | --> | + | -->{{#if: {{{resultlink}}}<!-- |
− | // THEN | + | // THEN |
− | + | -->|[[{{{resultlink}}}|{{{resulttext}}}]]<!-- | |
− | // ELSE | + | // ELSE |
− | + | -->|{{{resulttext}}}<!-- | |
− | // END | + | // END resultlink |
-->}}<!-- | -->}}<!-- | ||
// END (if http-link) | // END (if http-link) |
Version vom 3. September 2012, 13:41 Uhr
[Erstellen]
Dokumentation der Vorlage