1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-01 10:28:03 +00:00

Add test to show that global widgets need not use the _parameters field

This commit is contained in:
jeremy@jermolene.com
2022-09-03 12:57:45 +01:00
parent 36058cba89
commit f6ee0cdf4c

View File

@@ -0,0 +1,23 @@
title: Globals/CustomWidgetAlt
description: Global shadow variable defining a custom widget, without using a _parameters field
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-raw"/>
+
title: ExpectedResult
<p>Koala! Mahogany, Sycamore!</p>