mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-28 15:08:46 +00:00
Initial commit
This commit is contained in:
parent
575d80dfe9
commit
7b32f02cb3
@ -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) {
|
TranscludeWidget.prototype.getTransclusionParameter = function(name,index,defaultValue) {
|
||||||
if(name in this.stringParametersByName) {
|
if(name in this.stringParametersByName) {
|
||||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user