Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Help:Table
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Non-rectangular tables === {{tlx|diagonal split header|''HEADER-FOR-ROW-HEADERS''|''HEADER-FOR-COLUMN-HEADERS''}} can be used to diagonally split a header cell, as in the top-left cell in the rendered result below:<ref group=note>A simplified version of [[Template:Table_of_phase_transitions]]</ref> <div class="box"> '''Wikitext''' <syntaxhighlight lang="wikitext" highlight="2"> {| class=wikitable ! {{diagonal split header|From|To}} ! Solid !! Liquid !! Gas |- ! Solid | Solid-solid transformation || Melting || Sublimation |- ! Liquid | Freezing || {{sdash}} || Boiling/evaporation |- ! Gas | Deposition || Condensation || {{sdash}} |} </syntaxhighlight></div> <div class="box"> '''Produces''' {| class=wikitable ! {{diagonal split header|From|To}} ! Solid !! Liquid !! Gas |- ! Solid | Solid-solid transformation || Melting || Sublimation |- ! Liquid | Freezing || {{sdash}} || Boiling/evaporation |- ! Gas | Deposition || Condensation || {{sdash}} |} </div> Cell borders can be hidden by adding {{xt|<code>border: none; background: none;</code>}} to the style attributes of either the table or the cell,<ref group=note>Applying <code>background: none</code> to the entire table will, perhaps predictably, subtly alter its color palette.</ref> though this may not work in older browsers. Another use case for this is for implementing aligned multi-column tables: <div class="box" style="max-width:25em;"> '''Wikitext''' <syntaxhighlight lang="wikitext" highlight="2" style="white-space: pre-wrap;"> {| class=wikitable style="border: none; background: none;" ! colspan=2 rowspan=2 style="border: none; background: none;" | [[File:Pfeil_SO.svg |none|link=|20px]] ! colspan=3 | To |- ! Solid !! Liquid !! Gas |- ! rowspan=3 | From ! Solid | Solid–solid transformation || Melting || Sublimation |- ! Liquid | Freezing || {{sdash}} || Boiling/evaporation |- ! Gas | Deposition || Condensation || {{sdash}} |} </syntaxhighlight></div> <div class="box"> '''Produces''' {| class=wikitable style="border: none; background: none;" ! colspan=2 rowspan=2 style="border: none; background: none;" | [[File:Pfeil_SO.svg |none|link=|20px]] ! colspan=3 | To |- ! Solid !! Liquid !! Gas |- ! rowspan=3 | From ! Solid | Solid–solid transformation || Melting || Sublimation |- ! Liquid | Freezing || {{sdash}} || Boiling/evaporation |- ! Gas | Deposition || Condensation || {{sdash}} |} </div> {{em|Note that the removal of the link on an image is [[WP:EIS#Link|dependent on it being purely decorative (as it will be ignored by assistive devices)]].}} <div class="box"> '''Wikitext''' <syntaxhighlight lang="wikitext" style="white-space: pre-wrap;"> {| class=wikitable style="border: none; background: none;" ! scope=col | Year ! scope=col | Size | rowspan=5 style="border: none; background: none;"| ! scope=col | Year ! scope=col | Size | rowspan=5 style="border: none; background: none;"| ! scope=col | Year ! scope=col | Size |- | 1990 || 1000<br>(est) || 2000 || 1357 || 2010 || 1776 |- | 1991 || 1010 || 2001 || 1471 || 2011 || 1888 |- | colspan=2 style="text-align: center;"|⋮ | colspan=2 style="text-align: center;"|⋮ | colspan=2 style="text-align: center;"|⋮ |- | 1999 || 1234 || 2009 || 1616 || 2019 || 1997<br>(est) |} </syntaxhighlight></div> <div class="box"> '''Produces''' {| class=wikitable style="border: none; background: none;" ! scope=col | Year ! scope=col | Size | rowspan=5 style="border: none; background: none;"| ! scope=col | Year ! scope=col | Size | rowspan=5 style="border: none; background: none;"| ! scope=col | Year ! scope=col | Size |- | 1990 || 1000<br>(est) || 2000 || 1357 || 2010 || 1776 |- | 1991 || 1010 || 2001 || 1471 || 2011 || 1888 |- | colspan=2 style="text-align: center;"|⋮ | colspan=2 style="text-align: center;"|⋮ | colspan=2 style="text-align: center;"|⋮ |- | 1999 || 1234 || 2009 || 1616 || 2019 || 1997<br>(est) |} </div>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)