“模板:TableLineVertical”的版本间的差异

来自Ballance Wiki
跳转至: 导航搜索
(创建页面,内容为“<includeonly>{{#Widget:TableLineVertical|class={{{class}}}|column={{{column}}}|style={{{style|1px dashed black}}}}}</includeonly><noinclude> To change the style of…”)
2个标签移动版编辑移动网页编辑
 
2个标签移动版编辑移动网页编辑
 
(未显示同一用户的2个中间版本)
第1行: 第1行:
 
<includeonly>{{#Widget:TableLineVertical|class={{{class}}}|column={{{column}}}|style={{{style|1px dashed black}}}}}</includeonly><noinclude>
 
<includeonly>{{#Widget:TableLineVertical|class={{{class}}}|column={{{column}}}|style={{{style|1px dashed black}}}}}</includeonly><noinclude>
 
+
To change the style of a specified vertical border line of specified table elements:
To change the style of vertical border line of
+
  <nowiki>{{</nowiki>TableLineVertical | class = ''ClassName'' | column = ''ColumnNumber'' | style = ''BorderStyle''<nowiki>}}</nowiki>
  <nowiki>{{</nowiki>{{TableLineVertical | class = ''ClassName'' | column = ''ColumnNumber'' | style = ''BorderStyle''}}<nowiki>}}</nowiki>
 
  
 
== Parameters ==
 
== Parameters ==
第16行: 第15行:
 
=== style ===
 
=== style ===
  
Border style. Optional. Defaults to <code>1px solid black</code>.
+
Specifies the border style. Optional. CSS must be used. Defaults to <code>1px dashed black</code>.
  
 
== Example ==
 
== Example ==
第25行: 第24行:
 
Table:  
 
Table:  
  
<pre style="font-size: smaller">{| class="wikitable my_table"
+
<pre style="font-size: 0.88em">{| class="wikitable my_table"
 
|-
 
|-
 
! Head 1 !! Head 2 !! Head 3
 
! Head 1 !! Head 2 !! Head 3

2020年5月11日 (一) 12:04的最新版本

To change the style of a specified vertical border line of specified table elements:

{{TableLineVertical | class = ClassName | column = ColumnNumber | style = BorderStyle}}

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

Specifies the border style. Optional. CSS must be used. Defaults to 1px dashed black.

Example

{{TableLineVertical | class = my_table | column = 2 | style = 2px dotted #999}}

Table:

{| 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
|}

Result:

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