1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-05 01:26:18 +00:00
TiddlyWiki5/core/ui/PageMacros.tid

43 lines
1.0 KiB
Plaintext
Raw Normal View History

title: $:/core/ui/PageMacros
\define colour(name)
<$transclude tiddler={{$:/palette}} index="$name$"/>
\end
\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"><$transclude tiddler=<<currentTab>> field="caption"><$macrocall $name="currentTab" $type="text/plain" $output="text/plain"/></$transclude> </$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$
$$$
2014-02-09 20:34:58 +00:00
\end
\define lingo-base()
$:/lingo/
\end
\define lingo(title)
{{$(lingo-base)$$title$}}
\end
{{$:/core/ui/PageTemplate}}