• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.55
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Clade gallery

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Main Gallery Caption
Caption 1
Header 1
Label
 

Leaf A

 
 
 

Leaf B

 
 

Leaf C

 
 
 
Footer for cladogram 1
Caption 2
Header 2
Label
 
 

Leaf A

 
 

Leaf B

 
 
 

Leaf C

 
 
Footer for cladogram 2
Caption 3
Header 3
Label
 
 

Leaf A

 
 

Leaf C

 
 
 

Leaf B

 
 
Footer for cladogram 3
Footer for whole gallery
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:Clade/gallery
CSSThis template uses TemplateStyles:
  • Template:Clade gallery/styles.css

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


}}


Main Gallery Caption
Caption 1
Header 1
Label
 

Leaf A

 
 
 

Leaf B

 
 

Leaf C

 
 
 
Footer for cladogram 1
Caption 2
Header 2
Label
 
 

Leaf A

 
 

Leaf B

 
 
 

Leaf C

 
 
Footer for cladogram 2
Caption 3
Header 3
Label
 
 

Leaf A

 
 

Leaf C

 
 
 

Leaf B

 
 
Footer for cladogram 3
Footer for whole 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}} }}


}}
Main Gallery Caption
Header 1
Label
 

Leaf A

 
 
 

Leaf B

 
 

Leaf C

 
 
 
Footer for cladogram 1
Header 2
Label
 
 

Leaf A

 
 

Leaf B

 
 
 

Leaf C

 
 
Footer for cladogram 2
Footer for whole gallery
The above documentation is transcluded from Template:Clade gallery/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Clade_gallery&oldid=8688"
Categories:
  • Lua-based templates
  • Templates using TemplateStyles
Last edited on 20 September 2019, at 07:14

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 20 September 2019, at 07:14.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop