Help:Tables: Difference between revisions
No edit summary |
|||
| Line 76: | Line 76: | ||
<br clear='all'> | <br clear='all'> | ||
==Basic Table templates== | |||
For table formats that you plan to use on more than one page, you can define a template. To add a table based on a template, put: <nowiki><protect><!--box uid=63ce1649aab8b3180235b0af7618f667.109953.B46b86faccfc23--> | |||
== | <!-- | ||
****************************************************************************************** | |||
* | |||
[ | * ** PLEASE DON'T EDIT THIS TABLE DIRECTLY. Use the edit table link under the table. ** | ||
* | |||
****************************************************************************************** --> | |||
{|class = 'sortable' {{Prettytable}} id='220147' | |||
|- | |||
! | |||
|-class='sortbottom' | |||
|[{{SERVER}}/colipedia/index.php?title=Special:TableEdit&id=63ce1649aab8b3180235b0af7618f667.109953.B46b86faccfc23&page=109953&pagename={{FULLPAGENAMEE}} edit table] | |||
|} | |||
<!--box uid=63ce1649aab8b3180235b0af7618f667.109953.B46b86faccfc23--></protect> | |||
Revision as of 13:12, 7 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.
If you used option 2, an empty table with your headings appears when you save the page. 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.
If you used option 1, there will a Create table here link. You can create the headings when you edit the table.
Step 3: Edit the table Click on the link and use the table editor to add information.
Example
- 1. Create a table with the headings enclosed in newTableEdit tags.
- <newTableEdit>
- US State
- Capitol
- Governor
- </newTableEdit>

- 2. Click on the edit table link to go to the Table Editor.

- 3. Add a row.

- I don't know who the governor is, let's leave that for someone else to add.
- 4. Save in the edit page.

- 5. Let's add a column and make the heading background light blue.

- 6. Save back to the editor.

- 7. Save back to the wiki page.

Basic Table templates
For table formats that you plan to use on more than one page, you can define a template. To add a table based on a template, put: <nowiki>
| edit table |