Template:Ahnentafel/doc
外观
| 此頁面是Template:Ahnentafel的Template文档。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
| 此模板使用Lua语言: |
{{Ahnentafel}}是一個家譜模板。 對於人來說,圖表通常涵蓋5代。 雖然支持任意數量的級別,但在特殊情況下需要時,建議將圖表擴展到最多6個級別(63個節點),不再需要將內容放入流行的屏幕分辨率。
該模板以圖形種族譜系圖祖先樹的形式呈現家譜數據(實現為HTML table)。 ahnentafel中的條目作為模板的編號參數給出,並且可以包含任意wikimarkup。
參數及使用方法
[编辑]{{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
yesto make the table collapsible collapsed- set to
noto expand by default, andyesto 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, orcenter(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. | ||||||||||||||||
參見
[编辑]- Wikipedia:Family trees — for alternatives
{{ahnentafel-tree}}uses{{Tree list}}and will handle up to an ahnentafel of 511 places (9 generations), but will also display as little as one generation.{{Tree chart}}– can be used to build a bottom up, top down or right to left ahnentafel chart see Family trees § Tree chart template
維護
[编辑]- Category:使用ahnentafel模板帶有border的條目(0)
- Category:使用ahnentafel模板帶有style的條目(0)
- Category:使用ahnentafel模板帶有boxstyle的條目(0)
- Category:使用ahnentafel模板未知參數的條目(0)