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!
=== Vertical headers === Sometimes it is desirable (such as in a table predominantly made of numbers) to rotate text such that it proceeds from top to bottom or bottom to top instead of from left to right or right to left. This can be done with CSS but the easiest way on Wikipedia is to enclose the text of each heading in a '''{{tl|vertical header}}''' template. For example: <syntaxhighlight lang="wikitext"> ! {{vertical header|Date/Page}} </syntaxhighlight> If the text includes an equals sign then replace it with <code><nowiki>{{=}}</nowiki></code>. {| class="wikitable" style="text-align: center;" |+ Rotated column headers using {{tlx|vertical header}} |- ! {{vertical header|Date/Page}} ! {{vertical header|[[Wikipedia:WikiProject Video games|VG: Project]]}} ! {{vertical header|[[Wikipedia talk:WikiProject Video games|VG: Talk]]}} ! {{vertical header|[[Portal:Video games|VG: Portal]]}} ! {{vertical header|[[Wikipedia:WikiProject Video games/Article guidelines|VG: Article guidelines]]}} ! {{vertical header|[[Wikipedia:WikiProject Video games/Templates|VG: Templates]]}} ! {{vertical header|[[Wikipedia:WikiProject Video games/Sources|VG: Sources]]}} ! {{vertical header|[[Wikipedia:WikiProject Video games/Assessment|VG: Assessment]]}} ! {{vertical header|[[Wikipedia:WikiProject Video games/Cleanup|VG: Cleanup]]}} ! {{vertical header|[[Wikipedia:WikiProject Video games/Requests|VG Requests]]}} |- ! 05/08 | 4266 || 7828 || 7282 || 1105 || 224 || 161 || 916 || 506 || 231 |- ! 04/08 | 4127 || 6190 || 6487 || 1139 || 241 || 205 || 1165 || 478 || 301 |} If you want to use '''[[Template:Sticky table start|sticky headers]]''' with vertical headers it is important to make the sticky header less tall for cell phone use. '''{{t|abbr}}''' is one way. Also by moving some info to the table caption. See example with various methods at '''{{tl|vertical header}}.'''
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)