OldStyleTablePlugin

From TheoryOrg

Jump to: navigation, search

StyleTablePlugin can be used to include tables within a wiki page using the old-style markup syntax for tables.

<?plugin [[OldStyleTable]]
||^  '''Name''                |v '''Cost''   |v '''Notes''
| '''First''     | '''Last''
|> Jeff       |< Dairiki   |^  Cheap   |< Not worth it
|> Marco      |< Polo      | Cheaper   |< Not available
?>

will get you

<?plugin OldStyleTable ||^ 'Name |v Cost |v Notes | First | Last |> Jeff |< Dairiki |^ Cheap |< Not worth it |> Marco |< Polo | Cheaper |< Not available ?>

Note that multiple _|'s lead to spanned columns, and 'v_s can be used to span rows. A _>' generates a right justified column, '<_ a left justified column and _^_ a centered column (which is the default.)


Note that within each table cell, new-style markup is used. You can only use inline markup --- no block level markup is allowed within table cells.

(Using old-style markup wouldn't make much sense, since one can't include multi-line plugin invocations using the old-style markup rules.)


Last edit: Fri, 14 Jul 2006 13:42:26 -0700
(WikiWord)
Revisions: 4
Personal tools