You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "Manual:VisualEditor/Tables/Examples"
[quality revision] | [quality revision] |
(Tag: Visual edit) |
(Tag: 2017 source edit) |
Tables are useful for clearly displaying information in the wiki. Just note that multi-column tables are not suitable for display on mobile devices, since table columns cannot wrap.
The background colors and formatting of the tables are copied into the page MediaWiki:Common.css:
table.portal {border-spacing: 20px 2px; border-collapse: separate;}
table.portal th, table.portal td {padding:10px; border:0; vertical-align:top;}
.tblue th {background-color:#CADAEA;}
.tblue td {background-color:#E0ECF8;}
.tyellow th {background-color:#F7E1B2;}
.tyellow td {background-color:#E0ECF8;}
.twhite th {background-color:#787878; color:#FFF;}
.twhite td {background-color:#FFF;}
.tgrey th {background-color:#ACB1CF; color:#FFF;}
.tgrey td {background-color:#E6E7EB}
Design 1[edit | edit source]
Introduction | Important documents |
---|---|
The department Human Resources provides the following content in the wiki:
|
What you should know:
|
Insert this code in the source view of the wiki page:
{| class="portal tblue" style="width:100%;"
! style="width:50%;" |'''Column 1'''
! style="width:50%;" ! |'''Column 2'''
|-
| Content column 1
| Content column 2
|}
Design 2[edit | edit source]
Heading | Heading |
---|---|
Content | Content |
{| class="portal tyellow" style="width:100%;"
! style="width:50%;" |'''Heading'''
! style="width:50%;" |'''Heading'''
|-
|Content
|Content
|}
Design 3[edit | edit source]
Did you know? | Our mission | Contact |
---|---|---|
Since April 1, 2020, Ms. Yildiz supports us with our administrative tasks. We warmly welcome Ms. Yildiz and wish her lots of fun in our department. | We work diligently to provide you with the most important and up-to-date information. Let us know if there are things we can do better. | If you have any questions about the content of our wiki pages, please contact Mr. Baumeister. |
{| class="portal twhite" style="width:100%;"
! style="width:33%;" |'''Heading 1'''
! style="width:33%;" |'''Heading 2'''
! style="width:33%;" |'''Heading 3'''
|-
| Content column 1
| Content column 2
| Content column 3
|}
Tables are useful for clearly displaying information in the wiki. Just note that multi-column tables are not suitable for display on mobile devices, since table columns cannot wrap. The background colors and formatting of the tables are copied into the page ''MediaWiki:Common.css'': <syntaxhighlight lang="css"> table.portal {border-spacing: 20px 2px; border-collapse: separate;} table.portal th, table.portal td {padding:10px; border:0; vertical-align:top;} .tblue th {background-color:#CADAEA;} .tblue td {background-color:#E0ECF8;} .tyellow th {background-color:#F7E1B2;} .tyellow td {background-color:#E0ECF8;} .twhite th {background-color:#787878; color:#FFF;} .twhite td {background-color:#FFF;} .tgrey th {background-color:#ACB1CF; color:#FFF;} .tgrey td {background-color:#E6E7EB} </syntaxhighlight><br /> ==Design 1== <br /> {| class="portal tblue" style="width:100%;" ! style="width:50%;" |'''Introduction''' ! style="width:50%;" ! |'''Important documents''' |- | style="vertical-align:top;width:48%;" |The department '''Human Resources''' provides the following content in the wiki:<br /> *Important announcements *Employee handbook *Information for new employees <br /> *Organization charts *Contacts |What you should know:<br /> *Data protection guidelines (Status: 1/2020) *Vacation request *Business trips <br /> *All forms |} Insert this code in the source view of the wiki page: <syntaxhighlight lang="text"> {| class="portal tblue" style="width:100%;" ! style="width:50%;" |'''Column 1''' ! style="width:50%;" ! |'''Column 2''' |- | Content column 1 | Content column 2 |} </syntaxhighlight><br /> ==Design 2== <br /> {| class="portal tyellow" style="width:100%;" ! style="width:50%;" |'''Heading''' ! style="width:50%;" |'''Heading''' |- |Content |Content |} Insert this code in the source view of the wiki page:<syntaxhighlight lang="text"> {| class="portal tyellow" style="width:100%;" ! style="width:50%;" |'''Heading''' ! style="width:50%;" |'''Heading''' |- |Content |Content |} </syntaxhighlight> ==Design 3== {| class="portal twhite" style="width:100%;" ! style="width:33%;" |'''Did you know?''' ! style="width:33%;" |'''Our mission''' ! style="width:33%;" |'''Contact''' |- |Since April 1, 2020, [[User:MkalbIdaK | '''Ms. Yildiz''']] supports us with our administrative tasks. We warmly welcome Ms. Yildiz and wish her lots of fun in our department. |We work diligently to provide you with the most important and up-to-date information. Let us know if there are things we can do better. |If you have any questions about the content of our wiki pages, please contact [[User:WikiSysop | '''Mr. Baumeister''']]. |} Insert this code in the source view of the wiki page:<syntaxhighlight lang="css"> {| class="portal twhite" style="width:100%;" ! style="width:33%;" |'''Heading 1''' ! style="width:33%;" |'''Heading 2''' ! style="width:33%;" |'''Heading 3''' |- | Content column 1 | Content column 2 | Content column 3 |} </syntaxhighlight><br /> [[en:{{PAGENAME}}]] [[de:VisualEditor/Tabellen]]
Line 88: | Line 88: | ||
! style="width:33%;" |'''Contact''' | ! style="width:33%;" |'''Contact''' | ||
|- | |- | ||
− | |Since April 1, 2020, [[User: | + | |Since April 1, 2020, [[User:IdaK | '''Ms. Yildiz''']] supports us with our administrative tasks. We warmly welcome Ms. Yildiz and wish her lots of fun in our department. |
|We work diligently to provide you with the most important and up-to-date information. Let us know if there are things we can do better. | |We work diligently to provide you with the most important and up-to-date information. Let us know if there are things we can do better. | ||
|If you have any questions about the content of our wiki pages, please contact [[User:WikiSysop | '''Mr. Baumeister''']]. | |If you have any questions about the content of our wiki pages, please contact [[User:WikiSysop | '''Mr. Baumeister''']]. |