Fullscreen
[Show/Hide Left Column]
[Show/Hide Right Column]

3d browser Print

Plugin Split

This Wiki Plugin can be used to generate an html table without all the tags. Ideal for creating two or more columns in a wiki page, this plugin allows for wiki syntax and line breaks within the cells of a table, unlike the simple table? syntax. It also supports the inclusion of (multiple) other pages within a table framework and Edit by Section in the wiki.

Syntax

Plugin command: {SPLIT(fixedsize=__, colsize=__, joincols=__, first=__ )}

additional syntax:

--- separates columns
@@@ separates rows

Parameters: Split uses the following parameters:


joincols=y|n|0|1 : if it is true 'colspan' attribute will be generated if there are cells mising in a row. - default 'y'
fixedsize=y|n|0|1 : 'width' attribute will be generated for TDs - default 'y'
colsize=>size1|size2|...: are the size in pixels by default
or
colsize=>percent%|percent| : using % tiki will take the values as the relative percentage size of each table cell. Numbers that add up to more than 100 will be proportional.

In 1.10:
first=> col|line : col is the editorial way: the column is filled first, line is the html way, the row is filled e.g.
first {SPLIT(first=col)}r1c1---r2c1---r3c1@@@r1c2---r2c2{SPLIT} {SPLIT(first=>line)}r1c1---r1c2@@@r2c1---r2c2{SPLIT}

padding? - the split plugin doe not use a cellpadding parameter, but colsize can be used to create narrow "spacer" columns.

In 3.0:
customclass => className : for customizing the design



Examples

To split a page in two or more columns, use --- as the separator:
Example:
{SPLIT()} -=hey=- one two three --- -=hoy=- foo bar test {SPLIT}

Produces:
hey
one two three
hoy

foo bar test


If you want to do another row, use @@@:
Example:
{SPLIT()} -=hey=- one two three --- -=hoy=- foo bar test @@@ next line1--- next line2{SPLIT}

Produces:
hey
one
two
three
hoy
foo bar test
next line1 next line2



note: If you want to use the horizontal rule in a split cell --- , you have to use more than 3 dashes ----

In tikiwiki1.10 : There is 2 additional parameters
- first=col|line. The default is line , the behaviour of 1.9 or the html table behavior. First=col enables you to describe first the first column, second the second column.. It is more appropriate for an editorial behavior.
Ex:
{SPLIT(first=col)}r1c1---r2c1---r3c1@@@r1c2---r2c2{SPLIT}
- edit=y to be able to edit the split section (if you have the perms of course). The parameter works only if first=col has been choosen and on a wiki page. It will create a little edit icon in the corner of the split section and will allow you to edit the section without the rest.

FAQ


  • How do i make the border disappear?
The table created with a split has a class wikiplugin-split and a class normal if the table with be 100% width

Bugs

Bugs: Content within the table doesn't seem to be parsed for all tiki markup, it doesn't work for italics, in any case.

More Examples


{SPLIT(colsize=300|100|300)}r1c1---r2c1---r3c1@@@r1c2---r2c2{SPLIT}
r1c1 r2c1 r3c1
r1c2 r2c2


{SPLIT(fixedsize=y, colsize=300|100|300)}r1c1---r2c1---r3c1@@@r1c2---r2c2{SPLIT}
r1c1 r2c1 r3c1
r1c2 r2c2


{SPLIT(fixedsize=n, colsize=300|100|300)}r1c1---r2c1---r3c1@@@r1c2---r2c2{SPLIT}
r1c1 r2c1 r3c1
r1c2 r2c2


{SPLIT(fixedsize=n, colsize=20|60|10|10)}r1c1---r2c1---r3c1--r4c1@@@r1c2---r2c2{SPLIT}
r1c1 r2c1 r3c1--r4c1
r1c2 r2c2


{SPLIT(fixedsize=y, colsize=20|60|10|10)}r1c1---r2c1---r3c1--r4c1@@@r1c2---r2c2{SPLIT}
r1c1 r2c1 r3c1 r4c1
r1c2 r2c2


{SPLIT(fixedsize=y, colsize=20%|60|10|10)}r1c1---r2c1---r3c1--r4c1@@@r1c2---r2c2{SPLIT}
r1c1 r2c1 r3c1 r4c1
r1c2 r2c2


{SPLIT(fixedsize=y, colsize=20|60%|10|10)}r1c1---r2c1---r3c1--r4c1@@@r1c2---r2c2{SPLIT}
r1c1 r2c1 r3c1 r4c1
r1c2 r2c2


{SPLIT(fixedsize=n, colsize=20|60|10|10, joincols=n)}r1c1---r2c1---r3c1--r4c1@@@r1c2---r2c2{SPLIT}
r1c1 r2c1 r3c1--r4c1
r1c2 r2c2




  • What you can see, fixedsize has no importance if colsize is specified.
  • If one colsize has a % , the table gets the class normal ->100% width


Related



Alias



Contributors to this page: dieeg111 points  , marclaporte4496 points  , aproulx338 points  , lindon1665 points  , alisonruth49 points  , Xavi25744 points  , xavidp819 points  , sylvie2934 points  and mlpvolt1661 points  .
Page last modified on Sunday 14 February, 2010 21:32:25 UTC by dieeg111 points .

To register

To have an account at this site, please register at Tikiwiki.org (external link), and then use that user name and password to log in here.

Find by Page Name

Exact match

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki documentation and should correspond to development keywords (bug reports and feature requests):

Accessibility (WAI – 508)
Action log 2.x
Alert 3.x
Articles & Submissions
Backlinks
Banners
Blog
Bookmark
Browser Compatibility
Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts Address book
Contact us
Content template
Contribution 2.x
Cookie
Copyright
Custom Home (and Groups Home Page)
Date and Time
Debugger Console
Directory (of hyperlinks)
Documentation link from Tiki to doc.tikiwiki.org (Help System)
DogFood
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
Interaction
Inter-User Messages
InterTiki
Karma
Live Support
Login
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
Profile Manager
Quicktags
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Security
Semantic links 3.x
Shadowbox
Shoutbox
Slideshow
Smarty Template
Smiley
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
System log
Tags 2.x
Task
Tell a Friend + Social Bookmarking 2.x
TikiTests 2.x
Theme
Trackers
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebHelp
Webmail
Webservices
Wiki 3D
Wiki History, page rename, etc
Wiki Page Staging and Approval 2.x
Wiki Plugins extends basic syntax
Wiki Syntax
Wiki structure (book and table of content)
WYSIWYCA
WYSIWYG 2.x
XMLRPC