Tags:
create new tag
view all tags
CategoryTWikiSyntax

Allow me to put the request in a simplified FMEA format as follows.

Function affected Failure Mode, example, failure mechanism, whish Cause Effect Current control or Wayaround Proposed Control
Table formatting Difficult to put long content or various paragraphs on a table cell. Also difficult to apply page formatting rules whithin a cell. Example:Tables whithin tables. (Originally seemed like the Current sintax needed each row to be in the same line, but that idea is depreciated.See comment below.) -- AntonioVega - 02 Mar 2004 Time consuming to include long or paragraphed content on a table cell. Use of % BR % each time you need a new line.
Or use HTML tags. Drawback: not compatible with table Twiki sintax.
Enhanced table sintax suitable for long cell content.
As a suggestion: A single or cople of start and stop cell divider characters (For example: /¬ and ¬/)means that the the text whithin them is a mutiline cell content and/or content on which normal page formating rules will apply to the cell.
ThomasWeigert Suggests to use SimpleTableEntryUsingForms. Drawback: not compatible with twiki tables, Pros:More features and perhaps more flexibility. AntonioVega - 28 Feb 2004
After reading ThomasWeigert ´s SimpleTableEntryUsingForms, I noticed a third alternative by using PeterThoeny ´s EditTablePlugin. Pros and Cons can be found in the related page. AntonioVega - 29 Feb 2004
Also, WalterMundt's RecursiveRenderPlugin can be used to help with this. This plugin allows you to surround any text in TWiki with <render>...</render> tags, which causes it to be rendered separately and then inserted into the topic as raw HTML, after the rest of the topic is rendered with a single word in place of the render-block. WalterMundt - 01 Mar 2004
RicherSyntaxPlugin allows lines to be broken and continued at the next line. Thus a large table cell could nicely be typed in as many continuation lines it takes.  
After JohnTalintyre´s contribution, it is clear that the cause originally stated is not true. Table formating rules do accept multi-line entries.
Perhaps the cause can be better stated by saying that, by design, not all page formatting rules apply to a table cell.
JohnTalintyre makes us remember that Multi-line support for table rows already exists just by ending the line with backslash "\". This cell was made using this method.
Cons:Still needs the use of % BR % for paragraphing, and lack of other page formating rules
Pos:Much more easy to edit and read the cell content. AntonioVega - 02 Mar 2004
  Another wayaround would be to use FrankPauw ´s CopyMsOfficeTableAddOn

-- AntonioVega - 28 Feb 2004

You may want to look at SimpleTableEntryUsingForms. While the storage format of these tables is not compatible with the twiki tables (it stores tables in meta data), editing of cells is easier and can simply deal with large cells. I could not imagine working without this addon; see also my note in TWikiInALargeCorporateSetting.

-- ThomasWeigert - 29 Feb 2004

A note to the above. I have not found time yet, but I was planning to port the table editing from SimpleTableEntryUsingForms to the standard twiki tables. There are, however, pros and cons on having the table data in either format. For searching across tables in metadata format, see the addon at MetaTableSearch.

-- ThomasWeigert - 29 Feb 2004

Multi-line support for table rows already exists in TWiki, infact anything can span lines, just end the line with backslash "\".

short cell contents very very very very very very very very very very very very very very very very very very very very very very very very very very very long cell contents another cell

entered as:

| short cell contents | very very very very very very very very very very \
very very very very very very very very \
very very very very very very very very very \
long cell contents | another cell |

another example of spanning lines

entered as:

another \
example of \
spanning lines

Still not great for editing, but okay for a not too long table. Would be great to see a full Javascript table editor plugin as standard in TWiki.

Does this cover the request, apart possibly from better documentation and may be adding to JavascriptBasedEditor?

-- JohnTalintyre - 01 Mar 2004

I would say that documenting this on formating rules will be OK. This alternative makes long cell content more readable and editable.I would say that deep down I ment to say, that a syntax was needed to makes a cell content behave like if it was a page. All the syntax rules to normal pages will apply to the cell content, for example tables whithin tables. Not sure, but seems like WalterMundt's RecursiveRenderPlugin can handle that. I´ll have to verify it.

-- AntonioVega - 02 Mar 2004

It should. After all, that was one of the main reasons I wrote it to begin with. You'd use code like this to do the above:

| short cell contents | <render>very very very very very very very very very very
very very very very very very very very
very very very very very very very very very
long cell contents</render> | another cell |

or alternatively

~bigcell
very very very very very very very very very very
very very very very very very very very
very very very very very very very very very
long cell contents
~~

| short cell contents | ~bigcell | another cell |

Oh, and with respect to tables within tables, see this TWiki page for an example of such a construct in action.

-- WalterMundt - 07 Mar 2004

May I also remind you of RicherSyntaxPlugin. This plugin offers the capability of splitting any line (not just table cells, but also lists, etc.) and continuing it with the next line without inserting a <BR /> or backslash at the end of the line. Instead, it adds the following two additional formatting rules:

  • Every two lines in which the second one has greater indentation (more white space at beginning) and does begins with a letter (in order to avoid clashes with nested lists) are glued together.
  • If a line has greater indentation than the previous one, but is composed only by blanks, it is replaced by <BR /><BR />. For ease of reading, it may contain some dots.

The only downside to this scheme is that there are a few tables in the TWiki documentation which are indented (for no obvious reason) and then above rule breaks the formatting there. (These could easily be fixed by eliminating the leading spaces from those tables.)

-- ThomasWeigert - 07 Mar 2004

Edit | Attach | Watch | Print version | History: r14 < r13 < r12 < r11 < r10 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r14 - 2004-03-07 - AntonioVega
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.