Difference between revisions of "Help:Tables"
From Scan New England Wiki
Jump to navigationJump to search| Line 1: | Line 1: | ||
| − | = | + | __NOTOC__ |
| + | ='''Creating a Table'''= | ||
| Line 11: | Line 12: | ||
| − | ===Table | + | ===Example=== |
| + | |||
| + | <pre>{{prettytable}}</pre> | ||
| + | |||
| + | |||
| + | ===Syntax: Data inside the Table=== | ||
*A table consists of rows and columns | *A table consists of rows and columns | ||
| Line 22: | Line 28: | ||
===Example=== | ===Example=== | ||
| − | + | <pre> | |
| − | + | |- | |
| − | + | ||Department||Frequency||Tone||District | |
| − | + | </pre> | |
===Additional Syntax=== | ===Additional Syntax=== | ||
*You can use some HTML code in wiki pages | *You can use some HTML code in wiki pages | ||
| − | *To center your text in the rows use: | + | *To center your text in the rows use: |
| − | *To add a background color to | + | <pre>align="center"</pre> |
| + | *To add a background color to a row use: | ||
| + | <pre>style="background:silver"</pre> | ||
Latest revision as of 16:45, 23 July 2008
Creating a Table
Beginning the Table
- Start by using one of our templates named "Prettytable"
- Begin the table template by using two braces " {{ "
- Type the name of the table: Prettytable
- End the table template with two braces going the opposite way " }} "
- The braces " { " are just above the enter key, are also with the brackets " [ " and are used with the shift button
Example
{{prettytable}}
Syntax: Data inside the Table
- A table consists of rows and columns
- Each row is started with " |- "
- The first character is the shift of the " \ " directly above the enter key
- The second character is a dash, or minus sign
- Each column is separated by two lines: " || "
Example
|- ||Department||Frequency||Tone||District
Additional Syntax
- You can use some HTML code in wiki pages
- To center your text in the rows use:
align="center"
- To add a background color to a row use:
style="background:silver"