Template:Clade gallery/doc
From HandWiki
< Template:Clade gallery
Revision as of 09:28, 20 September 2019 by imported>Jts1882 (update module)
This is a documentation subpage for Template:Clade gallery It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
This template uses TemplateStyles: |
This template displays a gallery of cladograms generated by the {{Clade}} template with various captions, headers and footers. It can displayer the cladograms horizontally, in which case they wrap when the screen is not wide enough, or displayed vertically as a side bar (similar to {{Cladogram}}.
- General parameters for whole gallery
|align=center|left|right
aligns output in centre or to left or right (default:centre)|vertical=
displays the gallery of cladograms vertically (default: horizontal display)|shading=
uses shading similar to wikipedia tables for the elements in the gallery (default: none)|width=
and|height=
set the width and height of the all elements in the gallery (must specify units, e.g. 20px). By default they will size individually so may not align neatly if the content has different sizes.|main-caption=
displays a caption for the whole gallery (default: none)|main-footer=
displays a footer for the whole gallery (default: none)|main-borders=
displays borders around whole gallery (default: none)
- Parameters for individual elements of galllery
|cladogramN=
(N=1, 2, 3 ... 15) takes the code for each cladogram using {{Clade}}. This element is required.|captionN=
sets a caption for the corresponding cladogram (default:none)|headerN=
sets a header for the corresponding cladogram (default:none)|footerN=
sets a footer for the corresponding cladogram (default:none)
Usage
Horizontal gallery
The following code generates the output shown immediately below.
{{Clade gallery |main-caption=Main Gallery Caption |main-footer=Footer for whole gallery |main-borders= |shading= |width=200px |height=225px |caption1=Caption 1 |caption2=Caption 2 |caption3=Caption 3 |header1=Header 1 |header2=Header 2 |header3=Header 3 |footer1=Footer for cladogram 1 |footer2=Footer for cladogram 2 |footer3=Footer for cladogram 3 |cladogram1={{clade |label1=Label |1={{clade |1=Leaf A |2={{clade |1=Leaf B |2=Leaf C}} }} }} |cladogram2={{clade |label1=Label |1={{clade |1={{clade |1=Leaf A |2=Leaf B }} |2=Leaf C}} }} |cladogram3={{clade |label1=Label |1={{clade |1={{clade |1=Leaf A |2=Leaf C }} |2=Leaf B}} }} }}
Script error: No such module "Clade/gallery".
Vertical gallery as sidebar
This example shows a vertical gallery without shading.
{{Clade gallery |main-caption=Main Gallery Caption |main-footer=Footer for whole gallery |vertical= |align=right |width=200px |height=225px |caption1=Caption 1 |caption2=Caption 2 |caption3=Caption 3 |header1=Header 1 |header2=Header 2 |header3=Header 3 |footer1=Footer for cladogram 1 |footer2=Footer for cladogram 2 |footer3=Footer for cladogram 3 |cladogram1={{clade |label1=Label |1={{clade |1=Leaf A |2={{clade |1=Leaf B |2=Leaf C}} }} }} |cladogram2={{clade |label1=Label |1={{clade |1={{clade |1=Leaf A |2=Leaf B }} |2=Leaf C}} }} |cladogram3={{clade |label1=Label |1={{clade |1={{clade |1=Leaf A |2=Leaf C }} |2=Leaf B}} }} }} |
Script error: No such module "Clade/gallery". |