DocBlocks

A block in tbwiki is marked on a page with opening and closing triple-braces.

The syntax of the first word on the same line as the opening braces determines the type of block, and how it will be interpreted by tbwiki.

Here are some block types:

Block names [edit section]

A block can be named, in which case a single word immediately following the opening triple-brace, on the same line, is the block name. Blocks may be referenced by name from other pages or using processors.

Block names are referenced with the syntax:

If the block is on the same page as the processor that is working on it, the page name may be omitted, leaving just the leading colon.

To declare a block name, use the following:

examples [edit section]

simple named block
{{{MyData
<put data here>
}} }

hidden block

{{{#HyHiddenData
<this data won't display on the page>
}} }

processor

{{{#!PigLatin
This will display as pig latin!
}} }

named table block

{{{#!Table:BlockName
<table spec and data>
}} }

unnamed table block

{{{#!Table
}} }
Internally, the table code may use a table name of __block5 for that table.

See TestBlocks for some examples.

FIXTHIS - can you start a block in the middle of a line? FIXTHIS - can you end a block in the middle of a line?