2022-09-10 10:03:40 +00:00
|
|
|
title: $:/core/ui/ViewTemplate/body/global
|
|
|
|
|
2022-09-13 15:29:09 +00:00
|
|
|
\whitespace trim
|
|
|
|
|
2022-09-10 10:03:40 +00:00
|
|
|
\procedure display-global()
|
|
|
|
<div class="tc-global-tiddler-body">
|
2022-09-13 15:29:09 +00:00
|
|
|
<div class="tc-global-tiddler-body-heading">
|
|
|
|
<h2 class="tc-global-tiddler-body-type">
|
|
|
|
<$let
|
|
|
|
name={{{ [<currentTiddler>removeprefix[$:/global/]] }}}
|
|
|
|
type={{{ [{!!_is_macro}match[yes]then[macro]] :else[{!!_is_function}match[yes]then[function]] :else[{!!_is_procedure}match[yes]then[procedure]] :else[{!!_is_widget}match[yes]then[widget]] :else[[variable]] }}}
|
|
|
|
>
|
|
|
|
{{$:/language/Globals/Caption}}
|
|
|
|
</$let>
|
|
|
|
</h2>
|
|
|
|
<$list filter="[<currentTiddler>has[_parameters]]" variable="ignore">
|
|
|
|
{{$:/language/Globals/Parameters/Caption}}
|
|
|
|
<pre class="tc-global-tiddler-body-details"><code><$text text={{!!_parameters}}/></code></pre>
|
|
|
|
</$list>
|
|
|
|
</div>
|
|
|
|
{{$:/language/Globals/Text/Caption}}
|
|
|
|
<$transclude tiddler="$:/core/ui/ViewTemplate/body/code"/>
|
2022-09-10 10:03:40 +00:00
|
|
|
</div>
|
|
|
|
\end
|
|
|
|
|
|
|
|
<$transclude $variable="display-global" $mode="inline"/>
|