Difference between revisions of "Template:Cladogram/doc"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(removed parent category)
imported>Frietjes
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE END OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE END OF THIS PAGE -->
 
+
==Usage==
====Usage====
 
 
;Parameters:
 
;Parameters:
 
:{{para|title}} text to display at top
 
:{{para|title}} text to display at top
Line 15: Line 14:
 
{{cladogram|title=Example
 
{{cladogram|title=Example
 
|caption=Sample of Template:Cladogram
 
|caption=Sample of Template:Cladogram
|cladogram={{clade| style=font-size:85%;line-height:75%;width:{{{width|300}}}px;
+
|cladogram={{clade| style=font-size:85%;line-height:75%;width:300px;
 
     |label1=[[Neornithes]]&nbsp;&nbsp;
 
     |label1=[[Neornithes]]&nbsp;&nbsp;
 
     |1={{clade
 
     |1={{clade
Line 38: Line 37:
 
}}<pre>{{cladogram|title=Example
 
}}<pre>{{cladogram|title=Example
 
|caption=Sample of Template:Cladogram
 
|caption=Sample of Template:Cladogram
|cladogram={{clade| style=font-size:85%;line-height:75%;width:{{{width|300}}}px;
+
|cladogram={{clade| style=font-size:85%;line-height:75%;width:300px;
 
     |label1=[[Neornithes]]&nbsp;&nbsp;
 
     |label1=[[Neornithes]]&nbsp;&nbsp;
 
     |1={{clade
 
     |1={{clade
Line 60: Line 59:
 
     }}
 
     }}
 
}}</pre>
 
}}</pre>
;Note on the preceding example:
 
:The following syntax:
 
::{{code|<nowiki>width:{{{width|300}}}px;</nowiki>}}
 
:is appropriate when used ''inside of a template''. When used in a standard article, this should be coded simply as:
 
::{{code|width:300px;}}
 
  
===See also===
+
==Tracking category==
 +
* {{clc|Pages using cladogram with unknown parameters}}
 +
 
 +
==See also==
 
* {{tl|Clade}}
 
* {{tl|Clade}}
  

Revision as of 14:15, 15 September 2017

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