1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-14 13:54:50 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/system/variable-macros.tid

27 lines
1.5 KiB
Plaintext
Raw Normal View History

2015-02-28 14:38:00 +00:00
created: 20150228114241000
modified: 20220227210136243
2015-02-28 14:38:00 +00:00
tags: $:/tags/Macro
code-body: yes
title: $:/editions/tw5.com/variable-macros
2015-02-28 14:38:00 +00:00
\procedure .variable-examples(v,text:"Examples") <$link to=`$(v)$ Variable (Examples)`><<text>></$link>
\procedure .macro-examples(m,text:"Examples") <$link to=`$(m)$ Macro (Examples)`><<text>></$link>
\procedure .widget-examples(w,text:"Examples") <$link to=`$(w)$ Widget (Examples)`><<text>></$link>
2015-02-28 14:38:00 +00:00
\procedure .js-macro-link(_)
<a href="https://tiddlywiki.com/dev/index.html#JavaScript%20Macros"
class="tc-tiddlylink-external"
target="_blank"
rel="noopener noreferrer"
><$text text=<<_>>/></a>
\end
2015-02-28 14:38:00 +00:00
\procedure .this-is-static-link-variable() <<.note "This variable has no useful effect when ~TiddlyWiki is running in a browser, as the `href` attribute is ignored there -- links between tiddlers are performed by JavaScript instead. The variable comes into play when one is using the [[Node.js configuration|TiddlyWiki on Node.js]] to [[generate a static version|RenderTiddlersCommand]] of a wiki.">>
2015-02-28 14:38:00 +00:00
\procedure .this-is-toolbar-config-variable(configTiddler)
\whitespace notrim
2015-02-28 14:38:00 +00:00
It can be set to <<.value yes>> or <<.value no>> prior to transcluding such a button.
The standard page template sets it to the value found in <$link to=<<configTiddler>>><<configTiddler>></$link>, with the result that this becomes the default for the whole page. The user can adjust this default by using a tickbox on the <<.controlpanel-tab Settings>> tab of the [[Control Panel|$:/ControlPanel]].
2015-02-28 14:38:00 +00:00
\end