Template:Tree/doc:修订间差异

(merge from offical wiki)
 
无编辑摘要
 
第18行: 第18行:
{{tree/split2xor | colour1=1 |colour2=3 }}
{{tree/split2xor | colour1=1 |colour2=3 }}
It is also possible to name the branches.
It is also possible to name the branches.
:<code><nowiki>{{tree/split2xor | left= Left branch | right= Right branch }}</nowiki></code>:
:<code><nowiki>{{tree/split2xor | left= 左分支 | right= 右分支 }}</nowiki></code>:




{{tree/split2xor | left= Left branch | right= Right branch }}
{{tree/split2xor | left= 左分支 | right= 右分支 }}
;2boxes
;2boxes
:<code><nowiki>{{/tree/2boxes}}</nowiki></code>:
:<code><nowiki>{{/tree/2boxes}}</nowiki></code>:

2020年12月31日 (四) 16:33的最新版本

这是Template:Tree的模板文档
当直接浏览时,使用变量可能会失效,请不要使用硬编码来代替页面名或地址。

This template is to display the doctrine trees. The following elements are available:

startbox
{{tree/startbox}}:

{{{1}}}

1box
{{tree/1box}}:

{{{1}}}

split2
{{tree/split2}}:

{{{1}}}

{{{2}}}

split2xor
{{tree/split2xor}}:
⇐  二选一  ⇒

{{{1}}}

{{{2}}}

There is the possibility to illustrate the exclusivity of the branches by colours.

{{tree/split2xor | colour1=1 |colour2=3 }}:
⇐  二选一  ⇒

{{{1}}}

{{{2}}}

It is also possible to name the branches.

{{tree/split2xor | left= 左分支 | right= 右分支 }}:


左分支
右分支
⇐  二选一  ⇒

{{{1}}}

{{{2}}}

2boxes
{{/tree/2boxes}}:

{{{1}}}

{{{2}}}

There is the possibility to illustrate the exclusivity of the branches by colours.

{{tree/2boxes | colour1=2 |colour2=1 }}:

{{{1}}}

{{{2}}}

Unite2
{{tree/unite2}}:

{{{1}}}

Split3
{{tree/split3}}:

{{{1}}}

{{{2}}}

{{{3}}}

3boxes
{{tree/3boxes}}:

{{{1}}}

{{{2}}}

{{{3}}}

Unite3
{{tree/unite3}}:

{{{1}}}

Use the {{Techcell}} template to fill the boxes.