mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-08 10:59:57 +00:00
1fddcf075f
Finally sorting out the wikitext documentation
34 lines
849 B
Plaintext
34 lines
849 B
Plaintext
title: $:/core/ui/PageMacros
|
|
|
|
\define tabs(tabsList,default,state:"$:/state/tab")
|
|
<div class="tw-tab-buttons"><$list filter="$tabsList$" variable="currentTab"><$button set=<<qualify "$state$">> setTo=<<currentTab>> default="$default$" selectedClass="tw-tab-selected"><$view tiddler=<<currentTab>> field="caption"><$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/></$view> </$button>
|
|
</$list>
|
|
</div>
|
|
<div class="tw-tab-divider">
|
|
</div>
|
|
<div class="tw-tab-content">
|
|
<$list filter="$tabsList$" variable="currentTab">
|
|
<$reveal type="match" state=<<qualify "$state$">> text=<<currentTab>> default="$default$">
|
|
<$transclude tiddler=<<currentTab>>/>
|
|
</$reveal>
|
|
</$list>
|
|
</div>
|
|
\end
|
|
\define wikitext-example(src)
|
|
```
|
|
$src$
|
|
```
|
|
|
|
Renders as:
|
|
|
|
$src$
|
|
|
|
In HTML:
|
|
|
|
$$$text/vnd.tiddlywiki>text/html
|
|
$src$
|
|
$$$
|
|
|
|
\end
|
|
{{$:/core/ui/PageTemplate}}
|