Difference between revisions for Playground / Table Markup Guide




← Previous edit
Next edit →

Version1 Version2
227 227
228 %% 228 %%
229 #| 229 #|
230 ||(x=2;y=2) 2x2 |(x=2) 2x1 |(y=2) 1x2 || 230 ||(x=2 y=2) 2x2 |(x=2) 2x1 |(y=2) 1x2 ||
231 ||(y=2) 1x2 | 1x1 || 231 ||(y=2) 1x2 | 1x1 ||
232 || 1x1 | 1x1 |(x=2) 2x1 || 232 || 1x1 | 1x1 |(x=2) 2x1 ||
233 |# 233 |#
234 %% 234 %%
235 235
236 #| 236 #|
237 ||(x=2;y=2) 2x2 |(x=2) 2x1 |(y=2) 1x2 || 237 ||(x=2 y=2) 2x2 |(x=2) 2x1 |(y=2) 1x2 ||
238 ||(y=2) 1x2 | 1x1 || 238 ||(y=2) 1x2 | 1x1 ||
239 || 1x1 | 1x1 |(x=2) 2x1 || 239 || 1x1 | 1x1 |(x=2) 2x1 ||
240 |# 240 |#
331 331
332 ===Adding a touch of style=== 332 ===Adding a touch of style===
333 The table markup introduces a new [[TableMarkupReference style selector]]. CSS style options can be added to any element by enclosing them within **single braces**, right before the element content, e.g.: 333 The table markup introduces a new [[TableMarkupReference style selector]]. CSS style options can be added to any element by enclosing them within **single braces**, right before the element content, e.g.:
334 ##""||""{''style options''}Element content""||""## 334 ##""||""{''style options''} Element content ""||""##
335 335
336 For example, to render a cell with **red background** and **white text color**, you can do the following: 336 For example, to render a cell with **red background** and **white text color**, you can do the following:
337 337
391 391
392 %% 392 %%
393 #| 393 #|
394 ?|Give priority|? 394 ?| Give priority |?
395 ||(x=2;y=2){background-color:pink}2x2|(x=2){background-color:lightblue}2x1|(y=2){background-color:lightyellow}1x2|| 395 ||(x=2 y=2){background-color:pink} 2x2 |(x=2){background-color:lightblue} 2x1 |(y=2){background-color:lightyellow} 1x2 ||
396 ||(y=2){background-color:lightyellow}1x2|{background-color:#333;color:white}1x1|| 396 ||(y=2){background-color:lightyellow} 1x2 |{background-color:#333;color:white} 1x1 ||
397 ||{background-color:lightblue}1x1|{background-color:#333;color:white}1x1|(x=2){background-color:pink}2x1|| 397 ||{background-color:lightblue} 1x1 |{background-color:#333;color:white} 1x1 |(x=2){background-color:pink} 2x1 ||
398 |# 398 |#
399 %% 399 %%
400 400
401 #| 401 #|
402 ?|Give priority|? 402 ?| Give priority |?
403 ||(x=2;y=2){background-color:pink}2x2|(x=2){background-color:lightblue}2x1|(y=2){background-color:lightyellow}1x2|| 403 ||(x=2 y=2){background-color:pink} 2x2 |(x=2){background-color:lightblue} 2x1 |(y=2){background-color:lightyellow} 1x2 ||
404 ||(y=2){background-color:lightyellow}1x2|{background-color:#333;color:white}1x1|| 404 ||(y=2){background-color:lightyellow} 1x2 |{background-color:#333;color:white} 1x1 ||
405 ||{background-color:lightblue}1x1|{background-color:#333;color:white}1x1|(x=2){background-color:pink}2x1|| 405 ||{background-color:lightblue} 1x1 |{background-color:#333;color:white} 1x1 |(x=2){background-color:pink} 2x1 ||
406 |# 406 |#
407 407
408 ===Adding style through classes=== 408 ===Adding style through classes===
532 %% 532 %%
533 533
534 #| 534 #|
535 !|(u:The number of employees and the foundation year of some imaginary companies.)|!    
536 ?|Table 1: Company data|? 535 ?|Table 1: Company data|?
537 |[| 536 |[|
538 *| |(o=col)Employees|(o=col)Founded|* 537 *| |(o=col)Employees|(o=col)Founded|*