2013-11-04 18:21:20 +00:00
|
|
|
title: $:/core/ui/PageMacros
|
|
|
|
|
2014-02-18 13:59:11 +00:00
|
|
|
\define colour(name)
|
|
|
|
<$transclude tiddler={{$:/palette}} index="$name$"/>
|
|
|
|
\end
|
2014-02-20 17:14:27 +00:00
|
|
|
\define color(name)
|
2014-02-20 19:12:05 +00:00
|
|
|
<<colour $name$>>
|
2014-02-20 17:14:27 +00:00
|
|
|
\end
|
2013-11-11 15:27:12 +00:00
|
|
|
\define tabs(tabsList,default,state:"$:/state/tab")
|
2014-03-13 17:42:29 +00:00
|
|
|
<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>
|
2013-11-04 18:21:20 +00:00
|
|
|
</$list>
|
|
|
|
</div>
|
2014-02-20 21:42:31 +00:00
|
|
|
<div class="tw-tab-divider"/>
|
2013-11-04 18:21:20 +00:00
|
|
|
<div class="tw-tab-content">
|
2014-02-20 21:42:31 +00:00
|
|
|
|
2013-11-04 18:21:20 +00:00
|
|
|
<$list filter="$tabsList$" variable="currentTab">
|
|
|
|
<$reveal type="match" state=<<qualify "$state$">> text=<<currentTab>> default="$default$">
|
2014-02-20 21:42:31 +00:00
|
|
|
|
2013-11-04 18:21:20 +00:00
|
|
|
<$transclude tiddler=<<currentTab>>/>
|
2014-02-20 22:43:04 +00:00
|
|
|
|
2013-11-04 18:21:20 +00:00
|
|
|
</$reveal>
|
|
|
|
</$list>
|
|
|
|
</div>
|
2013-12-05 16:21:10 +00:00
|
|
|
\end
|
|
|
|
\define wikitext-example(src)
|
|
|
|
```
|
|
|
|
$src$
|
|
|
|
```
|
|
|
|
|
|
|
|
Renders as:
|
|
|
|
|
|
|
|
$src$
|
|
|
|
|
|
|
|
In HTML:
|
|
|
|
|
|
|
|
$$$text/vnd.tiddlywiki>text/html
|
|
|
|
$src$
|
|
|
|
$$$
|
|
|
|
|
2014-03-25 14:26:54 +00:00
|
|
|
\end
|
|
|
|
\define wikitext-example-without-html(src)
|
|
|
|
```
|
|
|
|
$src$
|
|
|
|
```
|
|
|
|
|
|
|
|
Renders as:
|
|
|
|
|
|
|
|
$src$
|
|
|
|
|
2014-02-09 20:34:58 +00:00
|
|
|
\end
|
|
|
|
\define lingo-base()
|
|
|
|
$:/lingo/
|
|
|
|
\end
|
|
|
|
\define lingo(title)
|
|
|
|
{{$(lingo-base)$$title$}}
|
2013-11-04 18:21:20 +00:00
|
|
|
\end
|
|
|
|
{{$:/core/ui/PageTemplate}}
|