diff --git a/core/modules/widgets/transclude.js b/core/modules/widgets/transclude.js index d30ab1fa7..47257cdae 100755 --- a/core/modules/widgets/transclude.js +++ b/core/modules/widgets/transclude.js @@ -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) { diff --git a/editions/test/tiddlers/tests/data/transclude/Parameterised-Nested-Parameters.tid b/editions/test/tiddlers/tests/data/transclude/Parameterised-Nested-Parameters.tid new file mode 100644 index 000000000..90d69aca1 --- /dev/null +++ b/editions/test/tiddlers/tests/data/transclude/Parameterised-Nested-Parameters.tid @@ -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=<>/>/<$text text=<>/>/<$text text=<>/>/<$text text=<>/> +\end elephant + +<> +- +<> + ++ +title: ExpectedResult + +

one/two/three/four

-a/b/c/d

\ No newline at end of file