Extension table

Tables in Wikimedia syntax. The table in the file must use the mediawiki syntax for tables, with an example shown below. The optional class attribute places a <div> element around the table for styling with the given class.

The optional format attribute allows to select the markup within the cells. Examples are html, markdown, wikimedia, latex.

A different way to include tables is to include HTML chunks with tables.

---
type: table
file: tables/table.mw
class: rubric
caption: "Table with a caption."
---
---
type: table
file: tables/table.mw
class: rubric
caption: "Table with a caption."
---

The file tables/table.mw contains the table:

{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream 
|}
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream 
|}
Python typeTable
typetable
LanguageYAML
Required fields
Optional fieldsfile, class, caption, format
Post-Yaml Sectionrequired

Example 1

 

Orange

Apple

Bread

Pie

Butter

Ice cream

Source Code

---
type: table
class: rubric
caption: "Table with a caption."
---
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream 
|}

---
type: table
class: rubric
caption: "Table with a caption."
---
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream 
|}
Edit this page