Difference between revisions of "Template:Decision Horizontal/doc"
From Species-ID
m (docu “question” → “intro text”, removed “lead main”) |
m (docu up to date +/-) |
||
Line 1: | Line 1: | ||
{{Documentation/subpage}} | {{Documentation/subpage}} | ||
− | |||
− | + | == Template parameters (Version 0.7) == | |
− | * subheading | + | * <code>subheading</code>: text of the subheading |
− | * intro text | + | * <code>subheadingstyle</code>: 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. |
− | * id: | + | * <code>intro text</code>: a shared 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:”) |
− | + | * <code>intro text style</code>: CSS style; always centerd unless defined otherwise, e.g. <code>intro text style = text-align:left;</code> | |
− | * image 1a | + | * <code>id</code>: 2 (the couplet id) |
− | * caption 1a | + | : <code>hide id = true</code> gets the displayed id suppressed, anything else will display (provided primarily for single-couplet decisions) |
− | + | * <code>image 1a … image 1e</code> / <code>image 8a … image 8e</code>: File:Xy.jpg | |
− | * alt 1 | + | * <code>caption 1a … caption 1e</code> / <code>caption 8a … caption 8e</code>: File:Xy.jpg |
− | * lead 1 | + | : <code>images 1 resize</code> / <code>images 8 resize</code>: default is ? (not yet implemented) |
− | + | * <code>alt 1</code> / <code>alt 8</code>: a, b, etc. This is optional, enabling references from text | |
− | * next 1 | + | * <code>lead 1</code> / <code>lead 8</code>: text characterising the decision for a taxon, e.g. “flowers green” |
− | * result 1 | + | : 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 |
− | * result text 1 | + | * <code>next 1</code> / <code>next 8</code>: 4 (next id) |
− | * result qualifier 1 | + | * <code>result 1</code> / <code>result 8</code>: “Geranium pratense” (a wiki page) |
− | + | * <code>result text 1</code> / <code>result text 8</code>: <code><nowiki>''G. pratense''</nowiki></code> becomes ''G. pratense''. Optional display text, if text of the result itself is not suitable | |
− | * common names 1 | + | * <code>result qualifier 1</code> / <code>result qualifier 8</code>: non-linking qualifiers like “females”, “♀♀” or “3 species” |
− | Expandable details | + | * <code>common names 1</code> / <code>common names 8</code>: common names or vernacular names |
+ | |||
+ | === Expandable details === | ||
+ | |||
* synonyms 1 - synonyms 8 | * synonyms 1 - synonyms 8 | ||
* description 1 - description 8 | * description 1 - description 8 | ||
Line 25: | Line 27: | ||
* remarks 1 - remarks 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) | * image 1j (k,l,m,n,o,p,q,r) - image 8j (k,l,m,n,o,p,q,r) | ||
− | * caption 1j (k,l,m,n,o,p,q,r) - caption 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 | 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.) | 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.) | ||
Line 122: | Line 125: | ||
| subheadingstyle = Green | | subheadingstyle = Green | ||
| intro text = Which colors have body and tail? | | intro text = Which colors have body and tail? | ||
− | | | + | | introtext style = color:red;font-weight:bold; |
| id = 2 <!-- id of the decision couplet --> | | id = 2 <!-- id of the decision couplet --> | ||
Line 354: | Line 357: | ||
{{Key End}} | {{Key End}} | ||
− | |||
− | |||
− | === See also | + | == Technical notes == |
+ | {{Todo |implement "intro text" correct in the jKey history, proposed css-class intro-text something|jKey }} | ||
+ | |||
+ | DEPRECATED | ||
+ | * resultqualifier | ||
+ | |||
+ | == See also == | ||
Single Access Key, Lead style: [[Template:Key Start]] and [[Template:Lead]] | Single Access Key, Lead style: [[Template:Key Start]] and [[Template:Lead]] |
Latest revision as of 14:26, 7 September 2011
Contents
Template parameters (Version 0.7)
-
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 shared 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:”) -
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.jpg -
caption 1a … caption 1e
/caption 8a … caption 8e
: File:Xy.jpg
-
images 1 resize
/images 8 resize
: default is ? (not yet implemented)
-
alt 1
/alt 8
: a, b, etc. This is optional, enabling references from text -
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
-
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
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.)
Test (UK bumble-bees) — CREATOR | |
---|---|
(Geographic scope not specified) — Collaboration: open — Status: TEST — Edited by: (not specified)
|
1 |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Test couplet 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
2 |
Which colors have body and tail?
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | ’ |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | ’’ |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | ’’’ |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | ’’’’ |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | ’’’’ |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | x |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | y |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
6 | (5) |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
6 | ’ |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
3 |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
4 |
|
A second key, which can be linked from the first one:
Subkey Test | |
---|---|
1 |
| ||||||||
1 | ’ |
| |||||||
1 | ’’ |
|
Technical notes
DEPRECATED
- resultqualifier
See also
Single Access Key, Lead style: Template:Key Start and Template:Lead