Loading...
 
Features / Usability

Features / Usability


Formatting a table

posts: 131 Singapore

Hi,

Wondering if there is a simpler way of formatting the below table. What I wanted are to have the first row 2nd and 3rd colum contents spanning across the cell PART and Document/Drwaing, and to break item (1), (2) and (3) onto a new line. Tried many ways but still cannot achieve the expected results.... Anybody can help??

Rule Table
Part Document / drawing
Type (1) Part YYY. (2) For TRUE raw material, set as Raw Material.
Revision Default BUT next rev. for: (1) B1 is AC and C1 is AD, (2) OR AA for all legacy records. (3)Do not revise Created record. Default BUT next rev. for: (1) B1 is AC and C1 is AD, (2) OR AA for all legacy records. (3) Do not revise Created record,


--kwow

posts: 4594 Japan

Looks funky, but

Rule Table
- Part Document / drawing
Type
(1) Part YYY.
(2) For TRUE raw material, set as Raw Material.
-
Revision Default BUT next rev. for:
(1) B1 is AC and C1 is AD,
(2) OR AA for all legacy records.
(3) Do not revise Created record.
Default BUT next rev. for:
(1) B1 is AC and C1 is AD,
(2) OR AA for all legacy records.
(3) Do not revise Created record,

is produced by:

||Rule Table	
 - | Part | Document / drawing
Type |~pp~
(1) Part YYY.
(2) For TRUE raw material, set as Raw Material.~/pp~ | - | 
Revision | Default BUT next rev. for:~pp~(1) B1 is AC and C1 is AD,
(2) OR AA for all legacy records.
(3) Do not revise Created record.~/pp~ | Default BUT next rev. for:~pp~
(1) B1 is AC and C1 is AD,
(2) OR AA for all legacy records.
(3) Do not revise Created record,~/pp~ ||


Maybe this could be refined somewhat. wink

-- Gary

posts: 131 Singapore

Thanks to Gary and xavidp which produces some cool and useful (at least for me) code. Really appreciate your effort.wink Thanks.

In Gary's case...simple and easy to use. I am learning and discovering new things from Gary all the time.

In xavidp's case, it is also the same. But I am confused by the HTML syntax used. Does it means that a Wiki page can accept both HTML and Tiki-syntax code simultaneously?? For me I've tried and it ONLY accept either one of the syntax or neither one. Maybe xavidp can clarified. biggrin

Thanks in advance.

--kwow

posts: 953

> In Gary's case...simple and easy to use. I am learning and discovering new things from Gary all the time.
So am I. Thanks Gary smile

> In xavidp's case, it is also the same. But I am confused by the HTML syntax used. Does it means that a Wiki page can accept both HTML and Tiki-syntax code simultaneously??

Yes, of course! And it's very nice (sometimes there are confusion in tiki for some combination of tiki code and htmnl code, but you'll learn quickly what you can and cannot do.

Cheers


posts: 953

Hi Kwow,

Gary, you're the fastest in the East! smile
I was already answering kwow, but I took longer than you - take readaers intoaccount that I hadn't read Gary's trick! vey nice use of pp tag - I didn't use it but it's neateekbiggrin

Welcome to the wonderful world of tables within Tiki!surprised. I presume that there is still a long way to go, and it seems as if Tikisheets will help that a bit in the -short? long?- future, as you're already seeing, I guess, while trying its capabilities (other posts on this forum, etc. wink )

> Wondering if there is a simpler way of formatting the below table. What I wanted are to have the first row 2nd and 3rd colum contents spanning across the cell PART and Document/Drwaing,

I think it's not possible with the present features at 1.9.0. (I'd love to be wrong... I also wanted to do that weeks ago, and I didn't manage either). At the most,

Rule Table
Part Document / drawing
...


> and to break item (1), (2) and (3) onto a new line. Tried many ways but still cannot achieve the expected results.... Anybody can help??

This is possible indeed! biggrin (it took me some time to discover, but it's so simple, that I wonder why I didn't figured out earlier... kind-of-slow processing brain sometimes, I guess smile)

This trick needs to have "html" feature on in "Admin > Wiki", and having the box "Allow html" checked in the wiki page. Since html tags are not supported in tw.o, afaik, I wrote __1BR_HTML_TAG_HERE__ at every place where an br html tag should be written.

{FANCYTABLE(head=> Rule Table  ~|~ ~|~ )}
~|~ Part ~|~ Document / drawing
Type~|~(1) Part YYY. __1BR_HTML_TAG_HERE__(2) For TRUE raw material, set as Raw Material. ~|~
Revision ~|~ Default BUT next rev. for:  __1BR_HTML_TAG_HERE__(1) B1 is AC and C1 is AD, __1BR_HTML_TAG_HERE__(2) OR AA for all legacy records. __1BR_HTML_TAG_HERE__(3)Do not revise Created record. ~|~Default BUT next rev. for:  __1BR_HTML_TAG_HERE__(1) B1 is AC and C1 is AD, __1BR_HTML_TAG_HERE__(2) OR AA for all legacy records. __1BR_HTML_TAG_HERE__(3) Do not revise Created record,
{FANCYTABLE}


This would produce:

Image

By the way, now it comes my question:
How can we post CODE's with loooong lines like this one I reported, and avoiding tiki forums central column to become so wide? (it's a bit uncomfortable to read it this way...)
I thought SCROLL plugin could do (I haven't tried this plugin before, but I couldn't manage to use it a moment ago in this post or in a 1.9.0 wiki page- was complaining about height, even if I set also that parameter...)

posts: 131 Singapore

Hi xavidp,

Pardon my ignorance but exactly how do you create the HTML tag __1BR_HTML_TAG_HERE__??

Thanks,

--kwow



posts: 4594 Japan

> Gary, you're the fastest in the East! smile
> I was already answering kwow, but I took longer than you - take readaers intoaccount that I hadn't read Gary's trick! vey nice use of pp tag - I didn't use it but it's neateekbiggrin

Maybe I should've slowed down; looks like I left an extra cell in the second row. Anyway, I was just looking down through the wiki tags and wondered if the pp tags would work inside a table.

If the preformated text (pp) was used much by people in this way, they could specify it in the style sheet to be the same font, etc. as the rest of the wiki text. That would improve the appearance quite a bit where it's combined with other wiki tags like this.

Another thing is that it'd be fairly easy to make a wiki plugin, if there was a need.

>...
> By the way, now it comes my question:
> How can we post CODE's with loooong lines like this one I reported, and avoiding tiki forums central column to become so wide? (it's a bit uncomfortable to read it this way...)
> I thought SCROLL plugin could do (I haven't tried this plugin before, but I couldn't manage to use it a moment ago in this post or in a 1.9.0 wiki page- was complaining about height, even if I set also that parameter...)

What theme are you using? The code plugin tag has an overflow property in the Tikineat theme, so CSS provides a scrollbar for any content that exceeds the width of the center column. This style could added to any theme that doesn't already use it.

-- Gary