Difference between revisions of "Template:Cladogram/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Ucucha
(fix)
imported>Jts1882
(sandbox version fixing width)
 
Line 1: Line 1:
{| style="border: 1px solid #ccc; background-color: white; margin-left: {{{left|{{#ifeq:{{{align|}}}|left|0|1}}}}}em; margin-right: {{{right|{{#ifeq:{{{align|}}}|left|1|0}}}}}em; width: {{{width|248}}}px; {{#ifeq:{{{align|}}}|center|margin: auto; clear: both;|float: {{{align|right}}}; clear: {{{align|right}}};}} vertical-align: middle"
+
<noinclude>
 +
{{cladogram/sandbox|title=Example
 +
|caption=Sample of Template:Cladogram |width=800
 +
|cladogram={{clade |label1=x |1={{clade |1=leaf1 |2=leaf2 }}}}
 +
}}
 +
</noinclude>{| style="border: 1px solid #ccc; background-color: white; vertical-align: middle; width: {{if number|{{{width|}}}|{{{width}}}|248}}px; {{#switch:{{lc:{{{align|}}}}}
 +
| left = margin:0.2em 1em 0.2em 0; float:left; clear:left;
 +
| center | centre =  margin:0.2em auto;  
 +
| none =
 +
| right | #default = margin:0.2em 0 0.2em 1em; float:right; clear:right;
 +
}} {{{style|}}}"
 
|-
 
|-
 
{{#if:{{{title|}}}|
 
{{#if:{{{title|}}}|
 
{{!}} style="text-align: center; font-weight: bold; border: 0; padding: 0;" {{!}} {{{title}}}
 
{{!}} style="text-align: center; font-weight: bold; border: 0; padding: 0;" {{!}} {{{title}}}
{{!}}-
 
 
}}
 
}}
 +
|-
 
| style="border: 1px solid #dedede; padding: 3px" |
 
| style="border: 1px solid #dedede; padding: 3px" |
 
{{{cladogram|{{{clades|{{{clade|{{{1|}}}}}}}}}}}}
 
{{{cladogram|{{{clades|{{{clade|{{{1|}}}}}}}}}}}}
{{#if:{{{cladogram2|}}} | {{!}}-
+
|-
 +
{{#if:{{{cladogram2|{{{clades2|{{{clade2|}}}}}}}}} |
 
{{!}} style{{=}}"border: 1px solid #dedede; padding: 3px" {{!}}
 
{{!}} style{{=}}"border: 1px solid #dedede; padding: 3px" {{!}}
 
{{{cladogram2|{{{clades2|{{{clade2|}}}}}}}}}
 
{{{cladogram2|{{{clades2|{{{clade2|}}}}}}}}}
 
}}
 
}}
 
|-
 
|-
| style="text-align: left; font-size: 90%; width: {{{width|248}}}px; border: 0; padding: 0;" | {{{caption|}}}
+
{{#if:{{{caption|}}}|
|}<noinclude>{{template doc}} [[da:Template:Kladogram]]</noinclude>
+
{{!}} style{{=}}"text-align: left; font-size: 88%; border: 0; padding: 0;" {{!}} {{{caption|}}}
 +
}}
 +
|}{{#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_"
 +
| 1 | align | caption | clade | clade2 | clades | clades2 | cladogram | cladogram2 | style | title | width
 +
}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 11:40, 3 November 2018

Example
x

leaf1

leaf2

Sample of Template:Cladogram
Template documentation[view] [edit] [history] [purge]

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
Neornithes  
Paleognathae

 

 Neognathae 
 

Other birds

Galloanserae 

Anseriformes

    

Galliformes

Craciformes

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