users:werner:exttab1_en
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
users:werner:exttab1_en [2006-10-20 0744] – werner | users:werner:exttab1_en [2006-12-02 1547] (aktuell) – to show the code... werner | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== Extended Table Syntax ====== | ||
+ | ===== Ex. 0: extended ===== | ||
+ | |||
+ | including some of [[doku> | ||
+ | |||
+ | The " | ||
+ | |||
+ | < | ||
+ | {| width=80% align=center | ||
+ | |align=center|[[wiki: | ||
+ | |} | ||
+ | </ | ||
+ | |||
+ | {| width=80% align=center | ||
+ | |align=center|[[wiki: | ||
+ | |} | ||
+ | |||
+ | ---- | ||
+ | |||
+ | The other examples are taken from [[http:// | ||
+ | |||
+ | ===== Ex. 1: Plain ===== | ||
+ | |||
+ | < | ||
+ | {| | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | </ | ||
+ | |||
+ | {| | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Ex. 2: Alternative ===== | ||
+ | |||
+ | < | ||
+ | {| | ||
+ | | Orange | ||
+ | |- | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | |} | ||
+ | </ | ||
+ | |||
+ | {| | ||
+ | | Orange | ||
+ | |- | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== with HTML attributes ===== | ||
+ | |||
+ | ==== Ex. 3 ==== | ||
+ | |||
+ | < | ||
+ | {| border=" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | </ | ||
+ | |||
+ | {| border=" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Ex. 4 ==== | ||
+ | |||
+ | < | ||
+ | {| align=" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | </ | ||
+ | |||
+ | {| align=" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Ex. 5 ==== | ||
+ | |||
+ | < | ||
+ | {| border=" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |align=" | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |align=" | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |align=" | ||
+ | |} | ||
+ | </ | ||
+ | |||
+ | {| border=" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |align=" | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |align=" | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |align=" | ||
+ | |} | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Ex. 6 ==== | ||
+ | |||
+ | for single lines | ||
+ | |||
+ | < | ||
+ | {| border=" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |align=" | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |align=" | ||
+ | |- style=" | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |align=" | ||
+ | |} | ||
+ | </ | ||
+ | |||
+ | {| border=" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |align=" | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |align=" | ||
+ | |- style=" | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |align=" | ||
+ | |} | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Ex. 7 ==== | ||
+ | |||
+ | < | ||
+ | {| cellspacing=" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | </ | ||
+ | |||
+ | {| cellspacing=" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Ex. 8 ==== | ||
+ | |||
+ | < | ||
+ | {| cellpadding=" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | </ | ||
+ | |||
+ | {| cellpadding=" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== with HTML attributes and CSS styles ===== | ||
+ | |||
+ | ==== Ex. 9 ==== | ||
+ | |||
+ | < | ||
+ | {| style=" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | </ | ||
+ | |||
+ | {| style=" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== table with TH headings ===== | ||
+ | |||
+ | ==== Ex. 10 ==== | ||
+ | |||
+ | any column | ||
+ | |||
+ | < | ||
+ | {| border=" | ||
+ | !Yummy | ||
+ | !Yummier | ||
+ | |- | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | </ | ||
+ | |||
+ | {| border=" | ||
+ | !Yummy | ||
+ | !Yummier | ||
+ | |- | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Ex. 11 ==== | ||
+ | |||
+ | < | ||
+ | {| border=" | ||
+ | ! colspan=" | ||
+ | |- | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | </ | ||
+ | |||
+ | {| border=" | ||
+ | ! colspan=" | ||
+ | |- | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Ex. 12 ==== | ||
+ | |||
+ | heading per line | ||
+ | |||
+ | < | ||
+ | {| border=" | ||
+ | !Fruit | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | !Dish | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | !Complement | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | </ | ||
+ | |||
+ | {| border=" | ||
+ | !Fruit | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | !Dish | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | !Complement | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Ex. 12 ==== | ||
+ | |||
+ | heading per lign, aligned right | ||
+ | |||
+ | < | ||
+ | {| border=" | ||
+ | !align=" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | !align=" | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | !align=" | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | </ | ||
+ | |||
+ | {| border=" | ||
+ | !align=" | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | !align=" | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | !align=" | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== table with caption ===== | ||
+ | |||
+ | ==== Ex. 13 ==== | ||
+ | |||
+ | standard: caption above the table | ||
+ | |||
+ | < | ||
+ | {| border=" | ||
+ | |+Food complements | ||
+ | |- | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | </ | ||
+ | |||
+ | {| border=" | ||
+ | |+Food complements | ||
+ | |- | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Ex. 14 ==== | ||
+ | |||
+ | extended: caption under the table | ||
+ | |||
+ | < | ||
+ | {| border=" | ||
+ | |+align=" | ||
+ | |- | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | </ | ||
+ | |||
+ | {| border=" | ||
+ | |+align=" | ||
+ | |- | ||
+ | |Orange | ||
+ | |Apple | ||
+ | |- | ||
+ | |Bread | ||
+ | |Pie | ||
+ | |- | ||
+ | |Butter | ||
+ | |Ice cream | ||
+ | |} | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== some final words ===== | ||
+ | |||
+ | Here I stop (for now?) -- if I try to put H1...H6 into the tables, the formatting chaos will overwhelm me ;-). Hunting for the correct nesting of HR, TD, and CAPTION tags was quite a game... Maybe the fact that the alignment does not always work correct is caused by the template. Following the produced code it should be aligned correctly :-/ | ||
+ | |||
+ | Anyone please feel free to modify the code -- and please tell me what and why you did so that I can be happy about these modifications in my own wiki ;-) |
users/werner/exttab1_en.txt · Zuletzt geändert: 2006-12-02 1547 von werner