Difference between revisions for Playground / Table Markup Guide




← Previous edit
Next edit →

Version1 Version2
1 As of ##6.2##, Wacko introduces a flexible markup for data tables. Any kind of tables allowed by HTML5 can be created using this markup, from the most basic examples (e.g. simple rows of cells) to complex tables with full support for accessibility options. 1 As of **!!(green)6.2!!**, Wacko introduces a flexible markup for data tables. Any kind of tables allowed by HTML5 can be created using this markup, from the most basic examples (e.g. simple rows of cells) to complex tables with full support for accessibility options.
2 2
3 {{toc numerate=1}} 3 {{toc numerate=1}}
4   4  
470 |# 470 |#
471 471
472 ===Accessibility options=== 472 ===Accessibility options===
473    
474 ====Adding titles====    
475      
476 Any table element can be given a ##title## attribute to enhance its accessibility. Titles are typically displayed in graphical browsers by hovering over the corresponding element and are useful to display unobtrusive descriptions about specific elements. You can specify a ##title## for any table element by using the ##(t=''title'')## parameter.    
477    
478 The following example adds titles to several table elements (you can hover over the table to display them):    
479    
480 %%    
481 #|    
482 !|(t="Comparative figures for fruit production in the last year"){width: 350px}|!    
483 ?|Fruit production in 2026|?    
484 *| |(t="yearly production of apples")Apples|(t="yearly production of pears")Pears|*    
485 ^|(t="Mary's contribution to 2026 production")Mary|(t="Mary's production of apples in 2026"){text-align:center}300Kg|(t="Mary's production of pears in 2026"){text-align:center}320Kg||    
486 ^|(t="John's contribution to 2026 production")John|(t="John's production of apples in 2026"){text-align:center}400Kg|(t="John's production of pears in 2026"){text-align:center}630Kg||    
487 |#    
488 %%    
489    
490 #|    
491 !|(t="Comparative figures for fruit production in the last year"){width: 350px}|!    
492 ?|Fruit production in 2026|?    
493 *| |(t="yearly production of apples")Apples|(t="yearly production of pears")Pears|*    
494 ^|(t="Mary's contribution to 2026 production")Mary|(t="Mary's production of apples in 2026"){text-align:center}300Kg|(t="Mary's production of pears in 2026"){text-align:center}320Kg||    
495 ^|(t="John's contribution to 2026 production")John|(t="John's production of apples in 2026"){text-align:center}400Kg|(t="John's production of pears in 2026"){text-align:center}630Kg||    
496 |#    
497 473
498 ====Table head, table body and table foot==== 474 ====Table head, table body and table foot====
499 475
546 522
547 %% 523 %%
548 #| 524 #|
549 !|(u:The number of employees and the foundation year of some imaginary companies.)|!    
550 ?|Table 1: Company data|| 525 ?|Table 1: Company data||
551 |[| 526 |[|
552 *| |(o=col)Employees|(o=col)Founded|* 527 *| |(o=col)Employees|(o=col)Founded|*