表であることを示す記号、行が変わることを示す記号 ({| と |-) には、内容を直接、表示させることができません。 選択的に加えた属性の後に縦棒 (パイプ記号 |) を入れては ダメ です。 If you erroneously add a pipe after attributes for the table mark or row mark the parser will delete it and your final attribute if it was touching the erroneous pipe!
Content may (a) follow its cell mark on the same line after any optional HTML attributes or (b) on lines below the cell mark.
Content that uses wiki markup that itself needs to start on a new line, such as lists, headings, or nested tables, must be on its own new line.
Pipe character as content.
To insert a pipe (|) character into a table, use the <nowiki>|</nowiki> escaping markup.
{|
|Lorem ipsum dolor sit amet,
consetetur sadipscing elitr,
sed diam nonumy eirmod tempor invidunt
ut labore et dolore magna aliquyam erat,
sed diam voluptua.
At vero eos et accusam et justo duo dolores
et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum
dolor sit amet.
|
* Lorem ipsum dolor sit amet
* consetetur sadipscing elitr
* sed diam nonumy eirmod tempor invidunt
|}
Lorem ipsum dolor sit amet,
consetetur sadipscing elitr,
sed diam nonumy eirmod tempor invidunt
ut labore et dolore magna aliquyam erat,
sed diam voluptua.
At vero eos et accusam et justo duo dolores
et ea rebum. Stet clita kasd gubergren,
no sea takimata sanctus est Lorem ipsum
dolor sit amet.
You can also use cell attributes when you are listing multiple cells on a single line.Note that the cells are separated by ||, and within each cell the attribute(s) and value are separated by |.
If "border-width:" has more than one number, the four numbers are for top, right, bottom, left (REMEMBER clockwise order ↑→↓←):
入力
出力
{|style="border-style: solid; border-width: 10px 20px 100px 0"
|
こんにちは
|}
こんにちは
When there are fewer than 4 values :
three values i.e. top, right, bottom: then the default value for left is the one of right (second value). Width is then the same on left and right side.
two values i.e. top, right: then the default value for bottom is the one of top (first value), and left by default is assigned the value of right (second value). Width on top is then the same as on bottom; width on left is the same as on right.
one value i.e. top: then the default value for right is the one of top and it is the same for bottom and left. The fourth width are the same and build a regular border. This is a writing shortcut.
Another method to define the widths of the four sides of a cell is to use "border-left", "border-right", "border-top" and "border-bottom":
The HTML attributes (such as "width=", "border=", "cellspacing=", "cellpadding=") do not need any length unit (the pixel unit is assumed).They are also invalid in HTML 5.
"Cellpadding" is for setting the space between the cell wall and the cell content.
{| class="wikitable" style="width: 85%;"
| colspan="2" | This column width is 85% of the screen width
|-
| style="width: 30%"| '''This column is 30% counted from 85% of the screen width'''
| style="width: 70%"| '''This column is 70% counted from 85% of the screen width'''
|}
出力
This column width is 85% of the screen width
This column is 30% counted from 85% of the screen width
This column is 70% counted from 85% of the screen width
Accessibility of table header cells
Table header cells do not explicitly specify which table data cells they apply to (those on their right on the same row, or those below them on the same column).When the table is rendered in a visual 2D environment, this is usually easy to infer.
However when tables are rendered on non-visual media, you can help the browser to determine which table header cell applies to the description of any selected cell (in order to repeat its content in some accessibility helper) using a scope="row" or scope="col" attribute on table header cells.In most cases with simple tables, you'll use scope="col" on all header cells of the first row, and scope="row" on the first cell of the following rows:
Table alignment is achieved by using CSS.The table alignment is controlled by margins.A fixed margin on one side will make the table to be aligned to that side, if on the opposite side the margin is defined as auto.To have a table center aligned, you should set both margins to auto
If you align a table to the right or the left side of the page, the text that comes after the table starts at the end of it, leaving an empty space around the table.You can make the text to be wrapped around the table by making the table to float around the text instead of just aligning it.This can be achieved using the float CSS attribute, which can specify where the table floats to the right side or to the left.float パラメータを指定すると余白で表の配置を調整しません。周囲の文字列との間隔を指定できます。
入力
出力
{| class="wikitable" style="float:right; margin-left: 10px;"
| オレンジ
| りんご
|-
| パン
| パイ
|-
| バター
| アイスクリーム
|}
Lorem ipsum dolor sit amet, consectetuer adipiscing
elit, sed diam nonummy nibh euismod tincidunt ut
laoreet dolore magna aliquam erat volutpat. Ut wisi
enim ad minim veniam, quis nostrud exerci tation
ullamcorper suscipit lobortis nisl ut aliquip ex ea
commodo consequat. Duis autem vel eum iriure dolor
in hendrerit in vulputate velit esse molestie consequat,
vel illum dolore eu feugiat nulla facilisis at vero
eros et accumsan et iusto odio dignissim qui blandit
praesent luptatum zzril delenit augue duis dolore te
feugait nulla facilisi.
オレンジ
りんご
パン
パイ
バター
アイスクリーム
Lorem ipsum dolor sit amet, consectetuer adipiscing
elit, sed diam nonummy nibh euismod tincidunt ut
laoreet dolore magna aliquam erat volutpat. Ut wisi
enim ad minim veniam, quis nostrud exerci tation
ullamcorper suscipit lobortis nisl ut aliquip ex ea
commodo consequat. Duis autem vel eum iriure dolor
in hendrerit in vulputate velit esse molestie consequat,
vel illum dolore eu feugiat nulla facilisis at vero
eros et accumsan et iusto odio dignissim qui blandit
praesent luptatum zzril delenit augue duis dolore te
feugait nulla facilisi.
Phab: T108245: "Fully support basic table editing in the visual editor" を参照してください。
タスクの一覧を参照しましょう。レ点は完了した印です。技術の専門用語を読んでも、具体的に改良された点や、どんな機能が追加されたか理解するのは難しいかもしれません。そこで下欄に説明文を記入してください。