Difference between revisions of "Template:Cladogram"
Jump to navigation
Jump to search
imported>Frietjes (Adding unknown parameter tracking through Category:Pages using cladogram with unknown parameters using Module:check for unknown parameters) |
imported>Frietjes (more robust align and width parameters, tracking for custom margins (we can use |style= if this is really needed)) |
||
| Line 1: | Line 1: | ||
| − | {| style="border: 1px solid #ccc; background-color: white; | + | {| style="border: 1px solid #ccc; background-color: white; vertical-align: middle; width: {{if number|{{{width|248}}}|248}}px; {{#switch:{{lc:{{{align|}}} |
| + | | left = margin-left:0; margin-right:1em; clear:left; | ||
| + | | center | centre = margin-left:auto; margin-right:auto; | ||
| + | | right | #default = margin-left:1em; margin-right:0; clear:right; | ||
| + | }} {{style|}}}" | ||
|- | |- | ||
{{#if:{{{title|}}}| | {{#if:{{{title|}}}| | ||
| Line 17: | Line 21: | ||
}} | }} | ||
|}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using cladogram with unknown parameters|_VALUE_{{PAGENAME}}]]}} | |}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using cladogram with unknown parameters|_VALUE_{{PAGENAME}}]]}} | ||
| − | |preview=Page using [[Template:Cladogram]] with unknown parameter "_VALUE_" | + | |preview=Page using [[Template:Cladogram]] with unknown parameter "_VALUE_" |
| − | | 1 | align | caption | clade | clade2 | clades | clades2 | cladogram | cladogram2 | + | | 1 | align | caption | clade | clade2 | clades | clades2 | cladogram | cladogram2 | style | title | width |
}}<noinclude>{{documentation}}</noinclude> | }}<noinclude>{{documentation}}</noinclude> | ||
Revision as of 14:59, 15 September 2017
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
| File:Lua-Logo.svg | This template uses Lua: |
Usage
- Parameters
|title=text to display at top|cladogram=cladogram, constructed with Template:Clade|cladogram2=second cladogram, constructed in the same way|caption=caption to display under cladogram|align=whether the cladogram should be right- or left-aligned (default right)
Example:
| Example | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
| Sample of Template:Cladogram |
{{cladogram|title=Example
|caption=Sample of Template:Cladogram
|cladogram={{clade| style=font-size:85%;line-height:75%;width:300px;
|label1=[[Neornithes]]
|1={{clade
|label1=[[Paleognathae]]
|1=
|label2= [[Neognathae]]
|2={{clade
|1=Other birds
|label1=
|label2=[[Galloanserae]]
|2={{clade
|1=[[Anseriformes]]
|label2=
|2={{clade
|1=[[Galliformes]]
|2=[[Craciformes]]
}}
}}
}}
}}
}}
}}
Tracking category
See also
- {{Clade}}
| The above documentation is transcluded from Template:Cladogram/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |