Difference between revisions of "Template:Key Start/doc"
MarcBrugman (Talk | contribs) (→Highlights) |
MarcBrugman (Talk | contribs) |
||
Line 92: | Line 92: | ||
− | {{SingleAccessKey | id = JavierKey | title = This is just a test of | + | {{SingleAccessKey | id = JavierKey | title = This is just a test of complicated data structures for Javier's test | |
{{Lead | 1 | Blätter [http://de.wikipedia.org/wiki/Phyllotaxis#Grundtypen gegenständig] | 2 }} | {{Lead | 1 | Blätter [http://de.wikipedia.org/wiki/Phyllotaxis#Grundtypen gegenständig] | 2 }} | ||
{{Lead | 1 | Blätter [http://de.wikipedia.org/wiki/Phyllotaxis#Grundtypen wechselständig] | 4}} | {{Lead | 1 | Blätter [http://de.wikipedia.org/wiki/Phyllotaxis#Grundtypen wechselständig] | 4}} | ||
Line 103: | Line 103: | ||
{{Lead | 4 | Blätter mehr 10 cm lang | 5 }} | {{Lead | 4 | Blätter mehr 10 cm lang | 5 }} | ||
{{Lead | 4 | Blätter mehr 10 cm lang | 5 }} | {{Lead | 4 | Blätter mehr 10 cm lang | 5 }} | ||
− | <!-- end of | + | <!-- end of javier's key -->}} |
+ | |||
+ | {{SingleAccessKey | id = ErrorDemo | title = ErrorDemo | description = The templates will report some errors already, e.g. putting text or images into an unnamed 4th or 5th parameter, including putting images or taxon description there without using the named parameter (image= or description=) for this | | ||
+ | {{Lead | 1 | Blätter gegenständig | 2 | Accidental content in the 4th parameter is reported}} | ||
+ | {{Lead | 1 | Blätter wechselständig | 4}} | ||
+ | {{Lead | 2 | Blätter handförmig gelappt | 3 }} | ||
+ | {{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 5 Lappen. Blüten nicht weiß. Frucht trocken, geflügelt | 4 }} | ||
+ | <!-- end of javier's key -->}} | ||
+ | |||
===Introduction for developers=== | ===Introduction for developers=== |
Revision as of 12:27, 20 November 2008
Highlights
- Uses standard mediawiki template syntax. The basic structure is a wrapper for entire key, and a sequence of Lead or LeadQuestion templates. Each Lead template contains three unnamed parameters: The lead number, the statement, and the result (a lead number or a taxon name). In addition, the named parameters "image", "images" (a synonym) and "description" allow additional information to be given. In edit view, keys looks like:
{{SingleAccessKey | id = Example | title = Example key | description = Only a demo | {{Lead | 1 | Blätter gegenständig | 2 }} {{Lead | 1 | Blätter wechselständig | 18 |image=[[Image:xyz.jpg|thumb|200px|A caption for the image]] }}
- (Switch this documentation page into edit view to see the text behind the rendered examples on this page.)
- 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 | |
---|---|
Example of the start of a key in question-answer-style | |
---|---|
Techical example of reticulated key (lead 4 has two parents: 3 and 6) | |
---|---|
This is just a test of complicated data structures for Javier's test | |
---|---|
ErrorDemo | |
---|---|
The templates will report some errors already, e.g. putting text or images into an unnamed 4th or 5th parameter, including putting images or taxon description there without using the named parameter (image= or description=) for this
(Geographic scope not specified) — Collaboration: open — (Status not specified) — Edited by: (not specified) |