2015-06-01 12:58:21 +00:00
|
|
|
created: 20150531155638729
|
2022-04-24 20:45:06 +00:00
|
|
|
modified: 20220417224935943
|
2015-06-01 12:58:21 +00:00
|
|
|
tags: $:/tags/Macro
|
|
|
|
title: $:/editions/tw5.com/wikitext-macros
|
|
|
|
type: text/vnd.tiddlywiki
|
|
|
|
|
|
|
|
\define wikitext-example(src)
|
|
|
|
<div class="doc-example">
|
|
|
|
|
2022-04-24 20:45:06 +00:00
|
|
|
<$macrocall $name="copy-to-clipboard-above-right" src=<<__src__>>/>
|
|
|
|
|
2015-06-01 12:58:21 +00:00
|
|
|
```
|
|
|
|
$src$
|
|
|
|
```
|
|
|
|
|
|
|
|
Affichera ceci :
|
|
|
|
|
2022-04-24 20:45:06 +00:00
|
|
|
$$$text/vnd.tiddlywiki
|
2015-06-01 12:58:21 +00:00
|
|
|
$src$
|
2022-04-24 20:45:06 +00:00
|
|
|
$$$
|
2015-06-01 12:58:21 +00:00
|
|
|
|
2022-03-05 09:19:22 +00:00
|
|
|
Code HTML correspondant :
|
2015-06-01 12:58:21 +00:00
|
|
|
|
|
|
|
$$$text/vnd.tiddlywiki>text/html
|
|
|
|
$src$
|
|
|
|
$$$
|
|
|
|
</div>
|
|
|
|
\end
|
|
|
|
|
|
|
|
\define wikitext-example-without-html(src)
|
|
|
|
<div class="doc-example">
|
|
|
|
|
2022-04-24 20:45:06 +00:00
|
|
|
<$macrocall $name="copy-to-clipboard-above-right" src=<<__src__>>/>
|
|
|
|
|
2015-06-01 12:58:21 +00:00
|
|
|
```
|
|
|
|
$src$
|
|
|
|
```
|
|
|
|
|
|
|
|
Affichera ceci :
|
|
|
|
|
2022-04-24 20:45:06 +00:00
|
|
|
$$$text/vnd.tiddlywiki
|
2015-06-01 12:58:21 +00:00
|
|
|
$src$
|
2022-04-24 20:45:06 +00:00
|
|
|
$$$
|
2015-06-01 12:58:21 +00:00
|
|
|
</div>
|
|
|
|
\end
|
|
|
|
|
2022-04-24 20:45:06 +00:00
|
|
|
\define wikitext-example-table-header() <thead><tr><th/><th>ce [[WikiTexte|WikiText]]</th><th>affichera ceci</th></tr></thead>
|
|
|
|
|
|
|
|
\define wikitext-example-table-row(id, code)
|
|
|
|
<tr>
|
|
|
|
<th><<__id__>></th><td><$codeblock code=<<__code__>>/></td><td>
|
|
|
|
|
|
|
|
<<__code__>>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
\end
|
|
|
|
|
2015-06-01 12:58:21 +00:00
|
|
|
\define tw-code(tiddler)
|
|
|
|
<$codeblock language={{$tiddler$!!type}} code={{$tiddler$}}/>
|
|
|
|
\end
|
|
|
|
|
|
|
|
\define tw-code-link(tiddler)
|
2022-04-24 20:45:06 +00:00
|
|
|
[[$tiddler$]] :
|
2015-06-01 12:58:21 +00:00
|
|
|
|
|
|
|
<<tw-code $tiddler$>>
|
2022-04-24 20:45:06 +00:00
|
|
|
\end
|
|
|
|
|
|
|
|
<pre><$view field="text"/></pre>
|