mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-12 21:09:57 +00:00
ecd467496d
And also a custom view template title that greys out the $:/global/ part of the title
25 lines
908 B
Plaintext
25 lines
908 B
Plaintext
title: $:/core/ui/ViewTemplate/body/global
|
|
|
|
\procedure display-global()
|
|
<div class="tc-global-tiddler-body">
|
|
<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"/>
|
|
</div>
|
|
\end
|
|
|
|
<$transclude $variable="display-global" $mode="inline"/>
|