Help:Tables: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
==Basic usage== | ==Basic usage== | ||
TableEdit provides a more user-friendly way to create and edit tables in mediawiki than using the standard wiki mark-up. TableEdit tables show up in a page with their own Edit link. Registered users can then add rows and columns, add information, and/or edit information already in the table. | |||
===Create a new table=== | ===Create a new table=== | ||
'''Step 1: Add a newTableEdit tag where you want the table to appear.''' | '''Step 1: Add a newTableEdit tag where you want the table to appear.''' | ||
| Line 6: | Line 7: | ||
To add a new table that can be edited by TableEdit, there are two options: | To add a new table that can be edited by TableEdit, there are two options: | ||
*Add an empty table by putting <nowiki><newTableEdit/></nowiki> in the text | *Add an empty table by putting <nowiki><newTableEdit/></nowiki> in the text where you want the table to appear. | ||
*Add a table with defined headings by entering the following: | *Add a table with defined headings by entering the following: | ||
:<nowiki><newTableEdit></nowiki> | :<nowiki><newTableEdit></nowiki> | ||
| Line 23: | Line 24: | ||
'''Step 2: Save the page'''. | '''Step 2: Save the page'''. | ||
An empty table with your headings appears when you save the page, if you used option 2. If you used option 1, the page will have a '''Create table here''' link. Note that the default table has the column headings arrayed horizontally from left to right. You can change the orientation when you edit the table. | |||
'''Step 3: Edit the table | '''Step 3: Edit the table''' | ||
Click on the link and use the table editor | Click on the link and use the table editor. | ||
====Example==== | ====Example==== | ||
:1. Create a table with the headings enclosed in newTableEdit tags, as shown. | |||
::<nowiki><newTableEdit></nowiki> | |||
::US State | |||
::Capitol | |||
::Governor | |||
::<nowiki></newTableEdit></nowiki> | |||
[[Image:New_table_1.jpg]] | |||
:2. Click on the '''edit table''' link to go to the Table Editor. | |||
[[Image:New_table_2.jpg]] | |||
The default table format is horizontal (headings running from L to R across the top of the table). If you want a vertical table (headings running from Top to Bottom in the first column of the table), you can rotate the table after you have created it. | The default table format is horizontal (headings running from L to R across the top of the table). If you want a vertical table (headings running from Top to Bottom in the first column of the table), you can rotate the table after you have created it. | ||
Revision as of 19:24, 4 August 2007
Basic usage
TableEdit provides a more user-friendly way to create and edit tables in mediawiki than using the standard wiki mark-up. TableEdit tables show up in a page with their own Edit link. Registered users can then add rows and columns, add information, and/or edit information already in the table.
Create a new table
Step 1: Add a newTableEdit tag where you want the table to appear.
To add a new table that can be edited by TableEdit, there are two options:
- Add an empty table by putting <newTableEdit/> in the text where you want the table to appear.
- Add a table with defined headings by entering the following:
- <newTableEdit>
- Heading 1
- Heading 2
- Heading 3
- etc...
- </newTableEdit>
- You can edit the columns later if needed.
Step 2: Save the page.
An empty table with your headings appears when you save the page, if you used option 2. If you used option 1, the page will have a Create table here link. Note that the default table has the column headings arrayed horizontally from left to right. You can change the orientation when you edit the table.
Step 3: Edit the table
Click on the link and use the table editor.
Example
- 1. Create a table with the headings enclosed in newTableEdit tags, as shown.
- <newTableEdit>
- US State
- Capitol
- Governor
- </newTableEdit>
- 2. Click on the edit table link to go to the Table Editor.
The default table format is horizontal (headings running from L to R across the top of the table). If you want a vertical table (headings running from Top to Bottom in the first column of the table), you can rotate the table after you have created it.