Template:Ahnentafel-compact5

本页使用了标题或全文手工转换
被永久保护的模板
维基百科,自由的百科全书
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{{{1}}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

{{Ahnentafel}}是一個家譜模板。 對於人來說,圖表通常涵蓋5代。 雖然支持任意數量的級別,但在特殊情況下需要時,建議將圖表擴展到最多6個級別(63個節點),不再需要將內容放入流行的屏幕分辨率。

該模板以圖形種族譜系圖英语ahnentafel祖先樹的形式呈現家譜數據(實現為HTML table)。 ahnentafel中的條目作為模板的編號參數給出,並且可以包含任意wikimarkup英语Wiki#Editing

參數及使用方法

{{ahnentafel
|collapsible=yes
|collapsed=yes
|ref=
|float=
|align=
|boxstyle_1=
|boxstyle_2=
|boxstyle_3=
|boxstyle_4=
|boxstyle_5=
|1=
|2=
...
|31=
}}

模板接受以下命名參數:

style
要應用於整個表的CSS 樣式屬性。
boxstyle
要應用於包含條目的框的CSS樣式屬性。
border
框周圍邊框的粗細(以像素為單位)(默認值:2)。
boxstyle_1, boxstyle_2, ...
應用於給定列中的框的CSS樣式屬性。
border_1, border_2, ...
給定列中框周圍的邊框厚度。
align
圖表的對齊方式:左,右,中心
headnotes
在圖表上方添加可選文本(在可折疊模式下最有用)
footnotes
在圖表下方添加可選文本(在可折疊模式下最有用)

可折疊外部容器的選項(如果已啟用)

collapsible
set to yes to make the table collapsible
collapsed
set to no to expand by default, and yes to collapse by default
title
overrides the default container title when collapsible
ref
adds an optional reference to the end of the title
float
float the outer container: left, right, none, or center (default)
width
overrides the default outer container width

The column-specific style attributes are included after (and thus override) the generic ones, which are included after the default styles and the border thickness specified by the border parameter(s).

範例

Blank template for five generations:

{{ahnentafel
|collapsible=yes
|collapsed=yes
|align=center
|ref=
|boxstyle_1=background-color: #fcc;
|boxstyle_2=background-color: #fb9;
|boxstyle_3=background-color: #ffc;
|boxstyle_4=background-color: #bfc;
|boxstyle_5=background-color: #9fe;
|1=1.
|2=2.
|3=3.
|4=4.
|5=5.
|6=6.
|7=7.
|8=8.
|9=9.
|10=10.
|11=11.
|12=12.
|13=13.
|14=14.
|15=15.
|16=16.
|17=17.
|18=18.
|19=19.
|20=20.
|21=21.
|22=22.
|23=23.
|24=24.
|25=25.
|26=26.
|27=27.
|28=28.
|29=29.
|30=30.
|31=31.
}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16.
 
 
 
 
 
 
 
8.
 
 
 
 
 
 
 
 
 
 
 
17.
 
 
 
 
 
 
 
4.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18.
 
 
 
 
 
 
 
9.
 
 
 
 
 
 
 
 
 
 
 
19.
 
 
 
 
 
 
 
2.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20.
 
 
 
 
 
 
 
10.
 
 
 
 
 
 
 
 
 
 
 
21.
 
 
 
 
 
 
 
5.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22.
 
 
 
 
 
 
 
11.
 
 
 
 
 
 
 
 
 
 
 
23.
 
 
 
 
 
 
 
1.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24.
 
 
 
 
 
 
 
12.
 
 
 
 
 
 
 
 
 
 
 
25.
 
 
 
 
 
 
 
6.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26.
 
 
 
 
 
 
 
13.
 
 
 
 
 
 
 
 
 
 
 
27.
 
 
 
 
 
 
 
3.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28.
 
 
 
 
 
 
 
14.
 
 
 
 
 
 
 
 
 
 
 
29.
 
 
 
 
 
 
 
7.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30.
 
 
 
 
 
 
 
15.
 
 
 
 
 
 
 
 
 
 
 
31.
 
 
 
 
 
 


參見

維護