FANDOM


Example

This example shows how a table can be generated inside of parser function.

{{#ifexpr: 1=1|
{{Table|w=80%|cs=2|cp=2}}
{{Table/Row|bg=#ffdead}}
{{Table/Header|w=10%|a=c}} Header 1
{{Table/Header|w=20%|a=c}} Header 2
{{Table/Header|w=35%|a=c}} Header 3
{{Table/Header|w=35%|a=c}} Header 4
{{Table/Row|bg=#e3e6ff}}
{{Table/Cell|a=c}} Cell 1
{{Table/Cell|a=c}} Cell 2
{{Table/Cell|cs=2|v=top|pl=6px}} Cell 3
{{Table/Row|bg=#e3e6ff}}
{{Table/Cell|rs=2|bg=#dedede|a=r}} Cell 4
{{Table/Cell|cs=3|bg=#eeeeff|a=c|p=6}} Cell 5
{{Table/Row|bg=#e3e6ff}}
{{Table/Cell}} Cell 6<br/>Cell 6
{{Table/Cell|v=top}} Cell 7
{{Table/Cell|v=bottom}} Cell 8
{{Table/Close}}
}}

Output

Header 1 Header 2 Header 3 Header 4
Cell 1 Cell 2 Cell 3
Cell 4 Cell 5
Cell 6
Cell 6
Cell 7 Cell 8

Discussion

Community content is available under CC-BY-SA unless otherwise noted.