You are viewing an old version of this page. Return to the latest version.
Version of 17:19, 6 March 2020 by MLR
Difference between revisions of "Manual:VisualEditor/Tables/Examples"
| [quality revision] | [quality revision] |
(Created page with "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...") (Tag: 2017 source edit) |
(Tag: Visual 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:Mkalb | '''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 1: | Line 1: | ||
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. | 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 of the tables are copied into the page ''MediaWiki:Common.css'': | + | The background colors and formatting of the tables are copied into the page ''MediaWiki:Common.css'': |
<syntaxhighlight lang="css"> | <syntaxhighlight lang="css"> | ||
table.portal {border-spacing: 20px 2px; border-collapse: separate;} | table.portal {border-spacing: 20px 2px; border-collapse: separate;} | ||
| Line 26: | Line 26: | ||
| style="vertical-align:top;width:48%;" |The department '''Human Resources''' provides the following content in the wiki:<br /> | | style="vertical-align:top;width:48%;" |The department '''Human Resources''' provides the following content in the wiki:<br /> | ||
| − | * Important announcements | + | *Important announcements |
| − | * Employee handbook | + | *Employee handbook |
| − | * Information for new employees <br /> | + | *Information for new employees <br /> |
| − | * Organization charts | + | *Organization charts |
| − | * Contacts | + | *Contacts |
|What you should know:<br /> | |What you should know:<br /> | ||
| − | * Data protection guidelines (Status: 1/2020) | + | *Data protection guidelines (Status: 1/2020) |
| − | * Vacation request | + | *Vacation request |
| − | * Business trips | + | *Business trips |
| Line 90: | Line 90: | ||
|Since April 1, 2020, [[User:Mkalb | '''Ms. Yildiz''']] supports us with our administrative tasks. We warmly welcome Ms. Yildiz and wish her lots of fun in our department. | |Since April 1, 2020, [[User:Mkalb | '''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''']]. |
|} | |} | ||
| Line 107: | Line 107: | ||
</syntaxhighlight><br /> | </syntaxhighlight><br /> | ||
| − | [[en:{{PAGENAME}}]][[de:VisualEditor/Tabellen]] | + | [[en:{{PAGENAME}}]] |
| + | [[de:VisualEditor/Tabellen]] | ||