TablesPlus plugin can also easily create lists (in addition to creating tables), in very human-readable and writable format.
To create a list with TablesPlus plugin, surround your list items inside this tag:
Code |
---|
[tables=list] [ /tables] |
TablesPlus can create several varieties of lists, depending on whether you want them nested, and whether you use headers. The following examples will demonstrate their usages -- observe the code and the subsequent resulting list.
The format of the list code adheres to VSV (Versatile Separated Values).
The first example is a simple single-level list: no nesting and no headers. Only data rows are used.
[ tables=list] ,milk ,eggs ,patties ((forgot , , ,fries ,hazelnut creamer ,, ,Sliced bread , , [ /tables]
- milk
- eggs
- patties
- fries
- hazelnut creamer
- Sliced bread
The second example uses a single header, which then indents the subsequent items.
[ tables=list] {{Shopping List}} ,milk ,eggs ,patties ((forgot , , ,fries ,hazelnut creamer ,, ,sliced bread , , [ /tables]
- Shopping List
- milk
- eggs
- patties
- fries
- hazelnut creamer
- sliced bread
- >
Nested Lists
Two ways to make nested lists: with and without headers. First row will determine whether headers are used. Mixing both methods can lead to unpredictable results.
The third example will align the items into varying tiers of indentations, using only data rows (no header rows.) Each consecutive delimiter (null data) at the beginning of the row will indent one tier.
[ tables=list] *Things to do today --Feed cat +++Rinse bowl +++Open cat food +++Mix dry and wet food in bowl +++Deliver on a silver platter to Pixel --Wash car +++Vacuum interior +++Wash exterior +++Wax exterior --Grocery shopping +++Plan meals +++Clean out fridge +++Make shopping List ####milk ####eggs ####patties#buns +++Go to store *Things to do tomorrow [ /tables]
- Things to do today
- Feed cat
- Rinse bowl
- Open cat food
- Mix dry and wet food in bowl
- Deliver on a silver platter to Pixel
- Wash car
- Vacuum interior
- Wash exterior
- Wax exterior
- Grocery shopping
- Plan meals
- Clean out fridge
- Make shopping List
- milk
- eggs
- patties
- buns
- Go to store
- Feed cat
- Things to do tomorrow
The next two examples also nests the list, but using header rows to guide the indentation.
[ tables=list] {{ use empty enclosed brackets to indent header and subsequent data rows {{Things to do today}} {{}}{{Feed cat}} `Rinse bowl `Open cat food `Mix dry and wet food in bowl `Deliver on a silver platter to Pixel {{}}{{Wash car}} `Vacuum interior `Wash exterior `Wax exterior {{}}{{Grocery shopping}} `Plan meals `Clean out fridge {{}}{{}}{{Make shopping List}} ,milk ,eggs ,patties,buns {{}} {{row with only empty headers to return to that many previous tiers `Go to store {{Things to do tomorrow}} [ /tables]
- Things to do today
- Feed cat
- Rinse bowl
- Open cat food
- Mix dry and wet food in bowl
- Deliver on a silver platter to Pixel
- Wash car
- Vacuum interior
- Wash exterior
- Wax exterior
- Grocery shopping
- Plan meals
- Clean out fridge
- Make shopping List
- milk
- eggs
- patties
- buns
- Go to store
- Feed cat
- Things to do tomorrow
[ tables=list] [[loginname]] :smithj [[password]] :x [[userid]] :561 [[groupid]] :561 [[realname]] :Joe Smith [[homedir]] :/home/smithj [[shell]] :/bin/bash ((etc. [ /tables]
- loginname
- smithj
- password
- x
- userid
- 561
- groupid
- 561
- realname
- Joe Smith
- homedir
- /home/smithj
- shell
- /bin/bash
You may also consider printing lists as a single-column table using the VSV option, like so:
Code |
---|
[ tables=vsv] [ /tables] |
The benefit is that VSV tables are styled and centered, thus giving the list more prominence. Compare these examples with above lists, using identical data inside the [ tables] tag. (This is the power of the VSV file format -- simple, human-readable, yet versatile, powerful, and extensible.)
Shopping List |
---|
milk |
eggs |
patties |
fries |
hazelnut creamer |
sliced bread |
loginname |
---|
smithj |
password |
x |
userid |
561 |
groupid |
561 |
realname |
Joe Smith |
homedir |
/home/smithj |
shell |
/bin/bash |
See also an earlier post on creating tables with TablesPlus plugin.