|
Cookbook /
TabulateSummary: Handles tab-delimited tables so you can cut and paste to and from spreadsheet applications
Version: 2008-09-08
Prerequisites: PmWiki 2.2.0-beta series, untested on 2.1.27 and earlier
Status: beta
Maintainer: EemeliAro
Questions answered by this recipe
DescriptionTabulate lets PmWiki handle tab-delimited data as tables. As this is the format that is used when you copy cells to a text field from MS Excel, OpenOffice Calc or most other spreadsheet applications, you can use Tabulate to easily import or maintain data from external applications. Tabulate also provides for a simple way to manage the appearance of tables in PmWiki outside the data itself. To install this recipe:
What it doesTabulate identifies a tab-delimited table from the tab character itself, which otherwise doesn't often appear inside wiki markup -- pressing tab in the edit box will in most cases move the focus to the edit summary box. Once it finds a tab character, it builds a table from that and subsequent rows of text until it reaches a row that doesn't have a tab character. MarkupTables themselves are recognised from their inherent tab characters, but to manage their appearance you can use the following optional directive:
All parameters are optional,
ExampleIf the extension were enabled, this markup would produce the subsequent table: (:tab-table col2=''@@100px@@'' row1="'''baseline #cccc00 center'''" width=80% border=1 rules=cols:) blah3 blah1 blah2 blah3 bob blah1 blah2 blah3|bing blah1 blah2 blahz blahx blahy blah3 blah1 blah2 blah1
ConfigurationThe following variables may be set in your config.php file to configure the way Tabulate works. Shown values are the defaults
NotesIt would appear that great minds think alike, and that Peter Bowers has implemented something rather similar to this in his Cookbook.Text2Tbl recipe. This is very much a work in progress, and some bits that mostly work aren't included here yet, such as support for CSV data. Release Notes
See AlsoContributorsComments |