Difference between revisions of "Template:Decision Horizontal/doc"

From Species-ID
Jump to: navigation, search
m (docu “question” → “intro text”, removed “lead main”)
Line 4: Line 4:
 
Parameters : examples (Version 0.7)
 
Parameters : examples (Version 0.7)
 
* subheading, subheadingstyle (colored bars with text above selected couplets, internal grouping)
 
* subheading, subheadingstyle (colored bars with text above selected couplets, internal grouping)
* question, questionstyle (for a question-answer-style)
+
* 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:”)<br/>intro text style (CSS style; always centerd unless defined otherwise, e.g. ”<code>| intro text style=text-align:left;</code>”)
 
* id:  "2" (the couplet id)
 
* id:  "2" (the couplet id)
 
** hide id : 1 = to suppress display of id, anything else will display (provided primarily for single-couplet decisions)  
 
** hide id : 1 = to suppress display of id, anything else will display (provided primarily for single-couplet decisions)  
Line 11: Line 11:
 
** images 1 resize - images 8 resize : default is ? (not yet implemented)
 
** 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
 
* alt 1 - alt 8 :  "a", "b", etc. This is optional, enabling references from text
* lead main : a title text for a particular lead (centered above the images)
 
 
* lead 1 - lead 8 : e.g. "flowers green"
 
* lead 1 - lead 8 : e.g. "flowers green"
 
** 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)
 
** 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)
Line 122: Line 121:
 
| subheading = Test couplet 1
 
| subheading = Test couplet 1
 
| subheadingstyle = Green
 
| subheadingstyle = Green
| question = Which colors have body and tail?
+
| intro text = Which colors have body and tail?
| questionstyle = color:red;font-weight:bold;
+
| intro text style = color:red;font-weight:bold;
 
| id = 2 <!-- id of the decision couplet -->
 
| id = 2 <!-- id of the decision couplet -->
  
Line 355: Line 354:
 
{{Key End}}
 
{{Key End}}
  
 
+
=== Technical notes ===
 +
* implement "intro text" correct in the jKey
  
 
=== See also ===
 
=== See also ===

Revision as of 12:33, 7 September 2011

This is a documentation subpage for Template:Decision Horizontal (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

Parameter "subheading" is text, can be formatted with subheadingstyle, which is either css or one of "Green", "Orange", "BigOrange", "BigGreen", Simple (no border, no background); Orange is the default.

Parameters : examples (Version 0.7)

  • subheading, subheadingstyle (colored bars with text above selected couplets, internal grouping)
  • 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 : 1 = to suppress display of id, anything else will display (provided primarily for single-couplet decisions)
  • image 1a-1e - image 8a-8e : "File:Xy.jpg"
  • caption 1a-1e - caption 8a-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 : e.g. "flowers green"
    • 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"
  • result 1 - result 8 : "Geranium pratense", a wiki page
  • result text 1 - result text 8 : "G. pratense", optional display text, if result itself is not suitable
  • result qualifier 1 - result qualifier 8 : non-linking qualifiers like "females" or "♀♀"
    • Old: resultqualifier without blank is still supported
  • common names 1 to 8

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)
  • caption 1j (k,l,m,n,o,p,q,r) - caption 8j (k,l,m,n,o,p,q,r)
    • caption lines 1 - caption lines 8 or detailed with caption lines 1a, caption lines 1b, etc.
    • extraimages 1 width, extraimages 1 height - extraimages 8 width, extraimages 8 height (default: 100px)


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
  
Queen/worker
Male
  
Queen/worker
Male
  
Queen/Worker
Male
  
Queen, common form
Queen/worker, common form
  
Queen/worker
Male
  
Queen/worker
Male
a: Thorax orange brown
tail orange brown
b: Female unbanded
tail deep red
male with yellow bands
c: 1-2 yellow bands
tail orange
d: Two golden yellow bands
tail white,
buff at least at base
e: Two lemon yellow bands
tail pure white
male 2-3 yellow bands
f: Three yellow bands
tail pure white
Common carder bumblebee
Bombus pascuorum (♀♀)
Red tailed bumblebee
Bombus lapidarius
Early nesting bumblebee
Bombus pratorum
Buff tailed bumblebee
Bombus terrestris (♀♀)
  2  Garden bumblebee
Bombus hortorum
   ►► 3  
Test couplet 1
2
Which colors have body and tail?
  
Queen/worker
Male
  
Queen/worker
Male
  
Queen/Worker
Male
  
Queen, common form
Queen/worker, common form
  
Queen/worker
Male
  
Queen/worker
Male
a: Thorax orange brown
tail orange brown
b: Female unbanded
tail deep red
male with yellow bands
c: 1-2 yellow bands
tail orange
d: Two golden yellow bands
tail white,
buff at least at base
e: Two lemon yellow bands
tail pure white
male 2-3 yellow bands
f: Three yellow bands
tail pure white
Common carder bumblebee
Bombus pascuorum
Red tailed bumblebee
Bombus lapidarius
Early nesting bumblebee
Bombus pratorum
Buff tailed bumblebee
Bombus terrestris
  5  Garden bumblebee
Bombus hortorum
5
Blütenkrone weiß oder schwach gelblichweiß, Schlund mit olivfarbenen Flecken 
 Template:Lead/MakeCommaBreakingList  –  Lamium album
Krone 20-25 mm lang, Kronröhre aufwärts gebogen, innen über dem Grund mit schrägem Haarring. Staubbeutel behaart. Tragblätter der Scheinquirle 2-3mal so lang wie breit. Blätter lang, scharf gesägt, deutlich brennnesselartig. 20-50 cm. Blüte April-August.
Ruderale Staudengesellschaften, Schuttplätze, Säume, Gebüsche; gemein.
Nitrophil.
Blüte mit gebogener Röhre
a
Tafel aus Deutschlands Flora, 1796
b
Habitus
Blatt
5
Blütenkrone blassgelb bis goldgelb, Unterlippe mit rötlicher Zeichnung 
 Template:Lead/MakeCommaBreakingList  –  Galeobdolon
Blüte
Blüte
Habitus
Habitus
Tafel aus Deutschlands Flora, 1796
Tafel aus Deutschlands Flora, 1796
5’’
Blütenkrone purpurn oder rosa (sehr selten einzelne Pflanzen reinweiß, dann Schlund ohne Flecken)   ► 4
5’’’
Blütenkrone andersfarbig zum Testen (mit Seite) 
  Subkey 1 (variante 1)
5’’’’
Blütenkrone andersfarbig zum Testen (hash direkt) 
  Subkey 1 (variante 2)
5’’’’
Blütenkrone andersfarbig zum Testen (!!! direkt zum ersten Lead) 
  Subkey 1 (variante 3)
5x
Blütenkrone andersfarbig zum Testen (!!! zum beliebigen Lead auf anderer Seite) 
  Subkey 1 (variante 4)
5y
Blütenkrone andersfarbig zum Testen (!!! zu einem Schlüssel auf anderer Seite) 
  Subkey 1 (variante 5)
6 (5)
Staubbeutel kahl, Pflanze groß (0,4-1 m) und großblütig (Krone 25-35 mm), Schluchtwälder in den Alpen, selten 
 Template:Lead/MakeCommaBreakingList  –  Lamium orvala test
Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla Bla bla bla
Blüte
Blüte
Habitus
Habitus
Tafel aus Deutschlands Flora, 1796
Tafel aus Deutschlands Flora, 1796
Lamium album4 ies.jpg
a: Blüte mit gebogener Röhre
Lamium album Sturm39.jpg
b: Blüte mit gebogener Röhre
6
Staubbeutel bärtig behaart, Pflanze kleiner   ► 3
3
a: Thorax orange brown
tail orange brown
b: Female unbanded
tail deep red
male with yellow bands
c: 1-2 yellow bands
tail orange
d: Two golden yellow bands
tail white,
buff at least at base
e: Two lemon yellow bands
tail pure white
male 2-3 yellow bands
f: Three yellow bands
tail pure white
Common carder bumblebee
Bombus pascuorum
Red tailed bumblebee
Bombus lapidarius
Early nesting bumblebee
Bombus pratorum
Buff tailed bumblebee
Bombus terrestris
White tailed bumblebee
Bombus lucorum
Garden bumblebee
Bombus hortorum
4
a: Thorax orange brown
tail orange brown
b: Female unbanded
tail deep red
male with yellow bands
c: 1-2 yellow bands
tail orange
Common carder bumblebee
Bombus pascuorum
Red tailed bumblebee
Bombus lapidarius
Early nesting bumblebee
Bombus pratorum



A second key, which can be linked from the first one:

Subkey Test
1
Blütenkrone weiß 
  Xum album
1
Blütenkrone goldgelb 
  Xum aureum
1’’
Blütenkrone violett 
  Xum violaceum

Technical notes

  • implement "intro text" correct in the jKey

See also

Single Access Key, Lead style: Template:Key Start and Template:Lead