Diff: Help/OldStyleTablePlugin

Differences between current version and predecessor to the previous major change of Help/OldStyleTablePlugin.

Other diffs: Previous Revision, Previous Author

Newer page: version 6 Last edited on 17 January 2022 3:00 by harold
Older page: version 5 Last edited on 9 September 2007 0:16 by harold Revert
@@ -1,64 +1,76 @@
-The OldStyleTablePlugin can be used to include tables within a wiki 
+The **~OldStyleTable** [[Help:WikiPlugin|plugin]] can be used to include tables within a wiki 
 page using the old-style markup syntax for tables. 
  
-!!Usage
+This plugin is included for legacy only. We recommend to  
+use [[Help :Wikicreole#Tables|Wikicreole tables]]  
+or [[Help:MediawikiTablePlugin|Mediawiki tables]] instead.  
  
-<verbatim>  
-<?plugin OldStyleTable caption="OldStyleTable" border||=2 
+== Usage ==  
+  
+{{{  
+< <OldStyleTable caption="OldStyleTable" border||=2 
 ||^ *Name* |v *Cost* |v *Notes* 
 | *First* | *Last* 
 |> Jeff |< Dairiki |^ Cheap |< Not worth it 
 |> Marco |< Polo | Cheaper |< Not available 
-? >  
-</verbatim
+>>  
+}}}  
  
 will get you 
  
-<?plugin OldStyleTable caption="OldStyleTable" border||=2 
+<< 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 
+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.) 
  
-!! Plugin Arguments 
+== Arguments ==  
  
-__ caption__:  
+{| class="bordered"  
+|-  
+! Argument  
+! Description  
+! Default value  
+|-  
+| ** caption**  
+| Any string  
+| Empty string  
+|-  
+| **border**  
+| Any number  
+| 1  
+|-  
+| **cellspacing**  
+| Any number  
+| 1  
+|-  
+| **cellpadding**  
+| Any number  
+| 1  
+|}  
  
- Any string. Default: ""  
+== Syntax ==  
  
-__border__:  
-  
- Any number. Default: 1  
-  
-__cellspacing__:  
-  
- Any number. Default: 1  
-  
-__cellpadding__:  
-  
- Any number. Default: 1  
-  
-__summary__:  
-  
- Any string. Default: ""  
-  
-----  
-  
- Note that within each table cell, _ new-style_ markup is used. You can 
+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]]  
  
---------- ----  
-  
-PhpWikiDocumentation Help:WikiPlugin  
+<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