• Differences between current version and previous revision of Help/OldStyleTablePlugin.

    Other diffs: Previous Major Revision, Previous Author

    Newer page: version 2 Last edited on December 16, 2018 by hege
    Older page: version 1 Last edited on March 9, 2017 by hege Revert
    @@ -1 +1,76 @@
    -<? plugin RedirectTo page="Help/WikiForumPlugin" ?
    +The **~OldStyleTable** [[Help:WikiPlugin| plugin]] can be used to include tables within a wiki  
    + page using the old-style markup syntax for tables.  
    +  
    +This plugin is included for legacy only. We recommend to  
    +use [[Help:Wikicreole#Tables|Wikicreole tables]]  
    +or [[Help:MediawikiTablePlugin|Mediawiki tables]] instead.  
    +  
    +== Usage ==  
    +  
    +{{{  
    +<<OldStyleTable caption ="OldStyleTable" border||=2  
    +||^ *Name* |v *Cost* |v *Notes*  
    +| *First* | *Last*  
    +|> Jeff |< Dairiki |^ Cheap |< Not worth it  
    +|> Marco |< Polo | Cheaper |< Not available  
    +>>  
    +}}}  
    +  
    +will get you  
    +  
    +<<OldStyleTable caption="OldStyleTable" border||=2  
    +||^ *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.)  
    +  
    +== Arguments ==  
    +  
    +{| class="bordered"  
    +|-  
    +! Argument  
    +! Description  
    +! Default value  
    +|-  
    +| **caption**  
    +| Any string  
    +| Empty string  
    +|-  
    +| **border**  
    +| Any number  
    +| 1  
    +|-  
    +| **cellspacing**  
    +| Any number  
    +| 1  
    +|-  
    +| **cellpadding**  
    +| Any number  
    +| 1  
    +|}  
    +  
    +== Syntax ==  
    +  
    +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.)  
    +  
    +== See Also ==  
    +* [[ Help:MediawikiTablePlugin]]  
    +* [[Help:RichTablePlugin]]  
    +* [[Help:WikicreoleTablePlugin]]  
    +  
    +<noinclude>  
    +----  
    +[[PhpWikiDocumentation]] [[CategoryWikiPlugin]]  
    +< /noinclude

    current version

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

    This plugin is included for legacy only. We recommend to use Wikicreole tables or Mediawiki tables instead.

    Usage

    <<OldStyleTable caption="OldStyleTable" border||=2
    ||^  *Name*                |v *Cost*   |v *Notes*
    | *First*     | *Last*
    |> Jeff       |< Dairiki   |^  Cheap   |< Not worth it
    |> Marco      |< Polo      | Cheaper   |< Not available
    >>

    will get you

    OldStyleTable
     Name   Cost   Notes 
     First   Last 
     Jeff   Dairiki   Cheap   Not worth it 
     Marco   Polo   Cheaper   Not available 

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

    Arguments

    Argument

    Description

    Default value

    caption

    Any string

    Empty string

    border

    Any number

    1

    cellspacing

    Any number

    1

    cellpadding

    Any number

    1

    Syntax

    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.)

    See Also

Warning: "Declaration of HtmlUnifiedDiffFormatter::lines($lines, $class, $prefix = false, $elem = false) should be compatible with DiffFormatter::lines($lines, $prefix = ' ')"