]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FOldStyleTablePlugin
Update PHP Doc
[SourceForge/phpwiki.git] / pgsrc / Help%2FOldStyleTablePlugin
1 Date: Thu, 16 Dec 2010 12:53:03 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
3 Content-Type: application/x-phpwiki;
4   pagename=Help%2FOldStyleTablePlugin;
5   flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
6   charset=UTF-8
7 Content-Transfer-Encoding: binary
8
9 The **~OldStyleTable** [[Help:WikiPlugin|plugin]] can be used to include tables within a wiki
10 page using the old-style markup syntax for tables.
11
12 This plugin is included for legacy only. We recommand to
13 use [[Help:Wikicreole#Tables|Wikicreole tables]]
14 or [[Help:MediawikiTablePlugin|Mediawiki tables]] instead.
15
16 == Usage ==
17
18 {{{
19 <<OldStyleTable caption="OldStyleTable" border||=2
20 ||^  *Name*                |v *Cost*   |v *Notes*
21 | *First*     | *Last*
22 |> Jeff       |< Dairiki   |^  Cheap   |< Not worth it
23 |> Marco      |< Polo      | Cheaper   |< Not available
24 >>
25 }}}
26
27 will get you
28
29 <<OldStyleTable caption="OldStyleTable" border||=2
30 ||^  *Name*                |v *Cost*   |v *Notes*
31 | *First*     | *Last*
32 |> Jeff       |< Dairiki   |^  Cheap   |< Not worth it
33 |> Marco      |< Polo      | Cheaper   |< Not available
34 >>
35
36 Note that multiple **|**s lead to spanned columns, and **v**s can be
37 used to span rows.  A **>** generates a right justified column, **<**
38 a left justified column and **^** a centered column (which is the
39 default.)
40
41 == Arguments ==
42
43 {| class="bordered"
44 |-
45 ! Argument
46 ! Description
47 ! Default value
48 |-
49 | **caption**
50 | Any string
51 | Empty string
52 |-
53 | **border**
54 | Any number
55 | 1
56 |-
57 | **cellspacing**
58 | Any number
59 | 1
60 |-
61 | **cellpadding**
62 | Any number
63 | 1
64 |-
65 | **summary**
66 | Any string
67 | Empty string
68 |}
69
70 == Syntax ==
71
72 Note that within each table cell, //new-style// markup is used.  You can
73 only use inline markup --- no block level markup is allowed within
74 table cells.
75
76 (Using old-style markup wouldn't make much sense, since one can't
77 include multi-line plugin invocations using the old-style markup
78 rules.)
79
80 <noinclude>
81 ----
82 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
83 </noinclude>