Difference between revisions of "Template:Decision Horizontal"
m (1 revision) |
GiselaWeber (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | <noinclude>Version 0. | + | <noinclude>Version 0.3: for 2 or 3 results equal width of both or all three fields |
{{Documentation}} | {{Documentation}} | ||
Line 22: | Line 22: | ||
<td id="L{{#var:decisiontreeID}}_{{{id|}}}" class="dt-nodeid">{{{id|}}}</td><td></td><!-- this is position of leadalt; don't class this as "leadalt"! --> | <td id="L{{#var:decisiontreeID}}_{{{id|}}}" class="dt-nodeid">{{{id|}}}</td><td></td><!-- this is position of leadalt; don't class this as "leadalt"! --> | ||
<td colspan="4" class="leads-hor1"> | <td colspan="4" class="leads-hor1"> | ||
− | <table class="nested" cellpadding="0" cellspacing="0"><tr><!-- | + | <table class="nested" cellpadding="0" cellspacing="0" width="100%"><tr><!-- |
− | // Create new row with up to | + | // Create new row with up to 8 lead options side-by-side, images top, text and result below |
// IMAGE ROW comes FIRST: | // IMAGE ROW comes FIRST: | ||
// Each lead may have up to 5 images, non-wrapping, Lead/GalleryItemNoCaption creates td! | // Each lead may have up to 5 images, non-wrapping, Lead/GalleryItemNoCaption creates td! | ||
Line 89: | Line 89: | ||
--></tr></table>|<!--else--><td>}}</td><!-- | --></tr></table>|<!--else--><td>}}</td><!-- | ||
--></tr><tr><!-- | --></tr><tr><!-- | ||
− | // START LEAD TEXT, LEAD 1- | + | // START LEAD TEXT, LEAD 1-8 |
-->{{#if: {{{lead 1|}}}|<td class="leadtxt">{{#if:{{{alt 1|}}}|<span class="leadalt">{{Trim|1={{{alt 1}}}}}: </span>}}<span class="leadspan">{{Trim|1={{{lead 1}}}}}</span>|<!--else--><td>}}</td><!-- | -->{{#if: {{{lead 1|}}}|<td class="leadtxt">{{#if:{{{alt 1|}}}|<span class="leadalt">{{Trim|1={{{alt 1}}}}}: </span>}}<span class="leadspan">{{Trim|1={{{lead 1}}}}}</span>|<!--else--><td>}}</td><!-- | ||
-->{{#if: {{{lead 2|}}}|<td class="leadtxt">{{#if:{{{alt 2|}}}|<span class="leadalt">{{Trim|1={{{alt 2}}}}}: </span>}}<span class="leadspan">{{Trim|1={{{lead 2}}}}}</span>|<!--else--><td>}}</td><!-- | -->{{#if: {{{lead 2|}}}|<td class="leadtxt">{{#if:{{{alt 2|}}}|<span class="leadalt">{{Trim|1={{{alt 2}}}}}: </span>}}<span class="leadspan">{{Trim|1={{{lead 2}}}}}</span>|<!--else--><td>}}</td><!-- | ||
Line 100: | Line 100: | ||
// START arrow-down row: | // START arrow-down row: | ||
--></tr><tr><!-- | --></tr><tr><!-- | ||
− | -->{{#if: {{{ | + | -->{{#if: {{{result 1|}}}{{{next 1|}}}|<td class="dt-arrdown" {{#if:{{{result 3|}}}{{{next 3|}}}| {{#if:{{{result 4|}}}{{{next 4|}}}| |width="33%"}}|width="50%"}}>▼|<td>}}</td><!-- |
− | -->{{#if: {{{ | + | -->{{#if: {{{result 2|}}}{{{next 2|}}}|<td class="dt-arrdown" {{#if:{{{result 3|}}}{{{next 3|}}}| {{#if:{{{result 4|}}}{{{next 4|}}}| |width="33%"}}|width="50%"}}>▼|<td>}}</td><!-- |
− | -->{{#if: {{{ | + | -->{{#if: {{{result 3|}}}{{{next 3|}}}|<td class="dt-arrdown" {{#if:{{{result 3|}}}{{{next 3|}}}| {{#if:{{{result 4|}}}{{{next 4|}}}| |width="33%"}}|}}>▼|<td>}}</td><!-- |
− | -->{{#if: {{{ | + | -->{{#if: {{{result 4|}}}{{{next 4|}}}|<td class="dt-arrdown">▼|<td>}}</td><!-- |
− | -->{{#if: {{{ | + | -->{{#if: {{{result 5|}}}{{{next 5|}}}|<td class="dt-arrdown">▼|<td>}}</td><!-- |
− | -->{{#if: {{{ | + | -->{{#if: {{{result 6|}}}{{{next 6|}}}|<td class="dt-arrdown">▼|<td>}}</td><!-- |
− | -->{{#if: {{{ | + | -->{{#if: {{{result 7|}}}{{{next 7|}}}|<td class="dt-arrdown">▼|<td>}}</td><!-- |
− | -->{{#if: {{{ | + | -->{{#if: {{{result 8|}}}{{{next 8|}}}|<td class="dt-arrdown">▼|<td>}}</td><!-- |
− | + | ||
// START Results (always creating a td, which may be empty however) | // START Results (always creating a td, which may be empty however) | ||
--></tr><tr><!-- | --></tr><tr><!-- |
Revision as of 16:29, 2 February 2010
Version 0.3: for 2 or 3 results equal width of both or all three fields
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.5)
- subheading, subheadingstyle
- 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 9a-9e : "File:Xy.jpg"
- caption 1a-1e - caption 9a-9e : "File:Xy.jpg"
- alt 1 - alt 9 : "a", "b", etc. This is optional, enabling references from text
- lead 1 - lead 9 : "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 9 : "4"
- result 1 - result 9 : "Geranium pratense"
- result text 1 - result text 9 : "G. pratense", optional display text, if result itself is not suitable
- result qualifier 1 - result qualifier 9 : non-linking qualifiers like "females" / "??"
- Old: resultqualifier without blank is still supported
- common names 1 to 9
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 |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Test couplet 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2 |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | ’ |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | ’’ |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | ’’’ |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | ’’’’ |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | ’’’’ |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | x |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 | y |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
6 | (5) |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
6 | ’ |
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3 |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
4 |
|
A second key, which can be linked from the first one:
Subkey Test | |
---|---|
1 |
| ||||||
1 | ’ |
| |||||
1 | ’’ |
|
See also
Single Access Key, Lead style: Template:Key Start and Template:Lead