Difference between revisions of "Template:Decision Horizontal"
GiselaWeber (Talk | contribs) |
|||
Line 1: | Line 1: | ||
− | <noinclude>Version 0. | + | <noinclude>Version 0.5: Supporting "hide id", "common names" and "result text". Older: if only 2 or 3 alternatives are present, the columns will be formatted to have equal width! |
{{Documentation}} | {{Documentation}} | ||
Line 20: | Line 20: | ||
// END if subheading:--> | // END if subheading:--> | ||
}}<tr id="L{{#var:decisiontreeID}}_{{{id|}}}_row" class="dt-row dt-row-hor1"> | }}<tr id="L{{#var:decisiontreeID}}_{{{id|}}}_row" class="dt-row dt-row-hor1"> | ||
− | <td id="L{{#var:decisiontreeID}}_{{{id|}}}" class="dt-nodeid">{{{id|}}}< | + | <td id="L{{#var:decisiontreeID}}_{{{id|}}}" class="dt-nodeid">{{ |
+ | #ifeq:{{{hide id|}}}|1|<!--then nothing-->|{{{id|}}} | ||
+ | }}</td><td><!-- position of leadalt but don't add class "leadalt"! --></td> | ||
<td colspan="4" class="leads-hor1"> | <td colspan="4" class="leads-hor1"> | ||
<table class="nested" cellpadding="0" cellspacing="0" width="100%"><tr><!-- | <table class="nested" cellpadding="0" cellspacing="0" width="100%"><tr><!-- | ||
Line 33: | Line 35: | ||
// START TOP ROW IMAGE CONTENT: - LEAD 1: Set of up to five images for a single decision option ("lead"): | // START TOP ROW IMAGE CONTENT: - LEAD 1: Set of up to five images for a single decision option ("lead"): | ||
-->{{#if: {{{image 1a|}}}|<td class="leadimgs leadimgs-hor1"><table align="center" class="nested"><tr><!--start with extra column, balancing magnify clip on the right side: | -->{{#if: {{{image 1a|}}}|<td class="leadimgs leadimgs-hor1"><table align="center" class="nested"><tr><!--start with extra column, balancing magnify clip on the right side: | ||
− | --><td> </td>{{Lead/GalleryItemNoCaption|image={{{image 1a}}}|caption={{{caption 1a|}}}|label={{{label 1a|}}}|width={{{image 1a width|{{{images 1 width|200}}}}}}|height={{{image 1a height|{{{images 1 height|200}}}}}}|resize={{{images 1 resize|0 | + | --><td> </td>{{Lead/GalleryItemNoCaption|image={{{image 1a}}}|caption={{{caption 1a|}}}|label={{{label 1a|}}}|width={{{image 1a width|{{{images 1 width|200}}}}}}|height={{{image 1a height|{{{images 1 height|200}}}}}}|resize={{{images 1 resize|0}}} }} <!-- HERE 2 braces LESS! |
− | -->{{#if: {{{image 1b|}}}|{{Lead/GalleryItemNoCaption|image={{{image 1b}}}|caption={{{caption 1b|}}}|label={{{label 1b|}}}|width={{{image 1b width|{{{images 1 width|200}}}}}}|height={{{image 1b height|{{{images 1 height|200}}}}}}|resize={{{images 1 resize|0 | + | -->{{#if: {{{image 1b|}}}|{{Lead/GalleryItemNoCaption|image={{{image 1b}}}|caption={{{caption 1b|}}}|label={{{label 1b|}}}|width={{{image 1b width|{{{images 1 width|200}}}}}}|height={{{image 1b height|{{{images 1 height|200}}}}}}|resize={{{images 1 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 1c|}}}|{{Lead/GalleryItemNoCaption|image={{{image 1c}}}|caption={{{caption 1c|}}}|label={{{label 1c|}}}|width={{{image 1c width|{{{images 1 width|200}}}}}}|height={{{image 1c height|{{{images 1 height|200}}}}}}|resize={{{images 1 resize|0 | + | -->{{#if: {{{image 1c|}}}|{{Lead/GalleryItemNoCaption|image={{{image 1c}}}|caption={{{caption 1c|}}}|label={{{label 1c|}}}|width={{{image 1c width|{{{images 1 width|200}}}}}}|height={{{image 1c height|{{{images 1 height|200}}}}}}|resize={{{images 1 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 1d|}}}|{{Lead/GalleryItemNoCaption|image={{{image 1d}}}|caption={{{caption 1d|}}}|label={{{label 1d|}}}|width={{{image 1d width|{{{images 1 width|200}}}}}}|height={{{image 1d height|{{{images 1 height|200}}}}}}|resize={{{images 1 resize|0 | + | -->{{#if: {{{image 1d|}}}|{{Lead/GalleryItemNoCaption|image={{{image 1d}}}|caption={{{caption 1d|}}}|label={{{label 1d|}}}|width={{{image 1d width|{{{images 1 width|200}}}}}}|height={{{image 1d height|{{{images 1 height|200}}}}}}|resize={{{images 1 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 1e|}}}|{{Lead/GalleryItemNoCaption|image={{{image 1e}}}|caption={{{caption 1e|}}}|label={{{label 1e|}}}|width={{{image 1e width|{{{images 1 width|200}}}}}}|height={{{image 1e height|{{{images 1 height|200}}}}}}|resize={{{images 1 resize|0 | + | -->{{#if: {{{image 1e|}}}|{{Lead/GalleryItemNoCaption|image={{{image 1e}}}|caption={{{caption 1e|}}}|label={{{label 1e|}}}|width={{{image 1e width|{{{images 1 width|200}}}}}}|height={{{image 1e height|{{{images 1 height|200}}}}}}|resize={{{images 1 resize|0}}} }} }}<!-- |
--></tr></table>|<!--else--><td>}}</td><!--LEAD 2: Set of up to five images for a single decision option ("lead"): | --></tr></table>|<!--else--><td>}}</td><!--LEAD 2: Set of up to five images for a single decision option ("lead"): | ||
-->{{#if: {{{image 2a|}}}|<td class="leadimgs leadimgs-hor1"><table align="center" class="nested"><tr><!-- | -->{{#if: {{{image 2a|}}}|<td class="leadimgs leadimgs-hor1"><table align="center" class="nested"><tr><!-- | ||
− | --><td> </td>{{Lead/GalleryItemNoCaption|image={{{image 2a}}}|caption={{{caption 2a|}}}|label={{{label 2a|}}}|width={{{image 2a width|{{{images 2 width|200}}}}}}|height={{{image 2a height|{{{images 2 height|200}}}}}}|resize={{{images 2 resize|0 | + | --><td> </td>{{Lead/GalleryItemNoCaption|image={{{image 2a}}}|caption={{{caption 2a|}}}|label={{{label 2a|}}}|width={{{image 2a width|{{{images 2 width|200}}}}}}|height={{{image 2a height|{{{images 2 height|200}}}}}}|resize={{{images 2 resize|0}}} }} <!-- HERE 2 braces LESS! |
− | -->{{#if: {{{image 2b|}}}|{{Lead/GalleryItemNoCaption|image={{{image 2b}}}|caption={{{caption 2b|}}}|label={{{label 2b|}}}|width={{{image 2b width|{{{images 2 width|200}}}}}}|height={{{image 2b height|{{{images 2 height|200}}}}}}|resize={{{images 2 resize|0 | + | -->{{#if: {{{image 2b|}}}|{{Lead/GalleryItemNoCaption|image={{{image 2b}}}|caption={{{caption 2b|}}}|label={{{label 2b|}}}|width={{{image 2b width|{{{images 2 width|200}}}}}}|height={{{image 2b height|{{{images 2 height|200}}}}}}|resize={{{images 2 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 2c|}}}|{{Lead/GalleryItemNoCaption|image={{{image 2c}}}|caption={{{caption 2c|}}}|label={{{label 2c|}}}|width={{{image 2c width|{{{images 2 width|200}}}}}}|height={{{image 2c height|{{{images 2 height|200}}}}}}|resize={{{images 2 resize|0 | + | -->{{#if: {{{image 2c|}}}|{{Lead/GalleryItemNoCaption|image={{{image 2c}}}|caption={{{caption 2c|}}}|label={{{label 2c|}}}|width={{{image 2c width|{{{images 2 width|200}}}}}}|height={{{image 2c height|{{{images 2 height|200}}}}}}|resize={{{images 2 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 2d|}}}|{{Lead/GalleryItemNoCaption|image={{{image 2d}}}|caption={{{caption 2d|}}}|label={{{label 2d|}}}|width={{{image 2d width|{{{images 2 width|200}}}}}}|height={{{image 2d height|{{{images 2 height|200}}}}}}|resize={{{images 2 resize|0 | + | -->{{#if: {{{image 2d|}}}|{{Lead/GalleryItemNoCaption|image={{{image 2d}}}|caption={{{caption 2d|}}}|label={{{label 2d|}}}|width={{{image 2d width|{{{images 2 width|200}}}}}}|height={{{image 2d height|{{{images 2 height|200}}}}}}|resize={{{images 2 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 2e|}}}|{{Lead/GalleryItemNoCaption|image={{{image 2e}}}|caption={{{caption 2e|}}}|label={{{label 2e|}}}|width={{{image 2e width|{{{images 2 width|200}}}}}}|height={{{image 2e height|{{{images 2 height|200}}}}}}|resize={{{images 2 resize|0 | + | -->{{#if: {{{image 2e|}}}|{{Lead/GalleryItemNoCaption|image={{{image 2e}}}|caption={{{caption 2e|}}}|label={{{label 2e|}}}|width={{{image 2e width|{{{images 2 width|200}}}}}}|height={{{image 2e height|{{{images 2 height|200}}}}}}|resize={{{images 2 resize|0}}} }} }}<!-- |
--></tr></table>|<!--else--><td>}}</td><!--LEAD 3: Set of up to five images for a single decision option ("lead"): | --></tr></table>|<!--else--><td>}}</td><!--LEAD 3: Set of up to five images for a single decision option ("lead"): | ||
-->{{#if: {{{image 3a|}}}|<td class="leadimgs leadimgs-hor1"><table align="center" class="nested"><tr><!-- | -->{{#if: {{{image 3a|}}}|<td class="leadimgs leadimgs-hor1"><table align="center" class="nested"><tr><!-- | ||
− | --><td> </td>{{Lead/GalleryItemNoCaption|image={{{image 3a}}}|caption={{{caption 3a|}}}|label={{{label 3a|}}}|width={{{image 3a width|{{{images 3 width|200}}}}}}|height={{{image 3a height|{{{images 3 height|200}}}}}}|resize={{{images 3 resize|0 | + | --><td> </td>{{Lead/GalleryItemNoCaption|image={{{image 3a}}}|caption={{{caption 3a|}}}|label={{{label 3a|}}}|width={{{image 3a width|{{{images 3 width|200}}}}}}|height={{{image 3a height|{{{images 3 height|200}}}}}}|resize={{{images 3 resize|0}}} }} <!-- HERE 2 braces LESS! |
− | -->{{#if: {{{image 3b|}}}|{{Lead/GalleryItemNoCaption|image={{{image 3b}}}|caption={{{caption 3b|}}}|label={{{label 3b|}}}|width={{{image 3b width|{{{images 3 width|200}}}}}}|height={{{image 3b height|{{{images 3 height|200}}}}}}|resize={{{images 3 resize|0 | + | -->{{#if: {{{image 3b|}}}|{{Lead/GalleryItemNoCaption|image={{{image 3b}}}|caption={{{caption 3b|}}}|label={{{label 3b|}}}|width={{{image 3b width|{{{images 3 width|200}}}}}}|height={{{image 3b height|{{{images 3 height|200}}}}}}|resize={{{images 3 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 3c|}}}|{{Lead/GalleryItemNoCaption|image={{{image 3c}}}|caption={{{caption 3c|}}}|label={{{label 3c|}}}|width={{{image 3c width|{{{images 3 width|200}}}}}}|height={{{image 3c height|{{{images 3 height|200}}}}}}|resize={{{images 3 resize|0 | + | -->{{#if: {{{image 3c|}}}|{{Lead/GalleryItemNoCaption|image={{{image 3c}}}|caption={{{caption 3c|}}}|label={{{label 3c|}}}|width={{{image 3c width|{{{images 3 width|200}}}}}}|height={{{image 3c height|{{{images 3 height|200}}}}}}|resize={{{images 3 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 3d|}}}|{{Lead/GalleryItemNoCaption|image={{{image 3d}}}|caption={{{caption 3d|}}}|label={{{label 3d|}}}|width={{{image 3d width|{{{images 3 width|200}}}}}}|height={{{image 3d height|{{{images 3 height|200}}}}}}|resize={{{images 3 resize|0 | + | -->{{#if: {{{image 3d|}}}|{{Lead/GalleryItemNoCaption|image={{{image 3d}}}|caption={{{caption 3d|}}}|label={{{label 3d|}}}|width={{{image 3d width|{{{images 3 width|200}}}}}}|height={{{image 3d height|{{{images 3 height|200}}}}}}|resize={{{images 3 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 3e|}}}|{{Lead/GalleryItemNoCaption|image={{{image 3e}}}|caption={{{caption 3e|}}}|label={{{label 3e|}}}|width={{{image 3e width|{{{images 3 width|200}}}}}}|height={{{image 3e height|{{{images 3 height|200}}}}}}|resize={{{images 3 resize|0 | + | -->{{#if: {{{image 3e|}}}|{{Lead/GalleryItemNoCaption|image={{{image 3e}}}|caption={{{caption 3e|}}}|label={{{label 3e|}}}|width={{{image 3e width|{{{images 3 width|200}}}}}}|height={{{image 3e height|{{{images 3 height|200}}}}}}|resize={{{images 3 resize|0}}} }} }}<!-- |
--></tr></table>|<!--else--><td>}}</td><!--LEAD 4: Set of up to five images for a single decision option ("lead"): | --></tr></table>|<!--else--><td>}}</td><!--LEAD 4: Set of up to five images for a single decision option ("lead"): | ||
-->{{#if: {{{image 4a|}}}|<td class="leadimgs leadimgs-hor1"><table align="center" class="nested"><tr><!-- | -->{{#if: {{{image 4a|}}}|<td class="leadimgs leadimgs-hor1"><table align="center" class="nested"><tr><!-- | ||
− | --><td> </td>{{Lead/GalleryItemNoCaption|image={{{image 4a}}}|caption={{{caption 4a|}}}|label={{{label 4a|}}}|width={{{image 4a width|{{{images 4 width|200}}}}}}|height={{{image 4a height|{{{images 4 height|200}}}}}}|resize={{{images 4 resize|0 | + | --><td> </td>{{Lead/GalleryItemNoCaption|image={{{image 4a}}}|caption={{{caption 4a|}}}|label={{{label 4a|}}}|width={{{image 4a width|{{{images 4 width|200}}}}}}|height={{{image 4a height|{{{images 4 height|200}}}}}}|resize={{{images 4 resize|0}}} }} <!-- HERE 2 braces LESS! |
− | -->{{#if: {{{image 4b|}}}|{{Lead/GalleryItemNoCaption|image={{{image 4b}}}|caption={{{caption 4b|}}}|label={{{label 4b|}}}|width={{{image 4b width|{{{images 4 width|200}}}}}}|height={{{image 4b height|{{{images 4 height|200}}}}}}|resize={{{images 4 resize|0 | + | -->{{#if: {{{image 4b|}}}|{{Lead/GalleryItemNoCaption|image={{{image 4b}}}|caption={{{caption 4b|}}}|label={{{label 4b|}}}|width={{{image 4b width|{{{images 4 width|200}}}}}}|height={{{image 4b height|{{{images 4 height|200}}}}}}|resize={{{images 4 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 4c|}}}|{{Lead/GalleryItemNoCaption|image={{{image 4c}}}|caption={{{caption 4c|}}}|label={{{label 4c|}}}|width={{{image 4c width|{{{images 4 width|200}}}}}}|height={{{image 4c height|{{{images 4 height|200}}}}}}|resize={{{images 4 resize|0 | + | -->{{#if: {{{image 4c|}}}|{{Lead/GalleryItemNoCaption|image={{{image 4c}}}|caption={{{caption 4c|}}}|label={{{label 4c|}}}|width={{{image 4c width|{{{images 4 width|200}}}}}}|height={{{image 4c height|{{{images 4 height|200}}}}}}|resize={{{images 4 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 4d|}}}|{{Lead/GalleryItemNoCaption|image={{{image 4d}}}|caption={{{caption 4d|}}}|label={{{label 4d|}}}|width={{{image 4d width|{{{images 4 width|200}}}}}}|height={{{image 4d height|{{{images 4 height|200}}}}}}|resize={{{images 4 resize|0 | + | -->{{#if: {{{image 4d|}}}|{{Lead/GalleryItemNoCaption|image={{{image 4d}}}|caption={{{caption 4d|}}}|label={{{label 4d|}}}|width={{{image 4d width|{{{images 4 width|200}}}}}}|height={{{image 4d height|{{{images 4 height|200}}}}}}|resize={{{images 4 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 4e|}}}|{{Lead/GalleryItemNoCaption|image={{{image 4e}}}|caption={{{caption 4e|}}}|label={{{label 4e|}}}|width={{{image 4e width|{{{images 4 width|200}}}}}}|height={{{image 4e height|{{{images 4 height|200}}}}}}|resize={{{images 4 resize|0 | + | -->{{#if: {{{image 4e|}}}|{{Lead/GalleryItemNoCaption|image={{{image 4e}}}|caption={{{caption 4e|}}}|label={{{label 4e|}}}|width={{{image 4e width|{{{images 4 width|200}}}}}}|height={{{image 4e height|{{{images 4 height|200}}}}}}|resize={{{images 4 resize|0}}} }} }}<!-- |
--></tr></table>|<!--else--><td>}}</td><!--LEAD 5: Set of up to five images for a single decision option ("lead"): | --></tr></table>|<!--else--><td>}}</td><!--LEAD 5: Set of up to five images for a single decision option ("lead"): | ||
-->{{#if: {{{image 5a|}}}|<td class="leadimgs leadimgs-hor1"><table align="center" class="nested"><tr><!-- | -->{{#if: {{{image 5a|}}}|<td class="leadimgs leadimgs-hor1"><table align="center" class="nested"><tr><!-- | ||
− | --><td> </td>{{Lead/GalleryItemNoCaption|image={{{image 5a}}}|caption={{{caption 5a|}}}|label={{{label 5a|}}}|width={{{image 5a width|{{{images 5 width|200}}}}}}|height={{{image 5a height|{{{images 5 height|200}}}}}}|resize={{{images 5 resize|0 | + | --><td> </td>{{Lead/GalleryItemNoCaption|image={{{image 5a}}}|caption={{{caption 5a|}}}|label={{{label 5a|}}}|width={{{image 5a width|{{{images 5 width|200}}}}}}|height={{{image 5a height|{{{images 5 height|200}}}}}}|resize={{{images 5 resize|0}}} }} <!-- HERE 2 braces LESS! |
− | -->{{#if: {{{image 5b|}}}|{{Lead/GalleryItemNoCaption|image={{{image 5b}}}|caption={{{caption 5b|}}}|label={{{label 5b|}}}|width={{{image 5b width|{{{images 5 width|200}}}}}}|height={{{image 5b height|{{{images 5 height|200}}}}}}|resize={{{images 5 resize|0 | + | -->{{#if: {{{image 5b|}}}|{{Lead/GalleryItemNoCaption|image={{{image 5b}}}|caption={{{caption 5b|}}}|label={{{label 5b|}}}|width={{{image 5b width|{{{images 5 width|200}}}}}}|height={{{image 5b height|{{{images 5 height|200}}}}}}|resize={{{images 5 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 5c|}}}|{{Lead/GalleryItemNoCaption|image={{{image 5c}}}|caption={{{caption 5c|}}}|label={{{label 5c|}}}|width={{{image 5c width|{{{images 5 width|200}}}}}}|height={{{image 5c height|{{{images 5 height|200}}}}}}|resize={{{images 5 resize|0 | + | -->{{#if: {{{image 5c|}}}|{{Lead/GalleryItemNoCaption|image={{{image 5c}}}|caption={{{caption 5c|}}}|label={{{label 5c|}}}|width={{{image 5c width|{{{images 5 width|200}}}}}}|height={{{image 5c height|{{{images 5 height|200}}}}}}|resize={{{images 5 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 5d|}}}|{{Lead/GalleryItemNoCaption|image={{{image 5d}}}|caption={{{caption 5d|}}}|label={{{label 5d|}}}|width={{{image 5d width|{{{images 5 width|200}}}}}}|height={{{image 5d height|{{{images 5 height|200}}}}}}|resize={{{images 5 resize|0 | + | -->{{#if: {{{image 5d|}}}|{{Lead/GalleryItemNoCaption|image={{{image 5d}}}|caption={{{caption 5d|}}}|label={{{label 5d|}}}|width={{{image 5d width|{{{images 5 width|200}}}}}}|height={{{image 5d height|{{{images 5 height|200}}}}}}|resize={{{images 5 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 5e|}}}|{{Lead/GalleryItemNoCaption|image={{{image 5e}}}|caption={{{caption 5e|}}}|label={{{label 5e|}}}|width={{{image 5e width|{{{images 5 width|200}}}}}}|height={{{image 5e height|{{{images 5 height|200}}}}}}|resize={{{images 5 resize|0 | + | -->{{#if: {{{image 5e|}}}|{{Lead/GalleryItemNoCaption|image={{{image 5e}}}|caption={{{caption 5e|}}}|label={{{label 5e|}}}|width={{{image 5e width|{{{images 5 width|200}}}}}}|height={{{image 5e height|{{{images 5 height|200}}}}}}|resize={{{images 5 resize|0}}} }} }}<!-- |
--></tr></table>|<!--else--><td>}}</td><!--LEAD 6: Set of up to five images for a single decision option ("lead"): | --></tr></table>|<!--else--><td>}}</td><!--LEAD 6: Set of up to five images for a single decision option ("lead"): | ||
-->{{#if: {{{image 6a|}}}|<td class="leadimgs leadimgs-hor1"><table align="center" class="nested"><tr><!-- | -->{{#if: {{{image 6a|}}}|<td class="leadimgs leadimgs-hor1"><table align="center" class="nested"><tr><!-- | ||
− | --><td> </td>{{Lead/GalleryItemNoCaption|image={{{image 6a}}}|caption={{{caption 6a|}}}|label={{{label 6a|}}}|width={{{image 6a width|{{{images 6 width|200}}}}}}|height={{{image 6a height|{{{images 6 height|200}}}}}}|resize={{{images 6 resize|0 | + | --><td> </td>{{Lead/GalleryItemNoCaption|image={{{image 6a}}}|caption={{{caption 6a|}}}|label={{{label 6a|}}}|width={{{image 6a width|{{{images 6 width|200}}}}}}|height={{{image 6a height|{{{images 6 height|200}}}}}}|resize={{{images 6 resize|0}}} }} <!-- HERE 2 braces LESS! |
− | -->{{#if: {{{image 6b|}}}|{{Lead/GalleryItemNoCaption|image={{{image 6b}}}|caption={{{caption 6b|}}}|label={{{label 6b|}}}|width={{{image 6b width|{{{images 6 width|200}}}}}}|height={{{image 6b height|{{{images 6 height|200}}}}}}|resize={{{images 6 resize|0 | + | -->{{#if: {{{image 6b|}}}|{{Lead/GalleryItemNoCaption|image={{{image 6b}}}|caption={{{caption 6b|}}}|label={{{label 6b|}}}|width={{{image 6b width|{{{images 6 width|200}}}}}}|height={{{image 6b height|{{{images 6 height|200}}}}}}|resize={{{images 6 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 6c|}}}|{{Lead/GalleryItemNoCaption|image={{{image 6c}}}|caption={{{caption 6c|}}}|label={{{label 6c|}}}|width={{{image 6c width|{{{images 6 width|200}}}}}}|height={{{image 6c height|{{{images 6 height|200}}}}}}|resize={{{images 6 resize|0 | + | -->{{#if: {{{image 6c|}}}|{{Lead/GalleryItemNoCaption|image={{{image 6c}}}|caption={{{caption 6c|}}}|label={{{label 6c|}}}|width={{{image 6c width|{{{images 6 width|200}}}}}}|height={{{image 6c height|{{{images 6 height|200}}}}}}|resize={{{images 6 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 6d|}}}|{{Lead/GalleryItemNoCaption|image={{{image 6d}}}|caption={{{caption 6d|}}}|label={{{label 6d|}}}|width={{{image 6d width|{{{images 6 width|200}}}}}}|height={{{image 6d height|{{{images 6 height|200}}}}}}|resize={{{images 6 resize|0 | + | -->{{#if: {{{image 6d|}}}|{{Lead/GalleryItemNoCaption|image={{{image 6d}}}|caption={{{caption 6d|}}}|label={{{label 6d|}}}|width={{{image 6d width|{{{images 6 width|200}}}}}}|height={{{image 6d height|{{{images 6 height|200}}}}}}|resize={{{images 6 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 6e|}}}|{{Lead/GalleryItemNoCaption|image={{{image 6e}}}|caption={{{caption 6e|}}}|label={{{label 6e|}}}|width={{{image 6e width|{{{images 6 width|200}}}}}}|height={{{image 6e height|{{{images 6 height|200}}}}}}|resize={{{images 6 resize|0 | + | -->{{#if: {{{image 6e|}}}|{{Lead/GalleryItemNoCaption|image={{{image 6e}}}|caption={{{caption 6e|}}}|label={{{label 6e|}}}|width={{{image 6e width|{{{images 6 width|200}}}}}}|height={{{image 6e height|{{{images 6 height|200}}}}}}|resize={{{images 6 resize|0}}} }} }}<!-- |
--></tr></table>|<!--else--><td>}}</td><!--LEAD 7: Set of up to five images for a single decision option ("lead"): | --></tr></table>|<!--else--><td>}}</td><!--LEAD 7: Set of up to five images for a single decision option ("lead"): | ||
-->{{#if: {{{image 7a|}}}|<td class="leadimgs leadimgs-hor1"><table align="center" class="nested"><tr><!-- | -->{{#if: {{{image 7a|}}}|<td class="leadimgs leadimgs-hor1"><table align="center" class="nested"><tr><!-- | ||
− | --><td> </td>{{Lead/GalleryItemNoCaption|image={{{image 7a}}}|caption={{{caption 7a|}}}|label={{{label 7a|}}}|width={{{image 7a width|{{{images 7 width|200}}}}}}|height={{{image 7a height|{{{images 7 height|200}}}}}}|resize={{{images 7 resize|0 | + | --><td> </td>{{Lead/GalleryItemNoCaption|image={{{image 7a}}}|caption={{{caption 7a|}}}|label={{{label 7a|}}}|width={{{image 7a width|{{{images 7 width|200}}}}}}|height={{{image 7a height|{{{images 7 height|200}}}}}}|resize={{{images 7 resize|0}}} }} <!-- HERE 2 braces LESS! |
− | -->{{#if: {{{image 7b|}}}|{{Lead/GalleryItemNoCaption|image={{{image 7b}}}|caption={{{caption 7b|}}}|label={{{label 7b|}}}|width={{{image 7b width|{{{images 7 width|200}}}}}}|height={{{image 7b height|{{{images 7 height|200}}}}}}|resize={{{images 7 resize|0 | + | -->{{#if: {{{image 7b|}}}|{{Lead/GalleryItemNoCaption|image={{{image 7b}}}|caption={{{caption 7b|}}}|label={{{label 7b|}}}|width={{{image 7b width|{{{images 7 width|200}}}}}}|height={{{image 7b height|{{{images 7 height|200}}}}}}|resize={{{images 7 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 7c|}}}|{{Lead/GalleryItemNoCaption|image={{{image 7c}}}|caption={{{caption 7c|}}}|label={{{label 7c|}}}|width={{{image 7c width|{{{images 7 width|200}}}}}}|height={{{image 7c height|{{{images 7 height|200}}}}}}|resize={{{images 7 resize|0 | + | -->{{#if: {{{image 7c|}}}|{{Lead/GalleryItemNoCaption|image={{{image 7c}}}|caption={{{caption 7c|}}}|label={{{label 7c|}}}|width={{{image 7c width|{{{images 7 width|200}}}}}}|height={{{image 7c height|{{{images 7 height|200}}}}}}|resize={{{images 7 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 7d|}}}|{{Lead/GalleryItemNoCaption|image={{{image 7d}}}|caption={{{caption 7d|}}}|label={{{label 7d|}}}|width={{{image 7d width|{{{images 7 width|200}}}}}}|height={{{image 7d height|{{{images 7 height|200}}}}}}|resize={{{images 7 resize|0 | + | -->{{#if: {{{image 7d|}}}|{{Lead/GalleryItemNoCaption|image={{{image 7d}}}|caption={{{caption 7d|}}}|label={{{label 7d|}}}|width={{{image 7d width|{{{images 7 width|200}}}}}}|height={{{image 7d height|{{{images 7 height|200}}}}}}|resize={{{images 7 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 7e|}}}|{{Lead/GalleryItemNoCaption|image={{{image 7e}}}|caption={{{caption 7e|}}}|label={{{label 7e|}}}|width={{{image 7e width|{{{images 7 width|200}}}}}}|height={{{image 7e height|{{{images 7 height|200}}}}}}|resize={{{images 7 resize|0 | + | -->{{#if: {{{image 7e|}}}|{{Lead/GalleryItemNoCaption|image={{{image 7e}}}|caption={{{caption 7e|}}}|label={{{label 7e|}}}|width={{{image 7e width|{{{images 7 width|200}}}}}}|height={{{image 7e height|{{{images 7 height|200}}}}}}|resize={{{images 7 resize|0}}} }} }}<!-- |
--></tr></table>|<!--else--><td>}}</td><!--LEAD 8: Set of up to five images for a single decision option ("lead"): | --></tr></table>|<!--else--><td>}}</td><!--LEAD 8: Set of up to five images for a single decision option ("lead"): | ||
-->{{#if: {{{image 8a|}}}|<td class="leadimgs leadimgs-hor1"><table align="center" class="nested"><tr><!-- | -->{{#if: {{{image 8a|}}}|<td class="leadimgs leadimgs-hor1"><table align="center" class="nested"><tr><!-- | ||
− | --><td> </td>{{Lead/GalleryItemNoCaption|image={{{image 8a}}}|caption={{{caption 8a|}}}|label={{{label 8a|}}}|width={{{image 8a width|{{{images 8 width|200}}}}}}|height={{{image 8a height|{{{images 8 height|200}}}}}}|resize={{{images 8 resize|0 | + | --><td> </td>{{Lead/GalleryItemNoCaption|image={{{image 8a}}}|caption={{{caption 8a|}}}|label={{{label 8a|}}}|width={{{image 8a width|{{{images 8 width|200}}}}}}|height={{{image 8a height|{{{images 8 height|200}}}}}}|resize={{{images 8 resize|0}}} }} <!-- HERE 2 braces LESS! |
− | -->{{#if: {{{image 8b|}}}|{{Lead/GalleryItemNoCaption|image={{{image 8b}}}|caption={{{caption 8b|}}}|label={{{label 8b|}}}|width={{{image 8b width|{{{images 8 width|200}}}}}}|height={{{image 8b height|{{{images 8 height|200}}}}}}|resize={{{images 8 resize|0 | + | -->{{#if: {{{image 8b|}}}|{{Lead/GalleryItemNoCaption|image={{{image 8b}}}|caption={{{caption 8b|}}}|label={{{label 8b|}}}|width={{{image 8b width|{{{images 8 width|200}}}}}}|height={{{image 8b height|{{{images 8 height|200}}}}}}|resize={{{images 8 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 8c|}}}|{{Lead/GalleryItemNoCaption|image={{{image 8c}}}|caption={{{caption 8c|}}}|label={{{label 8c|}}}|width={{{image 8c width|{{{images 8 width|200}}}}}}|height={{{image 8c height|{{{images 8 height|200}}}}}}|resize={{{images 8 resize|0 | + | -->{{#if: {{{image 8c|}}}|{{Lead/GalleryItemNoCaption|image={{{image 8c}}}|caption={{{caption 8c|}}}|label={{{label 8c|}}}|width={{{image 8c width|{{{images 8 width|200}}}}}}|height={{{image 8c height|{{{images 8 height|200}}}}}}|resize={{{images 8 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 8d|}}}|{{Lead/GalleryItemNoCaption|image={{{image 8d}}}|caption={{{caption 8d|}}}|label={{{label 8d|}}}|width={{{image 8d width|{{{images 8 width|200}}}}}}|height={{{image 8d height|{{{images 8 height|200}}}}}}|resize={{{images 8 resize|0 | + | -->{{#if: {{{image 8d|}}}|{{Lead/GalleryItemNoCaption|image={{{image 8d}}}|caption={{{caption 8d|}}}|label={{{label 8d|}}}|width={{{image 8d width|{{{images 8 width|200}}}}}}|height={{{image 8d height|{{{images 8 height|200}}}}}}|resize={{{images 8 resize|0}}} }} }}<!-- |
− | -->{{#if: {{{image 8e|}}}|{{Lead/GalleryItemNoCaption|image={{{image 8e}}}|caption={{{caption 8e|}}}|label={{{label 8e|}}}|width={{{image 8e width|{{{images 8 width|200}}}}}}|height={{{image 8e height|{{{images 8 height|200}}}}}}|resize={{{images 8 resize|0 | + | -->{{#if: {{{image 8e|}}}|{{Lead/GalleryItemNoCaption|image={{{image 8e}}}|caption={{{caption 8e|}}}|label={{{label 8e|}}}|width={{{image 8e width|{{{images 8 width|200}}}}}}|height={{{image 8e height|{{{images 8 height|200}}}}}}|resize={{{images 8 resize|0}}} }} }}<!-- |
--></tr></table>|<!--else--><td>}}</td><!-- | --></tr></table>|<!--else--><td>}}</td><!-- | ||
--></tr><tr><!-- | --></tr><tr><!-- | ||
Line 110: | Line 112: | ||
// 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><!-- | ||
− | -->{{Decision Horizontal/Result| result={{{result 1|}}}| | + | -->{{Decision Horizontal/Result| result={{{result 1|}}}| result text={{{result text 1|}}}| result qualifier={{{resultqualifier 1|}}}{{{result qualifier 1|}}}| common names={{{common names 1|}}}| next={{{next 1|}}} }}<!-- |
− | -->{{Decision Horizontal/Result| result={{{result 2|}}}| | + | -->{{Decision Horizontal/Result| result={{{result 2|}}}| result text={{{result text 2|}}}| result qualifier={{{resultqualifier 2|}}}{{{result qualifier 2|}}}| common names={{{common names 2|}}}| next={{{next 2|}}} }}<!-- |
− | -->{{Decision Horizontal/Result| result={{{result 3|}}}| | + | -->{{Decision Horizontal/Result| result={{{result 3|}}}| result text={{{result text 3|}}}| result qualifier={{{resultqualifier 3|}}}{{{result qualifier 3|}}}| common names={{{common names 3|}}}| next={{{next 3|}}} }}<!-- |
− | -->{{Decision Horizontal/Result| result={{{result 4|}}}| | + | -->{{Decision Horizontal/Result| result={{{result 4|}}}| result text={{{result text 4|}}}| result qualifier={{{resultqualifier 4|}}}{{{result qualifier 4|}}}| common names={{{common names 4|}}}| next={{{next 4|}}} }}<!-- |
− | -->{{Decision Horizontal/Result| result={{{result 5|}}}| | + | -->{{Decision Horizontal/Result| result={{{result 5|}}}| result text={{{result text 5|}}}| result qualifier={{{resultqualifier 5|}}}{{{result qualifier 5|}}}| common names={{{common names 5|}}}| next={{{next 5|}}} }}<!-- |
− | -->{{Decision Horizontal/Result| result={{{result 6|}}}| | + | -->{{Decision Horizontal/Result| result={{{result 6|}}}| result text={{{result text 6|}}}| result qualifier={{{resultqualifier 6|}}}{{{result qualifier 6|}}}| common names={{{common names 6|}}}| next={{{next 6|}}} }}<!-- |
− | -->{{Decision Horizontal/Result| result={{{result 7|}}}| | + | -->{{Decision Horizontal/Result| result={{{result 7|}}}| result text={{{result text 7|}}}| result qualifier={{{resultqualifier 7|}}}{{{result qualifier 7|}}}| common names={{{common names 7|}}}| next={{{next 7|}}} }}<!-- |
− | -->{{Decision Horizontal/Result| result={{{result 8|}}}| | + | -->{{Decision Horizontal/Result| result={{{result 8|}}}| result text={{{result text 8|}}}| result qualifier={{{resultqualifier 8|}}}{{{result qualifier 8|}}}| common names={{{common names 8|}}}| next={{{next 8|}}} }}<!-- |
// END the table for the entire decision couplet, and the row for the outer, row-based-lead compatible table: | // END the table for the entire decision couplet, and the row for the outer, row-based-lead compatible table: | ||
--></tr></table></td></tr></includeonly> | --></tr></table></td></tr></includeonly> |
Revision as of 15:25, 28 May 2010
Version 0.5: Supporting "hide id", "common names" and "result text". Older: if only 2 or 3 alternatives are present, the columns will be formatted to have equal width!
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