defzone.net@gmail.com Liên hệ
DZ
DefZone.Net

Kien thuc cong nghe & giai tri

Bài viết Địa điểm Wiki Cửa hàng
  1. Trang chủ
  2. Wiki
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 (sandbox)
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

[edit]

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 (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
DZ
DefZone.Net

Noi chia se kien thuc, huong dan va kham pha cong nghe.

Liên kết nhanh

Trang chủ Bài viết Wiki Cửa hàng Liên hệ

Liên hệ

Email: defzone.net@gmail.com
Điện thoại: +84 762 559 696
Địa chỉ: Thiên Hương, Thủy Nguyên, Hải Phòng

Đăng ký nhận tin

Nhận bài viết và cập nhật mới nhất qua email.

© 2026 DefZone.Net. All rights reserved.
PrivacyTermsSitemap Language