Initial commit

This commit is contained in:
Jeremy Ruston 2024-01-24 13:17:25 +00:00
parent 575d80dfe9
commit 7b32f02cb3
2 changed files with 23 additions and 1 deletions

View File

@ -358,7 +358,7 @@ TranscludeWidget.prototype.getOrderedTransclusionParameters = function() {
};
/*
Fetch the value of a parameter
Fetch the value of a parameter given either its name or index
*/
TranscludeWidget.prototype.getTransclusionParameter = function(name,index,defaultValue) {
if(name in this.stringParametersByName) {

View File

@ -0,0 +1,22 @@
title: Transclude/Parameterised/NestedParameters
description: Parameterised transclusion with nested parameter widgets
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Output
\whitespace trim
\procedure elephant(first:"one",second:"two")
\parameters (third:"three")
\parameters (fourth:"four")
<$text text=<<first>>/>/<$text text=<<second>>/>/<$text text=<<third>>/>/<$text text=<<fourth>>/>
\end elephant
<<elephant>>
-
<<elephant "a" "b" "c" "d">>
+
title: ExpectedResult
<p>one/two/three/four</p><p>-a/b/c/d</p>