Loading...
 
Wiki syntax for creating simple tables

Wiki-Syntax Tables



Creating Tables with Wiki Syntax

Tables are often needed for organizing data information. Tiki has a simple syntax for defining a table. In Wiki pages and other contexts that support Wiki formatting (including Articles, Forums, and Blog), you can create simple tables. A table can be entered using two alternative delimiters (separators) for the rows; your administrator chooses which one is enabled. Both use the pipe symbol (or a vertical bar “|”, above the “" on most PC keyboards) to separate table columns. A double pipe (“||”) starts and ends the table in both types of syntax.

If || is the row delimiter, then table rows are separated by double pipes (“||”), just as at the beginning and the end of a table:

||row1-column1|row1-column2||row2-column1|row2-column2||


produces:

row1-column1row1-column2
row2-column1row2-column2


If, on the other hand, a newline is the row delimiter, then each line in the Wiki box represents a row in the table. So,

||row1-column1|row1-column2
row2-column1|row2-column2||


produces the same table:

row1-column1row1-column2
row2-column1row2-column2


Spanning Across Columns

You can span across multiple columns (colspan) in a row with the following syntax:

||row1-column1|row1-column2|row1-column3||row2-columns123||row3-column1|row3-columns23||

or

||row1-column1|row1-column2|row1-column3
row2-columns123
row3-column1|row3-columns23||

produces

row1-column1row1-column2row1-column3
row2-columns123
row3-column1row3-columns23


Note that partial column spanning only occurs in the last columns of a table. For instance, there is no way to span across the first two columns of a three column table.

Fancytable

Use PluginFancytable to create sortable and good looking tables.

Code :
{FANCYTABLE(head="row1-column1|row1-column2")}
row2-column1|row2-column2
{FANCYTABLE}
Produces :
row1-column1 row1-column2
row2-column1 row2-column2


Line Breaks


If you need to have multiple rows in a single cell of a table, use three percent signs to create line breaks, like this:

||Sample Table
row1-col1|row1-col2%%%second line%%%third line|row1-col3
row2-col1|row2-col2|row2-col3%%%second line||

produces:

Sample Table
row1-col1row1-col2
second line
third line
row1-col3
row2-col1row2-col2row2-col3
second line


Centering Table Text


To center any text, including text in a table, use two colons before and two colons after:

::This text is centered.::

produces:

This text is centered.


||::Sample Table::
row1-col1|row1-col2
row2-col1|row2-col2||

produces:

Sample Table
row1-col1row1-col2
row2-col1row2-col2



Positioning tables in a page

Centered Tables

Use plugincenter.

Code :
{CENTER()}||Sample Table
row1-col1|row1-col2
row2-col1|row2-col2||{CENTER}
Produces :
Sample Table
row1-col1row1-col2
row2-col1row2-col2


Right-Aligned Tables


If you need to right-align a table itself, you must use a DIV structure, and you must use both the align and float commands, or IE users won’t see it aligned correctly. Use this:

{DIV(class=>class, type=>div, align=>right, float=>right)}||::Sample Table::
row1-col1|row1-col2
row2-col1|row2-col2||{DIV}

to produce:
Sample Table
row1-col1row1-col2
row2-col1row2-col2




Help & Hints

  • If you see the WikiSyntax for your table instead of your table, check for newlines. Pressing Enter in the middle of a table will cause the table to break up, if || table mode is enabled.

Wiki-Syntax Links
Wiki-Syntax Lists
Wiki-Syntax Images
Wiki-Syntax Text
Wiki-Syntax Separators
Wiki-Syntax Special Characters
Advanced Wiki Syntax Usage Examples
PluginFancytable

doc.tiki.org


Bootstrap

AdminGuide

UserGuide

Keywords

Keywords serve as “hubs” for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 508)
Accounting (7.x)
Articles and Submissions
Backlinks
Banners
Batch (6.x)
BigBlueButton audio/video/chat/screensharing (5.x)
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution (2.x)
Cookie
Copyright
Credit (6.x)
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs 8.x
Draw 7.x
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management (4.x)
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Lost edit protection
Mail-in
Map with Mapserver
Menu
Meta Tags
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links (3.x)
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags (2.x)
Task
Tell a Friend, alert + Social Bookmarking
TikiTests (2.x)
Theme CSS & Smarty
Trackers
Transitions (5.x)
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebHelp
WebDAV (5.x)
Webmail
Web Services
Wiki 3D
Wiki History, page rename, etc
Wiki Page Staging and Approval (2.x)
Wiki Plugin extends basic syntax
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG (2.x)
XMLRPC


Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki
Show php error messages