头晕呕吐挂什么科| 什么叫轻食| 内风湿是什么原因引起的| 心脏痛挂什么科| 头部麻木是什么征兆| 达克宁栓治疗什么妇科病| 梦到数钱代表什么预兆| tac是什么| 补铁吃什么| 小孩说话不清楚挂什么科| 上海有什么好玩的地方适合小孩子| 查肝功能能查出什么病| 书五行属性是什么| 7月24日是什么日子| 维生素b不能和什么一起吃| 什么是脂肪瘤| 前列腺增大伴钙化灶是什么意思| 牛肉什么馅的饺子好吃| 骨折什么感觉| 梦见红色的蛇是什么意思| 眼睛痛是什么原因| 猫咪呕吐吃什么药| 男生什么情况想种草莓| noxa20是什么药| 台湾以前叫什么名字| 老虎的祖先是什么动物| 仙女座是什么星座| 手指关节痛挂什么科| 什么是妇科病| 咸鱼翻身是什么意思| 车顶放饮料是什么意思| 什么纸贵| 大脑供血不足吃什么药最好| 月经期头疼是什么原因| 红沙日是什么意思| 女孩和女人有什么区别| 乌龟吃什么| 单脐动脉是什么意思| 八股是什么意思| 柔肝是什么意思| 给小孩买什么保险好| 烂苹果气味的是什么病| 大姑姐是什么意思| 苛捐杂税是什么生肖| 绝经后子宫内膜增厚是什么原因| 霉菌性阴道炎是什么症状| 困惑是什么意思| 办护照需要什么材料| 鸽子拉绿稀便是什么病| 支气管炎吃什么药最好| 新生儿超敏c反应蛋白高说明什么| 聚乙二醇400是什么| 下面潮湿是什么原因引起的| 在什么什么后面| 214是什么意思| 什么是慢阻肺| 医疗保险是什么| 木耳有什么功效与作用| 1月18日什么星座| 探望产妇带什么礼物好| 气阴两虚吃什么药| 补肾虚吃什么药最好| 投递是什么意思| 吃什么胎儿眼睛黑又亮| 雪莲菌泡牛奶有什么功效| 蝙蝠吃什么| 平板电脑与笔记本电脑有什么区别| 什么葡萄品种最好吃| 小狗可以吃什么水果| 沾花惹草是什么生肖| 山药和什么搭配最好| 声声慢是什么意思| 吃善存片有什么好处| nary是什么牌子的手表| 海参为什么越小越贵| 屁为什么是臭的| 台湾什么时候收回| 中耳炎去药店买什么药| 小便刺痛什么原因| 男人分手是什么感觉| 为什么会长卵巢畸胎瘤| 乙肝五项245阳性是什么意思| sahara是什么牌子| 什么叫收缩压和舒张压| 8023是什么意思| 乳腺囊肿和乳腺结节有什么区别| 孕妇dha什么时候开始吃| 办护照需要什么条件| guess什么意思| 广州五行属什么| 碘伏有什么作用| 费神是什么意思| 贫血吃什么食物好| 先天性心脏病有什么症状| 何其是什么意思| 筋道是什么意思| 六月初九是什么日子| 土克什么| 腋下疼痛挂什么科| 子宫痒是什么原因| 圆脸适合什么刘海| 鸡头米是什么东西| 女性长期便秘挂什么科| 什么是生物工程| 通勤是什么意思| 脸上长毛什么原因| 脸发黄是什么原因| 骨量偏高是什么原因| 重庆有什么美食| kiki是什么意思| 丝状疣用什么药| 宫外孕是什么导致的| 一什么窗| 218号是什么星座| 晚上看见刺猬预示什么| 飞克手表什么档次| 做梦烧纸钱什么意思| 摩罗丹主要治什么胃病| 属蛇的贵人是什么属相| 金牛属于什么象星座| 术后吃什么营养品好| 衰是什么意思| 环磷酰胺是什么药| 亚五行属什么| 乙肝恢复期是什么意思| 梦见自己生了个儿子是什么意思| 长疱疹是什么原因| 下乡插队是什么意思| 脚麻木是什么病的前兆| 吃什么能增强记忆力| 过期牛奶有什么用途| 为什么湿气重| 脚疼是什么原因引起的| 脾虚吃什么好| 排骨炖什么补血补气| 财代表什么生肖| 梦到和男朋友分手是什么征兆| 农历什么意思| 6月份生日是什么星座| 鹰击长空是什么意思| 和胃是什么意思| 人为什么会起鸡皮疙瘩| 什么是传染性软疣| 樱桃不能和什么一起吃| 果是什么结构的字| 湿热体质吃什么中成药| 蝉的幼虫叫什么| 切诺是什么药| 今天什么地方地震了| 驴打滚是什么意思| 吃什么补维生素b12| 灯塔是什么意思| 南京鸡鸣寺求什么灵| 6月19日是什么节日| 微创是什么| 终止妊娠是什么意思| 什么生肖不认识路| 宫颈管分离什么意思| 霉菌性阴道炎用什么药效果好| 为什么拉的屎是黑色的| 什么叫智齿牙| 扁桃体切除有什么坏处| 霜降出什么生肖| 蜂蜡是什么| 为什么会得水痘| 舌头有问题看什么科| 什么病需要做手术| 9月份是什么星座| 孔子姓什么名什么| 六月属什么生肖| 甲亢什么东西不能吃| 冰冻三尺非一日之寒什么意思| 高圆圆老公叫什么名字| 黑长直是什么意思| 为什么会基因突变| 高筋面粉可以做什么| 高干文是什么意思| 用什么泡脚可以去湿气| eoa是什么意思| 男人分手是什么感觉| 吃什么食物下奶快而且奶多| 精神寄托是什么意思| 审美疲劳是什么意思| 做肠镜要挂什么科| 家政公司是做什么的| 止咳化痰吃什么药| 淋巴细胞偏高是什么原因| 恶风是什么意思| 杨梅有什么功效| 胃痛可以吃什么| gg是什么牌子的包包| 蛋白尿吃什么药| 什么叫智齿| 头油是什么原因引起的| 1931年属什么生肖| sco是什么意思| 肝阳上亢吃什么药| 受精卵着床有什么反应| 什么东西放进去是硬的拿出来是软的| 拔牙后吃什么食物最好| 情何以堪 什么意思| 糖尿病都有什么症状| 牡丹花是什么颜色的| 贫血吃什么| 维生素d是什么| 大肠杆菌用什么药治疗效果好| 两只小船儿孤孤零零是什么歌| 营养过剩是什么意思| 一直咳嗽是什么原因| 抗坏血酸是什么| 尿微量白蛋白是什么意思| 肩膀痛是什么原因| 为什么瘦不下来| 什么是碳水食物有哪些| 明朝后面是什么朝代| 长春有什么特产| 蜜蜂的天敌是什么| 安之若素是什么意思| 吐司是什么意思| 马克定食是什么意思| egc是什么意思| 宝宝手足口病吃什么药| 想吃甜食是身体缺什么| 刺身是什么鱼| 给孕妇送什么礼物好| 黄豆可以和什么一起打豆浆| 扁桃体发炎引起的发烧吃什么药| 砚字五行属什么| 双侧骶髂关节致密性骨炎是什么病| 孩子气是什么意思| am和pm是什么意思| ppsu是什么材质| 地黄泡水喝有什么好处| 脑供血不足吃什么食物| 转呼啦圈有什么好处| 政治信仰是什么| 胃痉挛吃什么药| 八七年属什么的| 检查过敏源挂什么科| sany是什么牌子| 伤残鉴定什么时候做| 紫苏叶是什么| 共襄盛举是什么意思| 雕琢是什么意思| 生意盎然什么意思| 吓得什么填空| 什么其不什么| 糜烂性胃炎吃什么药好| 生抽可以用什么代替| 女人上嘴唇有痣代表什么| 什么是动态口令| 朱砂痣是什么意思| 看包皮挂什么科| 头发爱出油什么原因| 今年43岁属什么| 经常心慌是什么原因| 叶酸是什么| 多种维生素什么牌子的效果最好| ofd是什么意思| 什么是微量元素| 身上起痘痘是什么原因| 鱼油有什么功效和作用| 唐氏综合征是什么原因造成的| 慧五行属什么| 百度Jump to content

什么花什么门的成语

From mediawiki.org
PD Note: When you edit this page, you agree to release your contribution under the CC0. See Public Domain Help Pages for more info. PD
Tables redirects here; for information about database table structure, see Manual:Database layout .
百度   1月22日,国家税务总局党组书记、局长王军主持召开党组会议,传达学习贯彻党的十九届二中全会精神。

Tables may be created in wiki pages. As a general rule, it is best to avoid using a table unless you need one. Table markup often complicates page editing.[1]

Wiki table markup summary

{| table start, required
|+ table caption, optional; only between table start and table row
|- table row, optional on first row—wiki engine assumes the first row
! table header cell, optional. Consecutive table header cells may be added on same line separated by double marks (!!) or start on new lines, each with its own single mark (!).
| table data cell, optional. Consecutive table data cells may be added on same line separated by double marks (||) or start on new lines, each with its own single mark (|).
|} table end, required
  • The above marks must start on a new line except the double || and !! for optionally adding consecutive cells to a line. However, blank spaces at the beginning of a line are ignored.
  • HTML attributes. Each mark, except table end, optionally accepts one or more HTML attributes. Attributes must be on the same line as the mark. Separate attributes from each other with a single space.
    • Cells and caption (| or ||, ! or !!, and |+) hold content. So separate any attributes from content with a single pipe (|). Cell content may follow on same line or on following lines.
    • Table and row marks ({| and |-) do not directly hold content. Do not add pipe (|) after their optional attributes. 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.

Basics

Create a table with editor toolbar

In wikitext editor, place the caret where you want to insert a table. Then, in the toolbar, press “Advanced”, then choose Table button. A dialog opens.

From the dialog, you can choose whether to enable a table header row, to stylize the table with border and to make the table sortable. A preview example is displayed. You can also set row and column counts you need. Then, press “Insert” button.

By default, the following code is generated:

Wikicode:
{| class="wikitable" style="margin:auto"
|+ Caption text
|-
! Header text !! Header text !! Header text
|-
| Example || Example || Example
|-
| Example || Example || Example
|-
| Example || Example || Example
|}
Result:
Caption text
Header text Header text Header text
Example Example Example
Example Example Example
Example Example Example

Minimal syntax

The following table lacks borders and good spacing but shows the simplest wiki markup table structure.

You type You get
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
Orange Apple
Bread Pie
Butter Ice cream

The cells in the same row can be listed on one line separated by || (two pipe symbols). If the text in the cell should contain a line break, use ?<br /> instead.

You type You get
{|
|Orange||Apple||more
|-
|Bread||Pie||more
|-
|Butter||Ice<br/>cream||and<br/>more
|}
Orange Apple more
Bread Pie more
Butter Ice
cream
and
more

Extra spaces within cells in the wiki markup, as in the wiki markup below, do not affect the actual table rendering.

You type You get
{|
|  Orange || Apple || more
|-
|   Bread || Pie || more
|-
|   Butter || Ice cream || and more
|}
Orange Apple more
Bread Pie more
Butter Ice cream and more

You can have longer text or more complex wiki syntax inside table cells, too:

You type You get
{|
|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.

  • Lorem ipsum dolor sit amet
  • consetetur sadipscing elitr
  • sed diam nonumy eirmod tempor invidunt

Table headers

Table headers can be created by using "!" (exclamation mark) instead of "|" (pipe symbol). Headers usually show up bold and centered by default.

You type You get
{|
! style="text-align:left;"| Item
! Amount
! Cost
|-
|Orange
|10
|7.00
|-
|Bread
|4
|3.00
|-
|Butter
|1
|5.00
|-
!Total
|
|15.00
|}
Item Amount Cost
Orange 10 7.00
Bread 4 3.00
Butter 1 5.00
Total 15.00
When using attributes as in the heading 'Item' a vertical bar '|' is used for separation. Not an exclamation character '!'.

Caption

A table caption can be added to the top of any table as follows.

You type You get
{|
|+Food complements
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
Food complements
Orange Apple
Bread Pie
Butter Ice cream

class="wikitable"

Basic styling (light gray background, borders, padding and align left) can be achieved by adding class="wikitable".

You type You get
{| class="wikitable"
|+Food complements
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
Food complements
Orange Apple
Bread Pie
Butter Ice cream

HTML colspan and rowspan

You can use HTML colspan and rowspan attributes on cells for advanced layout.

You type You get
{| class="wikitable"
!colspan="6"|Shopping List
|-
|rowspan="2"|Bread & Butter
|Pie
|Buns
|Danish
|colspan="2"|Croissant
|-
|Cheese
|colspan="2"|Ice cream
|Butter
|Yogurt
|}
Shopping List
Bread & Butter Pie Buns Danish Croissant
Cheese Ice cream Butter Yogurt

Note about large tables (noresize class)

The use of the wrapping div.noresize will ensure your table is optimized for mobile and is extremely important for large tables e.g. tables with more than 4 columns or large columns. Failure to use this element will cause your content to overlap UI elements e.g. the Vector 2022 sidebar or to break mobile display. This will cause the table to have a horizontal scroll bar when the table is too big for the content.

Shopping List
Areallyreallyreallyreallylongstringwillcauseyourtableto Pie Buns Danish Croissantsmaycausetexttoincreasethesizeofyourcolumnsoitbreaksoutofthecontent area if you do not wrap the table with noresize.
Cheese Ice cream Butter Yogurt

HTML attributes

You can add HTML attributes to tables. For the authoritative source on HTML attributes, see the W3C's HTML Specification page on tables.

Attributes on tables

Placing attributes after the table start tag ({|) applies attributes to the entire table.

You type You get
{| class="wikitable" style="text-align: center; color: green;"
|Orange
|Apple
|12,333.00
|-
|Bread
|Pie
|500.00
|-
|Butter
|Ice cream
|1.00
|}
Orange Apple 12,333.00
Bread Pie 500.00
Butter Ice cream 1.00

Attributes on cells

You can put attributes on individual cells. For example, numbers may look better aligned right.

You type You get
{| class="wikitable"
| Orange
| Apple
| style="text-align:right;" | 12,333.00
|-
| Bread
| Pie
| style="text-align:right;" | 500.00
|-
| Butter
| Ice cream
| style="text-align:right;" | 1.00
|}
Orange Apple 12,333.00
Bread Pie 500.00
Butter Ice cream 1.00

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 |.

You type You get
{| class="wikitable"
| Orange || Apple     || style="text-align:right;" | 12,333.00
|-
| Bread || Pie       || style="text-align:right;" | 500.00
|-
| Butter || Ice cream || style="text-align:right;" | 1.00
|}
Orange Apple 12,333.00
Bread Pie 500.00
Butter Ice cream 1.00

Attributes on rows

You can put attributes on individual rows, too.

You type You get
{| class="wikitable"
| Orange
| Apple
| style="text-align:right;"| 12,333.00
|-
| Bread
| Pie
| style="text-align:right;"| 500.00
|- style="font-style: italic; color: green;"
| Butter
| Ice cream
| style="text-align:right;"| 1.00
|}
Orange Apple 12,333.00
Bread Pie 500.00
Butter Ice cream 1.00

Attributes on caption and headers

Attributes can be added to the caption and headers as follows.

You type You get
{| class="wikitable"
|+ style="caption-side:bottom; color:#e76700;"|''Food complements''
|-
! style="color:green" | Fruits
! style="color:red" | Fats
|-
|Orange
|Butter
|-
|Pear
|Pie
|-
|Apple
|Ice cream
|}
Food complements
Fruits Fats
Orange Butter
Pear Pie
Apple Ice cream

Border width

If "border-width:" has only one number, it is for all four border sides:

You type You get
{|style="border-style: solid; border-width: 20px"
|
Hello
|}

Hello

If "border-width:" has more than one number, the four numbers are for top, right, bottom, left (REMEMBER clockwise order ↑→↓←):

You type You get
{|style="border-style: solid; border-width: 10px 20px 100px 0"
|
Hello
|}

Hello

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":

You type You get
{|style="border-left:solid 10px black;border-right:solid 20px black;border-top:solid 30px black;border-bottom:solid 40px black;" align="center"
|
Hello
|}

Hello

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.[2]

The CSS style properties (which override the HTML attributes) require an explicit length unit (if the value is not 0) such as "px" for the pixel.

With HTML attributes and CSS styles

CSS style attributes can be added with or without other HTML attributes.

You type You get
{| class="wikitable" style="color:green; background-color:#ffffcc;" cellpadding="10"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream
|}
Orange Apple
Bread Pie
Butter Ice cream

Padding

It represents the internal margin between the contents and the border of the cell.

You type You get
{|class=wikitable
| style="padding: 10px" | Example of style="padding:10px"
|-
| style="padding: 50px" | Example of style="padding:50px"<br/><br/>Specify the padding on '''EACH CELL'''
|-
| style="padding:100px" | Example of style="padding:100px"
|}
Example of style="padding:10px"
Example of style="padding:50px"

Specify the padding on EACH CELL
Example of style="padding:100px"

Column width

Column width can be added as follows.

You type:

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

You get:

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:

You type You get
{| class="wikitable"
|-
! scope="col"| Item
! scope="col"| Quantity
! scope="col"| Price
|-
! scope="row"| Bread
| 0.3 kg
| $0.65
|-
! scope="row"| Butter
| 0.125 kg
| $1.25
|-
! scope="row" colspan="2"| Total
| $1.90
|}
Item Quantity Price
Bread 0.3 kg $0.65
Butter 0.125 kg $1.25
Total $1.90

Alignment

Table alignment

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

For example, a right-aligned table:

You type You get
{| class="wikitable" style="margin-left: auto; margin-right: 0px;"
| Orange
| Apple
|-
| Bread
| Pie
|-
| Butter
| Ice cream
|}

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.
Orange Apple
Bread Pie
Butter Ice cream

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.

And a center-aligned table:

You type You get
{| class="wikitable" style="margin: auto;"
| Orange
| Apple
|-
| Bread
| Pie
|-
| Butter
| Ice cream
|}

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.
Orange Apple
Bread Pie
Butter Ice cream

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.

Table floating around text

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 whether the table floats to the right side or to the left. When using float, margins don't control table alignment and can be used to specify the margin between the table and the surrounding text.

You type You get
{| class="wikitable" style="float:right; margin-left: 10px;"
| Orange
| Apple
|-
| Bread
| Pie
|-
| Butter
| Ice cream
|}

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.
Orange Apple
Bread Pie
Butter Ice cream

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.


Cell contents alignment

The alignment of cell contents can be controlled with 2 different CSS properties: text-align and vertical-align. text-align can be specified at the table, row or individual cells, while vertical-align only can be specified at individual rows or cells.

You type You get
{| class="wikitable"
|- style="vertical-align:top;"
| style="height:100px; width:100px; text-align:left;" | A
| style="height:100px; width:100px; text-align:center;" | B
| style="height:100px; width:100px; text-align:right;" | C
|- style="vertical-align:middle;"
| style="height:100px; width:100px; text-align:left;" | D
| style="height:100px; width:100px; text-align:center;" | E
| style="height:100px; width:100px; text-align:right;" | F
|- style="vertical-align:bottom;"
| style="height:100px; width:100px; text-align:left;" | G
| style="height:100px; width:100px; text-align:center;" | H
| style="height:100px; width:100px; text-align:right;" | I
|}
A B C
D E F
G H I

Caveats

Negative numbers

If you start a cell on a new line with a negative number with a minus sign (or a parameter that evaluates to a negative number), your table can get broken, because the characters |- will be parsed as the wiki markup for table row, not table cell. To avoid this, insert a space before the value (| -6) or use in-line cell markup (|| -6).

CSS vs attributes

Table borders specified through CSS rather than the border attribute will render incorrectly in a small subset of text browsers.

Common attributes for columns, column groups and row groups

The MediaWiki syntax for tables currently offers no support for specifying common attributes for columns (with the HTML element ?<col />), column groups (HTML element ?<colgroup>?</colgroup>) and row groups (HTML elements ?<thead>?</thead>, ?<tbody>?</tbody> and ?<tfoot>?</tfoot>). Those standard HTML elements are not accepted even in their HTML or XHTML syntax.

All the rows and cells (header or data) of the table are rendered within a single implicit row group (HTML element ?<tbody>?</tbody>) without any attributes or styles.

Tables and the Visual Editor (VE)

See also: Help:VisualEditor/User guide

See Phab: T108245: "Fully support basic table editing in the visual editor". See the list of tasks. Finished tasks are struck. It can be difficult to figure out from the technical language there what exactly has been improved, or what features have been added. Please add explanatory info below.

Can now move or delete columns and rows

Click on a column or row header. Then click on the arrow. From the popup menu click on "Move" or "Delete".

Insert blank row or column

From the same popup menu click on "Insert".

Copy table from web page to Visual Editor

It is possible to copy and paste a table from a web page directly into the Visual Editor (VE). To do so safely, use a sandbox and check the table for proper coding in wikitext source mode and proper display in the Visual Editor and in preview mode.

Helping tools

  • Excel2Wiki allows you to copy a spreadsheet from Excel, Apache OpenOffice, LibreOffice, or Gnumeric to convert it into wikicode table.

See also

Notes

  1. Tables can be created using either HTML table elements directly, or using wikicode formatting to define the table. HTML table elements and their use are well described on various web pages and will not be discussed here. The benefit of wikicode is that the table is constructed of character symbols which tend to make it easier to perceive the table structure in the article editing view compared to HTML table elements.
  2. HTML table cellpadding Attribute
虾仁炒什么好吃 奶白色是什么颜色 小孩肠胃感冒吃什么药比较好 ml是什么 7月份有什么节日吗
赶尽杀绝什么意思 人民检察院是国家的什么机关 1月16日什么星座 睡觉喉咙干燥是什么原因 陈皮的作用是什么
晚上右眼跳是什么预兆 阴茎不硬是什么原因 牙齿松动吃什么药 天麻是什么 男人跑马是什么意思
婴儿胀气是什么原因 什么人容易老年痴呆 积液是什么原因造成的怎么治疗 什么饼干养胃最好 小孩血压低是什么原因
老干局是干什么的naasee.com 医学上ca是什么意思hcv9jop2ns1r.cn 三焦是什么器官huizhijixie.com 内分泌失调是什么意思creativexi.com 跑步大腿痒是什么原因hcv9jop6ns5r.cn
什么身子hanqikai.com 灵性是什么意思hcv8jop5ns7r.cn 什么时候最容易受孕hcv9jop4ns2r.cn 全身皮肤痒是什么原因hcv8jop7ns5r.cn 下象棋有什么好处hcv8jop5ns9r.cn
河汉是什么意思beikeqingting.com 黄瓜与什么食物相克hcv7jop9ns5r.cn 全身酸痛什么原因hcv9jop2ns6r.cn 煮虾放什么调料hcv9jop2ns6r.cn 牙齿是什么材质hcv7jop5ns2r.cn
lime是什么水果hcv7jop7ns0r.cn 胃肠道功能紊乱吃什么药hcv8jop4ns4r.cn 嘬是什么意思hcv8jop3ns2r.cn 黄鼠狼喜欢吃什么东西hcv9jop0ns6r.cn 58什么意思hcv8jop2ns4r.cn
百度