Difference between revisions of "Help:Table"

From OutHistory
Jump to navigationJump to search
(table)
m (Protected "Help:Table" [edit=sysop:move=sysop])
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
Adapted from Wikipedia by Lauren Gutterman, Project Coordinator, OutHistory.org
+
This page has been adapted from Wikipedia.
 
 
{{Protected}}
 
  
  
Line 48: Line 46:
  
  
To title your table, simply insert apipe "|" and a plus sign "+" with your title after the first line:
+
To title your table, simply insert a pipe ( | ) and a plus sign ( + ) with your title after the first line:
  
 
  <nowiki>{| {{prettytable}}
 
  <nowiki>{| {{prettytable}}
Line 91: Line 89:
 
| Element
 
| Element
 
|}
 
|}
 +
 +
 +
To give your table a border,  type border="1" on the first line. The number in quotation marks corresponds to the size of the border.
 +
 +
<nowiki>{| {{prettytable}} border="1"
 +
|+Example Table 
 +
! FELD 1
 +
! FELD 2
 +
! FELD 3
 +
|-
 +
| Element
 +
| Element
 +
| Element
 +
|-
 +
| Element
 +
| Element
 +
| Element
 +
|-
 +
| Element
 +
| Element
 +
| Element
 +
|}</nowiki>
 +
 +
 +
Which will look like this on your web page:
 +
 +
{| border ="1"
 +
|+Example Table 
 +
! FELD 1
 +
! FELD 2
 +
! FELD 3
 +
|-
 +
| Element
 +
| Element
 +
| Element
 +
|-
 +
| Element
 +
| Element
 +
| Element
 +
|-
 +
| Element
 +
| Element
 +
| Element
 +
|}
 +
 +
 +
You can adjust the size of your table by adding style="width:__%; height:__px" on the first line, filling in the blanks with the sizes you want like this:
 +
 +
 +
<nowiki>{| style="width:75%; height:200px" border ="1"
 +
|+Example Table 
 +
! FELD 1
 +
! FELD 2
 +
! FELD 3
 +
|-
 +
| Element
 +
| Element
 +
| Element
 +
|-
 +
| Element
 +
| Element
 +
| Element
 +
|-
 +
| Element
 +
| Element
 +
| Element
 +
|}</nowiki>
 +
 +
 +
Which will show up like this on your web page:
 +
 +
{| style="width:75%; height:200px" border="1"
 +
|+Example Table 
 +
! FELD 1
 +
! FELD 2
 +
! FELD 3
 +
|-
 +
| Element
 +
| Element
 +
| Element
 +
|-
 +
| Element
 +
| Element
 +
| Element
 +
|-
 +
| Element
 +
| Element
 +
| Element
 +
|}
 +
 +
 +
== See also: ==
 +
 +
[http://en.wikipedia.org/wiki/Help:Table Table Help on Wikipedia]
 +
 +
[[Category:Help Pages]]

Latest revision as of 15:28, 25 July 2008

This page has been adapted from Wikipedia.


You can use the Mediawiki edit toolbar to create tables on OutHistory.org (it is the 11th button from the right on the toolbar). By default, it includes the following text:


{| {{prettytable}}  
! FELD 1
! FELD 2
! FELD 3
|-
| Element
| Element
| Element
|-
| Element
| Element
| Element
|-
| Element
| Element
| Element
|}


Which shows up like this on your web page:

FELD 1 FELD 2 FELD 3
Element Element Element
Element Element Element
Element Element Element


To title your table, simply insert a pipe ( | ) and a plus sign ( + ) with your title after the first line:

{| {{prettytable}}
|+Example Table  
! FELD 1
! FELD 2
! FELD 3
|-
| Element
| Element
| Element
|-
| Element
| Element
| Element
|-
| Element
| Element
| Element
|}


Which shows up like this on your web page:


Example Table
FELD 1 FELD 2 FELD 3
Element Element Element
Element Element Element
Element Element Element


To give your table a border, type border="1" on the first line. The number in quotation marks corresponds to the size of the border.

{| {{prettytable}} border="1"
|+Example Table  
! FELD 1
! FELD 2
! FELD 3
|-
| Element
| Element
| Element
|-
| Element
| Element
| Element
|-
| Element
| Element
| Element
|}


Which will look like this on your web page:

Example Table
FELD 1 FELD 2 FELD 3
Element Element Element
Element Element Element
Element Element Element


You can adjust the size of your table by adding style="width:__%; height:__px" on the first line, filling in the blanks with the sizes you want like this:


{| style="width:75%; height:200px" border ="1"
|+Example Table  
! FELD 1
! FELD 2
! FELD 3
|-
| Element
| Element
| Element
|-
| Element
| Element
| Element
|-
| Element
| Element
| Element
|}


Which will show up like this on your web page:

Example Table
FELD 1 FELD 2 FELD 3
Element Element Element
Element Element Element
Element Element Element


See also:

Table Help on Wikipedia