]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FMediawikiTablePlugin
Activated Id substitution for Subversion
[SourceForge/phpwiki.git] / pgsrc / Help%2FMediawikiTablePlugin
1 Date: Mon, 19 Jun 2008 14:15:24 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
3 X-Rcs-Id: $Id$
4 Content-Type: application/x-phpwiki;
5   pagename=Help%2FMediawikiTablePlugin;
6   flags=PAGE_LOCKED;
7   markup=2;
8   charset=iso-8859-1
9 Content-Transfer-Encoding: binary
10
11 The *~MediawikiTable* plugin is a plugin that takes off from the [RichTablePlugin|Help:RichTablePlugin]. It allows a user to specify a <tt><table></tt> with (a subset of) the syntax used by Mediawiki.
12
13 * The table starts with a line <b>{~|</b> and ends with a line <b>|~}</b>.
14 * An optional table caption is made with a line starting with a pipe and a plus sign <b>|+</b> followed by the caption.
15 * A table row starts with a pipe and a hyphen: <b>|-</b>.
16 * A table cell starts with a pipe on a new line, or a double bar <b>||</b> on the same line.
17 * A header table cell starts with an exclamation mark, or a double exclamation mark <b>!!</b> on the same line (works only with an explicit plugin call).
18
19 !!! HTML attributes
20
21 <?plugin RichTable
22 * border="1", cellpadding="5"
23 -
24 |
25 For the table
26 |
27 {| border="1"
28 -
29 |
30 For the caption
31 |
32 ~|+ style="font-weight: bold;"
33 -
34 |
35 For a row
36 |
37 ~|- style="height:100px"
38 -
39 |
40 For a cell
41 |
42 ~| align="right" | Cell 2 (right aligned)
43 ?>
44
45 The attributes might be put with or without double quotes.
46
47 !!! Example
48
49 {| border="1", style="width: 100%"
50 |+ style="font-weight: bold; font-size: 150%;" | This is the table caption
51 |- style="white-space: nowrap"
52 | <b>Header 1</b>
53 | <b>Header 2</b>
54 | <b>Header 3</b>
55 |- style=height:100px
56 | Cell I
57 | <b>Cell II</b>,  in bold
58 |align=right, width="100%" |Cell III
59 |- bgcolor=#f0f0ff, align=center
60 |Cell 1||Cell 2||Cell 3
61 |}
62
63 The above table is rendered from:
64
65 <verbatim>
66 {| border="1", style="width: 100%"
67 |+ style="font-weight: bold; font-size: 150%;" | This is the table caption
68 |- style="white-space: nowrap"
69 | <b>Header 1</b>
70 | <b>Header 2</b>
71 | <b>Header 3</b>
72 |- style=height:100px
73 | Cell I
74 | <b>Cell II</b>,  in bold
75 |align=right, width="100%" |Cell III
76 |- bgcolor=#f0f0ff, align=center
77 |Cell 1||Cell 2||Cell 3
78 |}
79 </verbatim>
80
81 In this example, there is no explicit call to the plugin. You have the same syntax as in Mediawiki.
82
83 You can also explictly call the plugin. This will allow you:
84 * to use the Mediawiki header syntax (!),
85 * to use multiple paragraphs in a cell,
86 * to use lists in a cell.
87
88 <?plugin MediawikiTable
89 {|
90 |- style="white-space: nowrap"
91 ! Header 1
92 ! Header 2
93 |- bgcolor=yellow
94 | First paragraph.
95
96 Second paragraph.
97 |
98 * One
99 * Two
100 * Three
101 |- bgcolor=#f0f0ff, align=center
102 |Cell 1||Cell 2
103 |}
104 ?>
105
106 The above table is rendered from:
107
108 <verbatim>
109 <?plugin MediawikiTable
110 {|
111 |- style="white-space: nowrap"
112 ! Header 1
113 ! Header 2
114 |- bgcolor=yellow
115 | First paragraph.
116
117 Second paragraph.
118 |
119 * One
120 * Two
121 * Three
122 |- bgcolor=#f0f0ff, align=center
123 |Cell 1||Cell 2
124 |}
125 ?>
126 </verbatim>
127
128 !!! Author
129
130 Marc-Etienne Vargenau, Alcatel-Lucent
131
132 ----
133 [PhpWikiDocumentation] [CategoryWikiPlugin]