Difference between revisions of "Template:Key Start/doc"
MarcBrugman (Talk | contribs) |
MarcBrugman (Talk | contribs) |
||
Line 147: | Line 147: | ||
* Documentation templates at: [[Template:SingleAccessKey/doc]], [[Template:Lead/doc]] | * Documentation templates at: [[Template:SingleAccessKey/doc]], [[Template:Lead/doc]] | ||
* Secondary tool templates are [[Template:Trim]], [[Template:Documentation]], [[Template:Documentation/subpage]], [[Template:Documentation/docname]], [[Template:Documentation/preload]]. | * Secondary tool templates are [[Template:Trim]], [[Template:Documentation]], [[Template:Documentation/subpage]], [[Template:Documentation/docname]], [[Template:Documentation/preload]]. | ||
+ | |||
+ | * to function it requires the following active extensions: parser functions (standard on Wikipedia), string functions (not active on Wikipedia, but considered), and variables (not even considered). The use of variables is limited to some functionality which allows deleting it from the Template code if the function is not available. It primarily allows having multiple keys on a single wiki page, with correct linking. | ||
<!-- | <!-- |
Revision as of 16:31, 21 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) |