Difference between revisions of "Template:Key Start/doc"
MarcBrugman (Talk | contribs) |
|||
Line 3: | Line 3: | ||
=== Highlights=== | === 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 | + | * 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: (1) The lead number, optionally with a backlink; (2) the lead statement, and (3) the result as lead number or a taxon name. In the case of taxon names, it is possible to replace the unnamed 3rd parameter with an explicit parameter called "taxon=". In addition, the named parameters "image", "images" (a synonym) and "description" allow additional information to be given. In edit view, keys looks like: |
<nowiki>{{SingleAccessKey | id = Example | title = Example key | description = Only a demo |</nowiki> | <nowiki>{{SingleAccessKey | id = Example | title = Example key | description = Only a demo |</nowiki> | ||
Line 110: | Line 110: | ||
{{Lead | 2 | Blätter handförmig gelappt | 3 }} | {{Lead | 2 | Blätter handförmig gelappt | 3 }} | ||
{{Lead | 2 | Blätter nicht gelappt | 6 | [[Image:EFG-logo2.jpg|thumb|200px|random picture demonstrating that images and caption are possible inside the key]] }} | {{Lead | 2 | Blätter nicht gelappt | 6 | [[Image:EFG-logo2.jpg|thumb|200px|random picture demonstrating that images and caption are possible inside the key]] }} | ||
− | + | <!-- end error demo key --> }} | |
− | <!-- end error demo key -->}} | + | |
Revision as of 19:13, 28 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: (1) The lead number, optionally with a backlink; (2) the lead statement, and (3) the result as lead number or a taxon name. In the case of taxon names, it is possible to replace the unnamed 3rd parameter with an explicit parameter called "taxon=". 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) |