Loading...
 
Display a table using MediaWiki syntax

Plugin Media Wiki Table

Introduced in Tiki3

Use this wiki plugin to display a table using MediaWiki syntax.

Parameters

Introduced in Tiki3.
Preferences required: wikiplugin_mwtable
Parameters Accepted Values Description Default Since
(body of plugin) URL
fancy (blank)
true
false
Set to true to apply additional formatting to the table (header style, odd/even rows, etc.). Takes precedence over the wiki_classes parameter. false 3.0
wiki_classes (blank)
true
false
Determines whether wiki style classes will be used for the table and cells (used by default) true 3.0


Usage notes

This plugin doesn't support things like templates or the !row heading syntax. Column styling overcomes the latter to a degree but, for cross-browser consistency, you are limited by HTML to border= , background= , width= and visibility= . You can also use span= so that a col definition can apply to adjacent columns. tr and td styling overrides col .

Structure of data

  • Optionally, first line (prior to the first | ) contains html attributes for the table element.
  • Optionally, next line can specify a caption; line starts with |+ followed by optional html attributes that end with a | followed by the caption text.
  • Optionally, html attributes for col elements can be specified next on one or more lines starting with a ?
  • Each column's attributes start on a new line with ? or on the same line preceded by ?? and become a col
  • Optionally, column headings can be specified next on one or more lines starting with a !
  • Each column's heading starts on a new line with ! or on the same line preceded by !!
  • Optional html attributes for th end with a | followed by text that becomes the text of a th
  • Each row, including the first, starts on a new line with |- , optionally followed by html attributes for the tr element
  • Each cell starts on a new line with | or on the same line preceded by ||
  • Optional html attributes for the td element end with a | followed by the cell text (so data for one cell can have 1 or 2 | characters. Any other | characters are assumed to be part of the cell text.)

Examples

Basic syntax:

{MWTABLE(fancy="" wiki_classes="")}data{MWTABLE}

The minimum

This code:
{MWTABLE()} 
|-
| Bill || The little house
|-
| Carol || The big house
{MWTABLE}


Would produce:
<table class="wikitable">
<tr>
<td class="wikicell">Bill</td>
<td class="wikicell">The little house</td>
</tr>
<tr>
<td class="wikicell">Carol</td>
<td class="wikicell">The big house</td>
</tr>
</table>


As a reference, under tikineat.css style, it shows as:
Image


Include styling

This code:
{MWTABLE( wiki_classes="false")} style="width:50%", class="myclass"
|+style="font-style:italic;"|My caption
? width="30%;" ?? style="background-color:yellow;"
! style="background-color:grey;"| Name
! Address
|- style="background-color: red"
| style="color: blue;" | Bill
| The little house
|-
| Carol || The big house
{MWTABLE}


Would produce:
<table style="width:50%;" class="normal myclass">
<caption style="font-style:italic;">
My caption</caption>
<col style="width:30%;"/>
<col style="background-color:yellow;"/>
<tr>
<th style="background-color:grey;color:red;">Name</th>
<th>Address</th>
</tr>
<tr style="background-color:red;">
<td style="color:blue;">Bill</td>
<td class="">The little house</td>
</tr>
<tr>
<td>Carol</td>
<td>The big house</td>
</tr>
</table>


As a reference, under tikineat.css style, it shows as:
Image

Contributors to this page: lindon and billf .
Page last modified on Sunday 23 August, 2015 04:44:28 CEST by lindon.

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