Changes between Version 7 and Version 8 of FlatTableMacro
- Timestamp:
- Apr 16, 2015, 8:37:04 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FlatTableMacro
v7 v8 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 = Wiki Processor for displaying a table with the markup from data entered in a flat form =3 2 4 == Description == 3 = Display a table with the markup from data entered in a flat form 4 5 == Description 5 6 6 7 This [WikiProcessors Wiki processor] allows you to enter the data for a table in an alternative markup, which is very useful when there are a lot of columns and/or when some of the columns are optional. This markup also has the advantage of being much more readable and diff-friendly, at the expense of requiring more markup. 7 8 8 The column definition for the table has to be specified immediately after the macro directive , eg.9 The column definition for the table has to be specified immediately after the macro directive: 9 10 {{{ 10 11 {{{ … … 14 15 }}} 15 16 }}} 16 Alternatively, one can also create a macro alias via configuration in trac.ini17 17 18 Alternatively, one can also create a macro alias via configuration in your `trac.ini` file: 18 19 {{{ 19 20 [flat-table] … … 22 23 }}} 23 24 24 For the above example, one can then directly use 25 For the above example, one can then directly use the following: 25 26 {{{ 26 27 {{{ … … 32 33 See also: TablePlugin. 33 34 34 == Markup ==35 == Markup 35 36 36 37 The markup is loosely based on a very simplified YAML/JSON-like syntax. At least one column is always assumed to be mandatory per table, which is the '''key''' column. The order and name of the generated columns is controlled by the metadata line, as shown above. For each column, one can define one or more '''aliases''' which can be used in the markup to define the column data. … … 38 39 A line with no leading spaces and ending in a colon defines the start of a new row, with the line content representing the value of the '''key''' column. A line with some leading spaces followed by an '''@alias:''' defines the column within the row. Any other content on that line or any subsequent lines is assumed to be the content of that column (basic Wiki syntax can be used). 39 40 40 41 == Bugs/Feature Requests == 41 == Bugs/Feature Requests 42 42 43 43 Existing bugs and feature requests for FlatTableMacro are … … 47 47 [http://trac-hacks.org/newticket?component=FlatTableMacro&owner=ashkulz&release=0.11 new ticket]. 48 48 49 == Download == 49 [[TicketQuery(component=FlatTableMacro&group=type,format=progress)]] 50 51 == Download 50 52 51 53 Download the zipped source from [download:flattablemacro here]. 52 54 53 == Source ==55 == Source 54 56 55 57 You can check out FlatTableMacro from [http://trac-hacks.org/svn/flattablemacro here] using Subversion, or [source:flattablemacro browse the source] with Trac. 56 58 57 == Example ==59 == Example 58 60 59 61 {{{ … … 83 85 || other_table_id || FK to other table || This is a reference to another table with a [WikiPedia:Wiki wiki] link. [[BR]]More than one line can be entered for a column.|| 84 86 85 86 == Recent Changes == 87 == Recent Changes 87 88 88 89 [[ChangeLog(flattablemacro, 3)]] 89 90 90 == Author/Contributors ==91 == Author/Contributors 91 92 92 93 '''Author:''' [wiki:ashkulz] [[BR]] 93 '''Maintainer:''' [ wiki:ashkulz] [[BR]]94 '''Maintainer:''' [[Maintainer]] [[BR]] 94 95 '''Contributors:'''