blob: bff0302e573b013f8e86b9bdcae22cd878270996 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
{strip}
{foreach from=$examples.tikiwiki key=title item=tikiwiki name=tw}
<h2>{tr}{$title}{/tr}</h2>
<table class="bittable">
<tr>
<th style="width:50%">Example</th>
<th style="width:50%">Result</th>
</tr>
{foreach from=$tikiwiki key=desc item=example}
<tr>
<th colspan="2" style="text-align:left;">
{tr}{$desc}{/tr}
<br /><small>{tr}{$example.note}{/tr}</small>
</th>
</tr>
<tr>
<td><pre><code>{$example.data|escape}</code></pre></td>
<td>{$example.result}</td>
</tr>
{/foreach}
</table>
{/foreach}
<h2>{tr}Mediawiki tables{/tr}</h2>
<table class="bittable">
<tr>
<th style="width:60%">Code</th>
<th style="width:40%">Function</th>
</tr>
<tr>
<td><pre><code>{ldelim}|</code></pre></td>
<td>Start Table</td>
</tr>
<tr>
<td><pre><code>|+ caption</code></pre></td>
<td>Optional Table caption</td>
</tr>
<tr>
<td><pre><code>
|-<br />
! Col 1 Heading !! Col 2 Heading !! Col 3 Heading etc.
</code></pre></td>
<td>Optional Table Header Row</td>
</tr>
<tr>
<td><pre><code>|- optional table parameters</code></pre></td>
<td>Table Row</td>
</tr>
<tr>
<td><pre><code>
| Value<br />
| optional parameters | value
</code></pre></td>
<td>Table Cell</td>
</tr>
<tr>
<td><pre><code>
| Value or Value or Value ...<br />
| optional parameters | value | optional parameters | value |
</code></pre></td>
<td>Multiple Cells on one line</td>
</tr>
<tr>
<td><pre><code>|{rdelim}</code></pre></td>
<td>End Table</td>
</tr>
</table>
<table class="bittable">
<caption>{tr}Applied Examples{/tr}</caption>
{foreach from=$examples.mediawiki key=title item=example}
<tr>
<th style="width:60%">{$title}</th>
<th style="width:40%">Result</th>
</tr>
<tr>
<td><pre><code>{$example.data}</code></pre></td>
<td>{$example.result}</td>
</tr>
{/foreach}
</table>
{/strip}
|