Loading...
 
Skip to main content

History: PluginSplit

Preview of version: 12

the Split Plugin


This 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 formating and line breaks within the cells of a table, unlike the simple table syntax.

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

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 percent of each TDs
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 uses a cellpadding parameter, but colsize can be used to create narrow "spacer" columns.


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 --- next{SPLIT}

Produces:

hey
one
two
three
hoy
foo bar test
next line next line



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.

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

History

Advanced
Information Version
Xavier de Pedro 13
View
mlpvolt noting a workaround for no cellpadding, more columns! Also italics dont work. 12
View
sylvie greverend 11
View
mlpvolt 10
View
mlpvolt minor clean up, question about cellpadding 9
View
mlpvolt 8
View
sylvie greverend 7
View
sylvie greverend 6
View
Philippe Cloutier Added bug tracker 5
View
DennisDaniels 4
View
Marc Laporte 3
View
Marc Laporte 2
View