mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-07 10:34:53 +00:00
150266c731
For consistency with `_canonical_uri`; unlike many system fields, the behaviour of these fields is baked into the core JS code.
22 lines
428 B
Plaintext
22 lines
428 B
Plaintext
title: Globals/CustomWidget
|
|
description: Global shadow variable defining a custom widget
|
|
type: text/vnd.tiddlywiki-multiple
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
title: Output
|
|
|
|
\whitespace trim
|
|
|
|
<$$mywidget foo="Mahogany">
|
|
Sycamore!
|
|
</$$mywidget>
|
|
+
|
|
title: $:/global/$$mywidget
|
|
_is_widget: yes
|
|
_parameters: (foo:"bar")
|
|
|
|
Koala! <$text text=<<foo>>/>, <$slot $name="ts-body"/>
|
|
+
|
|
title: ExpectedResult
|
|
|
|
<p>Koala! Mahogany, Sycamore!</p> |