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: 2017 source 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}
Contents
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
|}
Design 4[edit | edit source]
| Box 1 | Box 2 | Box 3 | Box 4 |
| Box 5 | Box 6 | Box 7 | Box 8 |
{| class="portalboxes tgrey" style="width:100%;"
|-
| style="width:25%;" |'''Box 1'''
| style="width:25%;" |'''Box 2'''
| style="width:25%;" |'''Box 3'''
| style="width:25%;" |'''Box 4'''
|-
| '''Box 5'''
| '''Box 6'''
| '''Box 7'''
| '''Box 8'''
|}
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==
<br />
{| 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: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.
|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 />
==Design 4==
<br />
{| class="portalboxes tgrey" style="width:100%;"
|-
| style="width:25%;" |'''Box 1'''
| style="width:25%;" |'''Box 2'''
| style="width:25%;" |'''Box 3'''
| style="width:25%;" |'''Box 4'''
|-
| '''Box 5'''
| '''Box 6'''
| '''Box 7'''
| '''Box 8'''
|}
Insert this code in the source view of the wiki page:<syntaxhighlight lang="css">
{| class="portalboxes tgrey" style="width:100%;"
|-
| style="width:25%;" |'''Box 1'''
| style="width:25%;" |'''Box 2'''
| style="width:25%;" |'''Box 3'''
| style="width:25%;" |'''Box 4'''
|-
| '''Box 5'''
| '''Box 6'''
| '''Box 7'''
| '''Box 8'''
|}
</syntaxhighlight>
<br />
[[en:{{PAGENAME}}]]
[[de:VisualEditor/Tabellen/Beispiele]]| Line 81: | Line 81: | ||
==Design 3== | ==Design 3== | ||
| − | + | <br /> | |
{| class="portal twhite" style="width:100%;" | {| class="portal twhite" style="width:100%;" | ||
| Line 106: | Line 106: | ||
</syntaxhighlight><br /> | </syntaxhighlight><br /> | ||
| + | |||
| + | ==Design 4== | ||
| + | <br /> | ||
| + | {| class="portalboxes tgrey" style="width:100%;" | ||
| + | |- | ||
| + | | style="width:25%;" |'''Box 1''' | ||
| + | | style="width:25%;" |'''Box 2''' | ||
| + | | style="width:25%;" |'''Box 3''' | ||
| + | | style="width:25%;" |'''Box 4''' | ||
| + | |- | ||
| + | | '''Box 5''' | ||
| + | | '''Box 6''' | ||
| + | | '''Box 7''' | ||
| + | | '''Box 8''' | ||
| + | |} | ||
| + | |||
| + | |||
| + | |||
| + | Insert this code in the source view of the wiki page:<syntaxhighlight lang="css"> | ||
| + | {| class="portalboxes tgrey" style="width:100%;" | ||
| + | |- | ||
| + | | style="width:25%;" |'''Box 1''' | ||
| + | | style="width:25%;" |'''Box 2''' | ||
| + | | style="width:25%;" |'''Box 3''' | ||
| + | | style="width:25%;" |'''Box 4''' | ||
| + | |- | ||
| + | | '''Box 5''' | ||
| + | | '''Box 6''' | ||
| + | | '''Box 7''' | ||
| + | | '''Box 8''' | ||
| + | |} | ||
| + | </syntaxhighlight> | ||
| + | <br /> | ||
| + | |||
[[en:{{PAGENAME}}]] | [[en:{{PAGENAME}}]] | ||
[[de:VisualEditor/Tabellen/Beispiele]] | [[de:VisualEditor/Tabellen/Beispiele]] | ||