Vorlage:Decision Horizontal: Unterschied zwischen den Versionen
K (+internal parameter togglekey for mw-customtoggle) |
K (Version 0.8 Adding “scientific name”, “togglekey”, adding semantic properties for common names, synonyms and scientific name) |
||
Zeile 1: | Zeile 1: | ||
− | <noinclude>Version 0.7 | + | <noinclude><div class="toccolours" style="width:800px"> |
− | + | <div class="mw-collapsible"> | |
+ | Version 0.8 | ||
+ | <blockquote class="mw-collapsible-content"> | ||
+ | Adding “scientific name”, “togglekey”, changed collapsible mechanism to use MediaWiki’s, adding semantic properties for common names, synonyms and scientific name | ||
+ | </blockquote> | ||
+ | </div> | ||
+ | <div class="mw-collapsible mw-collapsed"> | ||
+ | Version 0.7 and before | ||
+ | <blockquote class="mw-collapsible-content"> | ||
+ | Adding intro text and intro text style! 0.6: support for expandable detail text and images (see also [[Template:Decision Horizontal/Result]]). Older: Supporting "hide id", "common names" and "result text"; if only 2 or 3 alternatives are present, the columns will be formatted to have equal width! | ||
+ | </blockquote> | ||
+ | </div> | ||
+ | </div> | ||
{{Documentation}} | {{Documentation}} | ||
{{DEFAULTSORT: {{PAGENAME}} }} | {{DEFAULTSORT: {{PAGENAME}} }} | ||
Zeile 165: | Zeile 177: | ||
| result text={{{result text 1|}}} | | result text={{{result text 1|}}} | ||
| result qualifier={{{resultqualifier 1|}}}{{{result qualifier 1|}}} | | result qualifier={{{resultqualifier 1|}}}{{{result qualifier 1|}}} | ||
+ | | scientific name={{{scientific name 1|}}} | ||
| common names={{{common names 1|}}} | | common names={{{common names 1|}}} | ||
+ | | synonyms={{{synonyms 1|}}} | ||
| next={{{next 1|}}} | | next={{{next 1|}}} | ||
| detailtext = {{#if: {{{synonyms 1|}}} |<span class="synonyms">(= {{{synonyms 1}}})</span><br />}}<!-- | | detailtext = {{#if: {{{synonyms 1|}}} |<span class="synonyms">(= {{{synonyms 1}}})</span><br />}}<!-- | ||
Zeile 235: | Zeile 249: | ||
| result text={{{result text 2|}}} | | result text={{{result text 2|}}} | ||
| result qualifier={{{resultqualifier 2|}}}{{{result qualifier 2|}}} | | result qualifier={{{resultqualifier 2|}}}{{{result qualifier 2|}}} | ||
+ | | scientific name={{{scientific name 2|}}} | ||
| common names={{{common names 2|}}} | | common names={{{common names 2|}}} | ||
+ | | synonyms={{{synonyms 2|}}} | ||
| next={{{next 2|}}} | | next={{{next 2|}}} | ||
| detailtext = {{ | | detailtext = {{ | ||
Zeile 308: | Zeile 324: | ||
| result text={{{result text 3|}}} | | result text={{{result text 3|}}} | ||
| result qualifier={{{resultqualifier 3|}}}{{{result qualifier 3|}}} | | result qualifier={{{resultqualifier 3|}}}{{{result qualifier 3|}}} | ||
+ | | scientific name={{{scientific name 3|}}} | ||
| common names={{{common names 3|}}} | | common names={{{common names 3|}}} | ||
+ | | synonyms={{{synonyms 3|}}} | ||
| next={{{next 3|}}} | | next={{{next 3|}}} | ||
| detailtext = {{ | | detailtext = {{ | ||
Zeile 381: | Zeile 399: | ||
| result text={{{result text 4|}}} | | result text={{{result text 4|}}} | ||
| result qualifier={{{resultqualifier 4|}}}{{{result qualifier 4|}}} | | result qualifier={{{resultqualifier 4|}}}{{{result qualifier 4|}}} | ||
+ | | scientific name={{{scientific name 4|}}} | ||
| common names={{{common names 4|}}} | | common names={{{common names 4|}}} | ||
+ | | synonyms={{{synonyms 4|}}} | ||
| next={{{next 4|}}} | | next={{{next 4|}}} | ||
| detailtext = {{ | | detailtext = {{ | ||
Zeile 454: | Zeile 474: | ||
| result text={{{result text 5|}}} | | result text={{{result text 5|}}} | ||
| result qualifier={{{resultqualifier 5|}}}{{{result qualifier 5|}}} | | result qualifier={{{resultqualifier 5|}}}{{{result qualifier 5|}}} | ||
+ | | scientific name={{{scientific name 5|}}} | ||
| common names={{{common names 5|}}} | | common names={{{common names 5|}}} | ||
+ | | synonyms={{{synonyms 5|}}} | ||
| next={{{next 5|}}} | | next={{{next 5|}}} | ||
| detailtext = {{ | | detailtext = {{ | ||
Zeile 527: | Zeile 549: | ||
| result text={{{result text 6|}}} | | result text={{{result text 6|}}} | ||
| result qualifier={{{resultqualifier 6|}}}{{{result qualifier 6|}}} | | result qualifier={{{resultqualifier 6|}}}{{{result qualifier 6|}}} | ||
+ | | scientific name={{{scientific name 6|}}} | ||
| common names={{{common names 6|}}} | | common names={{{common names 6|}}} | ||
+ | | synonyms={{{synonyms 6|}}} | ||
| next={{{next 6|}}} | | next={{{next 6|}}} | ||
| detailtext = {{ | | detailtext = {{ | ||
Zeile 599: | Zeile 623: | ||
| result text={{{result text 7|}}} | | result text={{{result text 7|}}} | ||
| result qualifier={{{resultqualifier 7|}}}{{{result qualifier 7|}}} | | result qualifier={{{resultqualifier 7|}}}{{{result qualifier 7|}}} | ||
− | | common names={{{common names 7|}}}| next={{{next 7|}}} | + | | scientific name={{{scientific name 7|}}} |
+ | | common names={{{common names 7|}}} | ||
+ | | synonyms={{{synonyms 7|}}}| next={{{next 7|}}} | ||
| detailtext = {{ | | detailtext = {{ | ||
#if: {{{synonyms 7|}}} |<span class="synonyms">(= {{{synonyms 7}}})</span><br /> | #if: {{{synonyms 7|}}} |<span class="synonyms">(= {{{synonyms 7}}})</span><br /> | ||
Zeile 671: | Zeile 697: | ||
| result text={{{result text 8|}}} | | result text={{{result text 8|}}} | ||
| result qualifier={{{resultqualifier 8|}}}{{{result qualifier 8|}}} | | result qualifier={{{resultqualifier 8|}}}{{{result qualifier 8|}}} | ||
+ | | scientific name={{{scientific name 8|}}} | ||
| common names={{{common names 8|}}} | | common names={{{common names 8|}}} | ||
+ | | synonyms={{{synonyms 8|}}} | ||
| next={{{next 8|}}} | | next={{{next 8|}}} | ||
| detailtext = {{ | | detailtext = {{ |
Version vom 30. März 2012, 17:05 Uhr
Version 0.8
Adding “scientific name”, “togglekey”, changed collapsible mechanism to use MediaWiki’s, adding semantic properties for common names, synonyms and scientific name
Version 0.7 and before
Adding intro text and intro text style! 0.6: support for expandable detail text and images (see also Template:Decision Horizontal/Result). Older: Supporting "hide id", "common names" and "result text"; if only 2 or 3 alternatives are present, the columns will be formatted to have equal width!
Inhaltsverzeichnis
Template parameters (Version 0.8)
-
subheading
: text of the subheading -
subheadingstyle
: colored bars with text above selected couplets, internal grouping: either CSS properties or one of “Green”, “Orange”, “BigOrange”, “BigGreen”, “Simple” (no border, no background); “Orange” color is the default. -
intro text
: a text common to all leads of the decision, e.g. a prompt (“Select the kind of leaf margin”), a question (“Which kind of leaf margin do you have?”) or a shared character text (“leaf margin:”). Is the equivalent to Template:Lead_Question. -
intro text style
: CSS style; always centerd unless defined otherwise, e.g.intro text style = text-align:left;
-
id
: 2 (the couplet id)hide id = true
gets the displayed id suppressed, anything else will display (provided primarily for single-couplet decisions) -
image 1a … image 1e
/image 8a … image 8e
: File:Xy.jpgimages 1 resize
/images 8 resize
: default is ? (not yet implemented) -
caption 1a … caption 1e
/caption 8a … caption 8e
: File:Xy.jpg -
label 1a … label 1e
/label 8a … label 8e
: image label -
lead 1
/lead 8
: text characterising the decision for a taxon, e.g. “flowers green”
NOTE: the lead text may be missing, if images are sufficient, or if decision is based on the result text alone, like a choice between alternative keys -
alt 1
/alt 8
: a, b, etc. This is optional, enabling references from text -
next 1
/next 8
: 4 (next id) -
result 1
/result 8
: “Geranium pratense” (a wiki page) -
result text 1
/result text 8
:''G. pratense''
becomes G. pratense. Optional display text, if text of the result itself is not suitable -
result qualifier 1
/result qualifier 8
: non-linking qualifiers like “females”, “♀♀” or “3 species” -
common names 1
/common names 8
: common names or vernacular names -
scientific name 1
/scientific name 8
: the scientific name (it is meant to be only one, use synonyms as well)
Expandable details
- synonyms 1 - synonyms 8
- description 1 - description 8
- occurrence 1 - occurrence 8
- remarks 1 - remarks 8
- image 1j (k,l,m,n,o,p,q,r) - image 8j (k,l,m,n,o,p,q,r)
- extraimages 1 width, extraimages 1 height - extraimages 8 width, extraimages 8 height: 100px (default)
- caption 1j (k,l,m,n,o,p,q,r) - caption 8j (k,l,m,n,o,p,q,r): corresponding image captions
- caption lines 1/1a-1r - caption lines 8/8a-8r: approximately used caption lines
Note: the horizontal decision template is created so that it can be used together with normal, row-based decision templates (“vertical”). For this reason, the outer table structure is aligned to be combinable with a 4 column table
Usage
Test of key: (Some parts are from a Lamium key to demonstrate the potential to mix between the side-by-side and leads-in-line arrangement.)
1 |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
Test couplet 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
2 | Which colors have body and tail?
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | 5 |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | ’ |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | ’’ |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | ’’’ |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | ’’’’ |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | ’’’’ |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | x |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | y |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
6 | 6 (5) |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
6 | ’ |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
3 |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
4 |
|
A second key, which can be linked from the first one:
1 | 1 |
| |||||||
1 | ’ |
| |||||||
1 | ’’ |
|
Technical notes
DEPRECATED
- resultqualifier
See also
Single Access Key, Lead style: Template:Key Start and Template:Lead