编辑“︁
Template:Tree chart/doc
”︁(章节)
跳转到导航
跳转到搜索
这是
Tree chart
模板的
文档页面
。
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
== 参数 == 本模版中,每个参数代表一个“格子”或者一个“框”。 *'''格子'''内含有线状元素,用来生成横纵线条以及各种拐角以连接各个“框”。每一个格子用简单的字符参数来描述,一个特别的例子是'''空格子''',用一个空格来描述不含任何线条的格子。下面列出模版支持的格子类型: {| style="float: left; margin-left: 1em;" |+ '''實體線''' |- | {{big|<code>!</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|!}}{{Tree chart/end}} || | {{big|<code>,</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|,}}{{Tree chart/end}} || | {{big|<code>v</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|v}}{{Tree chart/end}} || | {{big|<code>.</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|.}}{{Tree chart/end}} || |- | {{big|<code>-</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|-}}{{Tree chart/end}} || | {{big|<code>)</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|)}}{{Tree chart/end}} || | {{big|<code>+</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|+}}{{Tree chart/end}} || | {{big|<code>(</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|(}}{{Tree chart/end}} || |- | || || | {{big|<code>`</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|`}}{{Tree chart/end}} || | {{big|<code>^</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|^}}{{Tree chart/end}} || | {{big|<code>'</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|'}}{{Tree chart/end}} || |} {| style="float: left; margin-left: 1em;" |+ '''虛線''' |- | {{big|<code>:</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|:}}{{Tree chart/end}} || | {{big|<code>F</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|F}}{{Tree chart/end}} || | {{big|<code>V</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|V}}{{Tree chart/end}} || | {{big|<code>7</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|7}}{{Tree chart/end}} || |- | {{big|<code>~</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|~}}{{Tree chart/end}} || | {{big|<code>D</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|D}}{{Tree chart/end}} || | {{big|<code>%</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|%}}{{Tree chart/end}} || | {{big|<code>C</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|C}}{{Tree chart/end}} || |- | || || | {{big|<code>L</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|L}}{{Tree chart/end}} || | {{big|<code>A</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|A}}{{Tree chart/end}} || | {{big|<code>J</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|J}}{{Tree chart/end}} || |} {| style="float: left; margin-left: 1em;" |+ '''點線''' |- | {{big|<code>Q</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|Q}}{{Tree chart/end}} || | {{big|<code>S</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|S}}{{Tree chart/end}} || | {{big|<code>M</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|M}}{{Tree chart/end}} || | {{big|<code>T</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|T}}{{Tree chart/end}} || |- | {{big|<code>P</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|P}}{{Tree chart/end}} || | {{big|<code>H</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|H}}{{Tree chart/end}} || | {{big|<code>R</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|R}}{{Tree chart/end}} || | {{big|<code>G</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|G}}{{Tree chart/end}} || |- | || || | {{big|<code>Y</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|Y}}{{Tree chart/end}} || | {{big|<code>W</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|W}}{{Tree chart/end}} || | {{big|<code>Z</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|Z}}{{Tree chart/end}} || |} {| style="float: left; margin-left: 1em;" |+ '''水平虛線+垂直實線''' | {{big|<code>fy</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|fy}}{{Tree chart/end}} | {{big|<code>y</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|y}}{{Tree chart/end}} | {{big|<code>ye</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|ye}}{{Tree chart/end}} |- | {{big|<code>f</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|f}}{{Tree chart/end}} | {{big|<code>t</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|t}}{{Tree chart/end}} | {{big|<code>e</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|e}}{{Tree chart/end}} |- | {{big|<code>fh</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|fh}}{{Tree chart/end}} | {{big|<code>h</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|h}}{{Tree chart/end}} | {{big|<code>he</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|he}}{{Tree chart/end}} |} {| style="float: left; margin-left: 1em;" |+ '''水平實線+垂直虛線''' | {{big|<code>dj</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|dj}}{{Tree chart/end}} | {{big|<code>j</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|j}}{{Tree chart/end}} | {{big|<code>jc</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|jc}}{{Tree chart/end}} |- | {{big|<code>d</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|d}}{{Tree chart/end}} | {{big|<code>*</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|*}}{{Tree chart/end}} | {{big|<code>c</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|c}}{{Tree chart/end}} |- | {{big|<code>di</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|di}}{{Tree chart/end}} | {{big|<code>i</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|i}}{{Tree chart/end}} | {{big|<code>ic</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|ic}}{{Tree chart/end}} |} {| style="float: left; margin-left: 1em;" |+'''水平實線+垂直點線''' | {{big|<code>kr</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|kr}}{{Tree chart/end}} | {{big|<code>r</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|r}}{{Tree chart/end}} | {{big|<code>rl</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|rl}}{{Tree chart/end}} |- | {{big|<code>k</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|k}}{{Tree chart/end}} | {{big|<code>a</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|a}}{{Tree chart/end}} | {{big|<code>l</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|l}}{{Tree chart/end}} |- | {{big|<code>kq</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|kq}}{{Tree chart/end}} | {{big|<code>q</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|q}}{{Tree chart/end}} | {{big|<code>ql</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|ql}}{{Tree chart/end}} |} {| style="float: left; margin-left: 1em;" |+ '''水平虛線+垂直點線''' | {{big|<code>kr2</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|kr2}}{{Tree chart/end}} | {{big|<code>r2</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|r2}}{{Tree chart/end}} | {{big|<code>rl2</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|rl2}}{{Tree chart/end}} |- | {{big|<code>k2</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|k2}}{{Tree chart/end}} | {{big|<code>a2</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|a2}}{{Tree chart/end}} | {{big|<code>l2</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|l2}}{{Tree chart/end}} |- |{{big|<code>kq2</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|kq2}}{{Tree chart/end}} | {{big|<code>q2</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|q2}}{{Tree chart/end}} | {{big|<code>ql2</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|ql2}}{{Tree chart/end}} |} {| style="float: left; margin-left: 1em;" |+ '''水平點線+垂直實線''' | {{big|<code>om</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|om}}{{Tree chart/end}} | {{big|<code>m</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|m}}{{Tree chart/end}} | {{big|<code>mp</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|mp}}{{Tree chart/end}} |- | {{big|<code>o</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|o}}{{Tree chart/end}} | {{big|<code>b</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|b}}{{Tree chart/end}} | {{big|<code>p</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|p}}{{Tree chart/end}} |- | {{big|<code>on</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|on}}{{Tree chart/end}} | {{big|<code>n</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|n}}{{Tree chart/end}} | {{big|<code>np</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|np}}{{Tree chart/end}} |} {| style="float: left; margin-left: 1em;" |+ '''水平點線+垂直虛線''' | {{big|<code>om2</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|om2}}{{Tree chart/end}} | {{big|<code>m2</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|m2}}{{Tree chart/end}} | {{big|<code>mp2</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|mp2}}{{Tree chart/end}} |- | {{big|<code>o2</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|o2}}{{Tree chart/end}} | {{big|<code>b2</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|b2}}{{Tree chart/end}} | {{big|<code>p2</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|p2}}{{Tree chart/end}} |- | {{big|<code>on2</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|on2}}{{Tree chart/end}} | {{big|<code>n2</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|n2}}{{Tree chart/end}} | {{big|<code>np2</code>}} || style="border: 1px solid gray;" | {{Tree chart/start}}{{Tree chart|np2}}{{Tree chart/end}} |} {{clear}} {| |+ '''雜項'''<!-- This subset is an insufficient set or questionable, but maps onto tiles that exist in {{familytree}}: --> |- | || | {{big|<code>T2</code>}} ||style="border:1px solid gray"| {{Tree chart/start}}{{Tree chart|T2}}{{Tree chart/end}} |- | {{big|<code>G2</code>}} ||style="border:1px solid gray"| {{Tree chart/start}}{{Tree chart|G2}}{{Tree chart/end}} | {{big|<code>X</code>}} ||style="border:1px solid gray"| {{Tree chart/start}}{{Tree chart|X}}{{Tree chart/end}} | {{big|<code>K</code>}} ||style="border:1px solid gray"| {{Tree chart/start}}{{Tree chart|K}}{{Tree chart/end}} | {{big|<code>l4</code>}} ||style="border:1px solid gray"| {{Tree chart/start}}{{Tree chart|l4}}{{Tree chart/end}} |- | || | {{big|<code>U</code>}} ||style="border:1px solid gray"| {{Tree chart/start}}{{Tree chart|U}}{{Tree chart/end}} |} <br clear="left" /> *'''框'''内可以填写任意的维基标记,框内的内容用附加命名变量的方法来加以描述。每一个框为'''三个格子'''宽,并且通常具有2px宽的黑边。附加的变量可以取用任何合法的名字,但是建议不要使用单字符的名字以免与“格子”冲突。 ===框的外型設定=== 框的外形可以由参数'''border'''和'''boxstyle'''控制,前一个以[[像素]]为单位控制框边的宽度,后者可以为任意[[CSS]]语句,用来修饰框的外观。{{tl|chart/start}}模版接受一个可选的'''style'''参数来制定整个表格的格式。例如下列代码: <syntaxhighlight lang=wikitext> {{Tree chart/start}} {{Tree chart|border=0|boxstyle=background:#dfd;| | FOO |y| BAR | |FOO=Box 1|BAR=Box 2}} {{Tree chart|border=0|boxstyle=background:#dfd;| | |,|-|^|-|.| | }} {{Tree chart|border=0|boxstyle=background:#dfd;| | FOO | | BAR | |FOO=Box 3|BAR=Box 4}} {{Tree chart/end}} </syntaxhighlight> 产生如下效果: {{Tree chart/start}} {{Tree chart|border=0|boxstyle=background:#dfd;| | FOO |y| BAR | |FOO=Box 1|BAR=Box 2}} {{Tree chart|border=0|boxstyle=background:#dfd;| | |,|-|^|-|.| | }} {{Tree chart|border=0|boxstyle=background:#dfd;| | FOO | | BAR | |FOO=Box 3|BAR=Box 4}} {{Tree chart/end}} 此外,也接受每個框有各自的外觀設定。例如下列代码: <syntaxhighlight lang=wikitext> {{Tree chart/start}} {{Tree chart| | | | |CLEAR| | | | |CLEAR=Clear box}} {{Tree chart| |,|-|-|'|!|`|-|-|.| }} {{Tree chart|RED |~| GREEN |~|BLUE |RED=Red box|GREEN=Green box|BLUE=Blue box |boxstyle_RED =background-color: #faa; |boxstyle_ GREEN =background-color: #afa; |boxstyle_BLUE =background-color: #aaf; }} {{Tree chart/end}} </syntaxhighlight> 产生如下效果: {{Tree chart/start}} {{Tree chart| | | | |CLEAR| | | | |CLEAR=Clear box}} {{Tree chart| |,|-|-|'|!|`|-|-|.| }} {{Tree chart|RED |~| GREEN |~|BLUE |RED=Red box|GREEN=Green box|BLUE=Blue box |boxstyle_RED =background-color: #faa; |boxstyle_ GREEN =background-color: #afa; |boxstyle_BLUE =background-color: #aaf; }} {{Tree chart/end}} *注意本例中的RED、GREEN和BLUE所有相關參數,如果原始定義框位的名字前後存在空格,那麼在定義其CSS風格時就必須在「boxstyle_」後補充原有的空格數,所以一般來說並不建議在定義框名字時留有任何不必要的空格。 === 移植自Familytree須知 === 本模板基本對應{{tl|Familytree}}的大部分參數,但有一些小改動編者必須先讀,首先是在Familytree中你可以以「<code><nowiki>|}}</nowiki></code>」完結一行模板,但在Chart中請移除那個不必要的直桿「<code><nowiki>|</nowiki></code>」,另外有5個樹枝的參數定義改名及新增兩個混合型丁字樹枝: {| class="wikitable" style="text-align:center; float: left; margin-left: 1em;" |+ !標題!!{{tl|family tree}}!!{{tl|Tree chart}}||備註 |- |{{Tree chart/start}}{{Tree chart|c}}{{Tree chart/end}}||<code>{</code>||<code>c</code>||Change |- |{{Tree chart/start}}{{Tree chart|d}}{{Tree chart/end}}||<code>}</code>||<code>d</code>||Change |- |{{Tree chart/start}}{{Tree chart|t}}{{Tree chart/end}}||<code>#</code>||<code>t</code>||Change |- |{{Tree chart/start}}{{Tree chart|e}}{{Tree chart/end}}||<code>[</code>||<code>e</code>||Change |- |{{Tree chart/start}}{{Tree chart|f}}{{Tree chart/end}}||<code>]</code>||<code>f</code>||Change |- |{{Tree chart/start}}{{Tree chart|di}}{{Tree chart/end}}||<code>b</code>||<code>di</code>||Change |- |{{Tree chart/start}}{{Tree chart|fh}}{{Tree chart/end}}||<code>c</code>||<code>fh</code>||Change |- |{{Tree chart/start}}{{Tree chart|ic}}{{Tree chart/end}}||<code>d</code>||<code>ic</code>||Change |- |{{Tree chart/start}}{{Tree chart|he}}{{Tree chart/end}}||<code>j</code>||<code>he</code>||Change |- |{{Tree chart/start}}{{Tree chart|ye}}{{Tree chart/end}}||<code>n</code>||<code>ye</code>||Change |- |{{Tree chart/start}}{{Tree chart|om2}}{{Tree chart/end}}||<code>p</code>||<code>om2</code>||Change |- |{{Tree chart/start}}{{Tree chart|mp2}}{{Tree chart/end}}||<code>q</code>||<code>mp2</code>||Change |- |{{Tree chart/start}}{{Tree chart|kr2}}{{Tree chart/end}}||<code>r</code>||<code>kr2</code>||Change |} {| class="wikitable" style="text-align:center; float: left; margin-left: 1em;" |+Miscellaneous tiles !Tile!!{{tl|family tree}}!!{{tl|Tree chart}}||備註 |- |{{Tree chart/start}}{{Tree chart|G2}}{{Tree chart/end}}||<code>G</code>||<code>G2</code>||Change |- ||{{Tree chart/start}}{{Tree chart|K}}{{Tree chart/end}}||<code>K</code>||<code>K</code>||Same |- |{{Tree chart/start}}{{Tree chart|T2}}{{Tree chart/end}}||<code>T</code>||<code>T2</code>||Change |- ||{{Tree chart/start}}{{Tree chart|U}}{{Tree chart/end}}||<code>U</code>||<code>U</code>||Same |- ||{{Tree chart/start}}{{Tree chart|X}}{{Tree chart/end}}||<code>X</code>||<code>X</code>||Same |- |{{Tree chart/start}}{{Tree chart|l4}}{{Tree chart/end}}||<code>k</code>||<code>l4</code>||Change |} {{clear}}
摘要:
请注意,所有对Local Chinese Wikipedia的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
Project:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
命名空间
模板
讨论
大陆简体
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
编辑
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息