Шаблон:Cladogram/doc

Материал из Тептар — свободной энциклопедии
Перейти к навигации Перейти к поиску

Внешний шаблон для рекурсивного {{clade}}, см. его документацию.

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)
|left= left margin (default 1; 0 when left-aligned)
|right= right margin (default 0; 1 when left-aligned)


Example:

Example
Sample of Template:Cladogram
{{cladogram|title=Example
|caption=Sample of Template:Cladogram
|cladogram={{clade| style=font-size:85%;line-height:75%;width:{{{width|300}}}px;
    |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]]
                    }}
                }}
            }}
        }}
    }}
}}
Note on the preceding example
The following syntax:
width:{{{width|300}}}px;
is appropriate when used inside of a template. When used in a standard article, this should be coded simply as:
width:300px;

См. также[править код]