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:
@@ -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>
|
Reference in New Issue
Block a user