Testing: input formatting

An introduction to my-kart Forum topics Off topic Website & Internet Testing: input formatting

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1610
    TheFazz
    Member

    [code]
    [*CSV sep=, sortby=0]
    Number,Driver,Info,Team
    1,M Schumacher,WDC,Ferrari
    2,R Barrichello,Bunny,Ferrarong
    3,J Button,Prat,BART
    [/*CSV]
    [/code]

    Should come out as this:
    [CSV sortby=0 header_class=dark header=0]
    Number,Driver,Info,Team
    1,M Schumacher,WDC,Ferrari
    2,R Barrichello,Bunny,Ferrarong
    3,J Button,Prat,BART
    [/CSV]

    #1612
    TheFazz
    Member

    The guide that I extracted from the module file…

    Tables in CSV format

    Full options list:

    • noheader
    • sortby=<nn>
    • sep=n (default “,”)
    • spacing=nn
    • padding=nn
    • spacing=nn
    • header_class=<class> (default “cell-highlight”)
    • odd_row_class=<class> (default “light”)
    • even_row_class=<class> (default “dark”)
    • odd_col_class=<class> (default none)
    • even_col_class=<class> (defaut none
    • unquoted
    • quote=<quote_char> (default ‘”‘)

    Class names must be lowercased.
    Teach on examples.

    Table #1 (defaults)


    [*CSV]
    "column1","column2","column3"
    1,"text for line #1", $1.1
    2,"text for line #2", $1
    [/*CSV]

    Should render as follows:
    [CSV]
    “column1″,”column2″,”column3″
    1,”text for line #1″, $1.1
    2,”text for line #2”, $1
    [/CSV]

    Table #2 (custom spacing and separator)


    [*CSV spacing=0 noheader sep=! header_class=dark]
    first!second!third
    123!151 209 982!-15
    321!998 000 150!-1.5
    456!100 011 200!-.15
    [/*CSV]

    Should render as follows:
    [CSV spacing=0 noheader sep=! header_class=dark]
    first!second!third
    123!151 209 982!-15
    321!998 000 150!-1.5
    456!100 011 200!-.15
    [/CSV]

    Table #3 (sorting)


    [*CSV order=desc sortby=2 noheader unquoted]
    1,100,2nd string
    2,200,1st string
    3,300,3d string
    [/*CSV]

    Should render as follows:
    [CSV order=desc sortby=2 noheader unquoted]
    1,100,2nd string
    2,200,1st string
    3,300,3d string
    [/CSV]

    #1614
    TheFazz
    Member

    more testing…

    myTEST#1 (spacing)


    [*CSV spacing=5]
    first,second,third
    123,151 209 982,-15
    321,998 000 150,-1.5
    456,100 011 200,-.15
    [/*CSV]

    Should render as follows:
    [CSV spacing=5]
    first,second,third
    123,151 209 982,-15
    321,998 000 150,-1.5
    456,100 011 200,-.15
    [/CSV]

    myTEST#2 (header)


    [*CSV spacing=1 header_class=cell-highlight]
    first,second,third
    123,151 209 982,-15
    321,998 000 150,-1.5
    456,100 011 200,-.15
    [/*CSV]

    Should render as follows:
    [CSV spacing=1 header_class=cell-highlight]
    first,second,third
    123,151 209 982,-15
    321,998 000 150,-1.5
    456,100 011 200,-.15
    [/CSV]

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.