3,425
个编辑
更改
创建页面,内容为“<includeonly>{{#Widget:TableLineVertical|class={{{class}}}|column={{{column}}}|style={{{style|1px dashed black}}}}}</includeonly><noinclude> To change the style of…”
<includeonly>{{#Widget:TableLineVertical|class={{{class}}}|column={{{column}}}|style={{{style|1px dashed black}}}}}</includeonly><noinclude>
To change the style of vertical border line of
<nowiki>{{</nowiki>{{TableLineVertical | class = ''ClassName'' | column = ''ColumnNumber'' | style = ''BorderStyle''}}<nowiki>}}</nowiki>
== Parameters ==
=== class ===
Specifies the class name.
=== column ===
Specifies changing the vertical border style of which column. Selects the border next to (at right) the column.
=== style ===
Border style. Optional. Defaults to <code>1px solid black</code>.
== Example ==
<pre>{{TableLineVertical | class = my_table | column = 2 | style = 2px dotted #999}}</pre>
{{TableLineVertical | class = my_table | column = 2 | style = 2px dotted #999}}
Table:
<pre style="font-size: smaller">{| class="wikitable my_table"
|-
! Head 1 !! Head 2 !! Head 3
|-
| Text 1-1 || Text 1-2 || Text 1-3
|-
| Text 2-1 || Text 2-2 || Text 2-3
|-
| Text 3-1 || Text 3-2 || Text 3-3
|}</pre>
Result:
{| class="wikitable my_table"
|-
! Head 1 !! Head 2 !! Head 3
|-
| Text 1-1 || Text 1-2 || Text 1-3
|-
| Text 2-1 || Text 2-2 || Text 2-3
|-
| Text 3-1 || Text 3-2 || Text 3-3
|}
</noinclude>
To change the style of vertical border line of
<nowiki>{{</nowiki>{{TableLineVertical | class = ''ClassName'' | column = ''ColumnNumber'' | style = ''BorderStyle''}}<nowiki>}}</nowiki>
== Parameters ==
=== class ===
Specifies the class name.
=== column ===
Specifies changing the vertical border style of which column. Selects the border next to (at right) the column.
=== style ===
Border style. Optional. Defaults to <code>1px solid black</code>.
== Example ==
<pre>{{TableLineVertical | class = my_table | column = 2 | style = 2px dotted #999}}</pre>
{{TableLineVertical | class = my_table | column = 2 | style = 2px dotted #999}}
Table:
<pre style="font-size: smaller">{| class="wikitable my_table"
|-
! Head 1 !! Head 2 !! Head 3
|-
| Text 1-1 || Text 1-2 || Text 1-3
|-
| Text 2-1 || Text 2-2 || Text 2-3
|-
| Text 3-1 || Text 3-2 || Text 3-3
|}</pre>
Result:
{| class="wikitable my_table"
|-
! Head 1 !! Head 2 !! Head 3
|-
| Text 1-1 || Text 1-2 || Text 1-3
|-
| Text 2-1 || Text 2-2 || Text 2-3
|-
| Text 3-1 || Text 3-2 || Text 3-3
|}
</noinclude>