Difference between revisions of "Template:Key Start/doc"

From Biowikifarm Metawiki
Jump to: navigation, search
(Usage)
Line 18: Line 18:
 
{{Lead | 2 | Blätter handförmig gelappt  |  3 }}
 
{{Lead | 2 | Blätter handförmig gelappt  |  3 }}
 
{{Lead | 2 | Blätter nicht gelappt  |  6 }}
 
{{Lead | 2 | Blätter nicht gelappt  |  6 }}
{{Lead | 3 | Blätter mit 3 Lappen. Blüten weiß. Frucht fleischig  |  Gemeiner Schneeball - ''Viburnum opulus'' L. | [[Image:EFG-logo2.jpg|thumb|200px|random picture demonstrating that images and caption are possible inside the key]] }}
+
{{Lead | 3 | Blätter mit 3 Lappen. Blüten weiß. Frucht fleischig  |  Gemeiner Schneeball - ''Viburnum opulus'' L.  
 +
  |images=[[Image:EFG-logo2.jpg|thumb|200px|random picture demonstrating that images and caption are possible inside the key]]  
 +
  |description=Der Strauch kann Wuchshöhen von 1,5 bis 4 m erreichen. Die gegenständigen, gestielten Laubblätter sind drei- bis fünflappig. Die weißen Blüten stehen in Trugdolden. Die erbsengroße rote Beere enthält einen Samen.
 +
 
 +
Bestäuber sind inbesondere Fliegen, die ähnlich wie bei den Doldenblütlern auf dem Blütenstand umherlaufen und die Bestäubung vollziehen.}}
 
{{Lead | 3 | Blätter mit 5 Lappen. Blüten nicht weiß. Frucht trocken, geflügelt  |  4 }}
 
{{Lead | 3 | Blätter mit 5 Lappen. Blüten nicht weiß. Frucht trocken, geflügelt  |  4 }}
 
{{Lead | 4 | Blätter weniger als 10 cm lang  |  Feldahorn - ''Acer campestre'' L. }}
 
{{Lead | 4 | Blätter weniger als 10 cm lang  |  Feldahorn - ''Acer campestre'' L. }}
Line 34: Line 38:
 
{{Lead | 3    | Leaves odourless. Fruit dry, winged  | [http://en.wikipedia.org/wiki/Acer_negundo ''Acer negundo'' L.]}}
 
{{Lead | 3    | Leaves odourless. Fruit dry, winged  | [http://en.wikipedia.org/wiki/Acer_negundo ''Acer negundo'' L.]}}
 
{{Lead | 4 (2)| Leaves lobed | 5 }}
 
{{Lead | 4 (2)| Leaves lobed | 5 }}
{{Lead | 4    | Leaves not lobed | 6 | [[Image:EFG-logo2.jpg|thumb|50px|(demo)]] }}
+
{{Lead | 4    | Leaves not lobed | 6  
 +
  |images=[[Image:EFG-logo2.jpg|thumb|50px|(demo)]] }}
 
{{Lead | 5 (4)| Leaves pinnately-veined. Fruit an acorn. Tree  | [http://en.wikipedia.org/wiki/Quercus_robur ''Quercus robur''] L. }}
 
{{Lead | 5 (4)| Leaves pinnately-veined. Fruit an acorn. Tree  | [http://en.wikipedia.org/wiki/Quercus_robur ''Quercus robur''] L. }}
 
{{Lead | 5    | Leaves palmately-veined. Fruit fleshy. Small shrub <ref>Blackcurrant juice is used for jams, sirup (French ''Cassis'')</ref>  
 
{{Lead | 5    | Leaves palmately-veined. Fruit fleshy. Small shrub <ref>Blackcurrant juice is used for jams, sirup (French ''Cassis'')</ref>  
Line 51: Line 56:
 
{{Lead | a  | a tree, shrub, or a woody climber > 50 cm high| 2 }}
 
{{Lead | a  | a tree, shrub, or a woody climber > 50 cm high| 2 }}
 
{{Lead | b  | a herbs or small shrubs (< 50 cm high) | 17 }}
 
{{Lead | b  | a herbs or small shrubs (< 50 cm high) | 17 }}
{{LeadQuestion | 2    | Are two leaves on the stem always opposite of each other?|[[Image:EFG-logo2.jpg|thumb|50px|random picture demo at Question]]}}
+
{{LeadQuestion | 2    | Are two leaves on the stem always opposite of each other?
{{Lead | a  | yes  | 3 |[[Image:EFG-logo2.jpg|thumb|50px|random picture demo at Answer a)]]}}
+
  |images=[[Image:EFG-logo2.jpg|thumb|50px|random picture demo at Question]]}}
{{Lead | b  | no, they are alternate | 4 |[[Image:EFG-logo2.jpg|thumb|50px|random picture demo at Answer b)]]}}
+
{{Lead | a  | yes  | 3  
 +
  |images=[[Image:EFG-logo2.jpg|thumb|50px|random picture demo at Answer a)]]}}
 +
{{Lead | b  | no, they are alternate | 4  
 +
  |images=[[Image:EFG-logo2.jpg|thumb|50px|random picture demo at Answer b)]]}}
 
<!-- end of single-access key -->}}
 
<!-- end of single-access key -->}}
  
Line 80: Line 88:
 
{{Lead | 2 | Blätter handförmig gelappt  |  3 }}
 
{{Lead | 2 | Blätter handförmig gelappt  |  3 }}
 
{{Lead | 2 | Blätter nicht gelappt  |  6 }}
 
{{Lead | 2 | Blätter nicht gelappt  |  6 }}
{{Lead | 3 | Blätter mit 3 Lappen. Blüten weiß. Frucht fleischig  |  Gemeiner Schneeball - ''Viburnum opulus'' L. | [[Image:EFG-logo2.jpg|thumb|200px|random picture demonstrating that images and caption are possible inside the key]] }}
+
{{Lead | 3 | Blätter mit 3 Lappen. Blüten weiß. Frucht fleischig  |  Gemeiner Schneeball - ''Viburnum opulus'' L.
 +
  |images=[[Image:EFG-logo2.jpg|thumb|200px|random picture demonstrating that images and caption are possible inside the key]] }}
 
{{Lead | 3 | Blätter mit 5 Lappen. Blüten nicht weiß. Frucht trocken, geflügelt  |  4 }}
 
{{Lead | 3 | Blätter mit 5 Lappen. Blüten nicht weiß. Frucht trocken, geflügelt  |  4 }}
 
{{Lead | 4 | Blätter weniger als 10 cm lang  |  Feldahorn - ''Acer campestre'' L. }}
 
{{Lead | 4 | Blätter weniger als 10 cm lang  |  Feldahorn - ''Acer campestre'' L. }}

Revision as of 18:23, 19 November 2008

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

Highlights

  • Users can duplicate any existing key and modify, translate, or shorten it, with requiring an expert or administrator to allow it to them.
  • It is possible to rearrange the key or add new couplets or leads with new taxa.
    • In both cases, renumbering the leads is a problem, but while building a key up, non-consecutive lead numbers can be an interim solution.
  • Both lead statements and taxon links can contain links to internal wiki pages or external web pages, defining or explaining characters, states, or taxa.
  • Taxon or character images with captions and automatic resizing may be added to any lead (whether a taxon lead or not).

Usage

The templates Template:SingleAccessKey and Template:Lead are to be used in combination. Please switch into edit or view mode using the tab on top of the screen to see the "code" calling the templates.

Example key in German
This key is a demo key only, containing links to the German Wikipedia
(Geographic scope not specified) — Collaboration: open — (Status not specified) — Edited by: (not specified)
Start of an English Key with backlinks, links to English Wikipedia, and a footnote


Single access keys created with these templates may be strictly dichotomous (two alternatives, as above) or they may be polytomous (some couplets having more than 2 alternatives, not shown). Furthermore, it is possible to design keys in statement-style (as above) or in question-answer-style as follows:

Example of the start of a key in question-answer-style
For testing, also a technical sample of a reticulated key, resulting in a Directed Acyclical Graph (this key is complete, i.e. unlike the other examples it has no dangling leads):
Techical example of reticulated key (lead 4 has two parents: 3 and 6)
</small>
This is just a test of complicate data structures for Javier test)

Introduction for developers

The key is a table with a dummy column to enable partial overlap between left and right text in different rows. Overlap is possible only between a long lead statement with a short number pointer, long lead statements with a long taxon name can not overlap. Each lead is a separate row, if images are present they are added in an additional row where required.

Javascript programmability: Each row contains an id attribute with "L" + lead number + "row", the lead cell itself an id attribute with "L" + lead number. The table is styled mostly using css classes, with the text span background an exception (to allow parameterization of the background).

TODO

  • Add the key id to each lead id, to support multiple keys on a wikipage. Work on this was started, but not finished!
  • Improvements: The key title could be displayed better than as caption. The description text could perhaps be styled differently.
  • A FRIDA html key for comparison. One major difference is that FRIDA always places the taxon in a row of its own.

Known problems

  1. A plain three column layout is less than satisfactory; the occasional wide taxon names force the whole last column to be very wide.
    • To some extent, this is already worked around by providing a four-column layout with alternating colspan (33% of table width is assigned to statement, if no taxon is present, or to taxon, if that is present. However, this still means that the statement may be presented shorter than necessary.
  2. Clicking on the hyperlinks usually has no effect if the screen already contains the target lead.
    • Proposed solution: some javascript additions. Note: JS can not be called directly from within the wiki text for security reasons, or any user could reprogram the wiki into a dangerous tool.
  3. Leads do not automatically renumber.
    • There is an obvious service solutions for this: The project would have to program a "bot" program, the works through all keys that have a category like "Please renumber" set, renumbering the key in an optimal way, and then deleting (or commenting out) the category.
  4. There are no lead dots running from the statement to the number.
    • Attempting to fix this with <span style="float:right"> . . . .</span> did not work well!
    • Can this be fixed with a repeated background image and non-transparent text? Could be worth testing!


Dependencies