blob: b3d191efc3b7f0f731350a30745e43b9f08e866a (
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
83
84
85
86
|
{strip}
<h1>Tikiwiki Markup Syntax</h1>
{foreach from=$examples.tikiwiki key=title item=tikiwiki name=tw}
{if !$smarty.foreach.tw.first}<br /><hr /><br />{/if}
<h2>{tr}{$title}{/tr}</h2>
<table class="bittable">
<tr>
<th style="width:25%">Description</th>
<th style="width:40%">Example</th>
<th style="width:35%">Result</th>
</tr>
{foreach from=$tikiwiki key=desc item=example}
<tr>
<td>
{tr}{$desc}{/tr}
<br /><small>{tr}{$example.note}{/tr}</small>
</td>
<td><pre><code>{$example.data|escape}</code></pre></td>
<td>{$example.result}</td>
</tr>
{/foreach}
</table>
{/foreach}
<br /><hr /><br />
<h2>Mediawiki type tables</h2>
<table class="bittable">
<tr>
<th style="width:70%">Code</th>
<th style="width:30%">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 || Value || 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>
<br /> <br />
<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}
|