Changes between Version 7 and Version 8 of FlatTableMacro


Ignore:
Timestamp:
Apr 16, 2015, 8:37:04 AM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes, tagged with license

Legend:

Unmodified
Added
Removed
Modified
  • FlatTableMacro

    v7 v8  
    11[[PageOutline(2-5,Contents,pullout)]]
    2 = Wiki Processor for displaying a table with the markup from data entered in a flat form =
    32
    4 == Description ==
     3= Display a table with the markup from data entered in a flat form
     4
     5== Description
    56
    67This [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.
    78
    8 The column definition for the table has to be specified immediately after the macro directive, eg.
     9The column definition for the table has to be specified immediately after the macro directive:
    910{{{
    1011{{{
     
    1415}}}
    1516}}}
    16 Alternatively, one can also create a macro alias via configuration in trac.ini
    1717
     18Alternatively, one can also create a macro alias via configuration in your `trac.ini` file:
    1819{{{
    1920[flat-table]
     
    2223}}}
    2324
    24 For the above example, one can then directly use
     25For the above example, one can then directly use the following:
    2526{{{
    2627{{{
     
    3233See also: TablePlugin.
    3334
    34 == Markup ==
     35== Markup
    3536
    3637The 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.
     
    3839A 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).
    3940
    40 
    41 == Bugs/Feature Requests ==
     41== Bugs/Feature Requests
    4242
    4343Existing bugs and feature requests for FlatTableMacro are
     
    4747[http://trac-hacks.org/newticket?component=FlatTableMacro&owner=ashkulz&release=0.11  new ticket].
    4848
    49 == Download ==
     49[[TicketQuery(component=FlatTableMacro&group=type,format=progress)]]
     50
     51== Download
    5052
    5153Download the zipped source from [download:flattablemacro here].
    5254
    53 == Source ==
     55== Source
    5456
    5557You can check out FlatTableMacro from [http://trac-hacks.org/svn/flattablemacro here] using Subversion, or [source:flattablemacro browse the source] with Trac.
    5658
    57 == Example ==
     59== Example
    5860
    5961{{{
     
    8385|| 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.||
    8486
    85 
    86 == Recent Changes ==
     87== Recent Changes
    8788
    8889[[ChangeLog(flattablemacro, 3)]]
    8990
    90 == Author/Contributors ==
     91== Author/Contributors
    9192
    9293'''Author:''' [wiki:ashkulz] [[BR]]
    93 '''Maintainer:''' [wiki:ashkulz] [[BR]]
     94'''Maintainer:''' [[Maintainer]] [[BR]]
    9495'''Contributors:'''