mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-08-03 01:18:55 +00:00
Test for attribute macros
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
title: Macros/Dynamic/Attribute
|
||||
description: Attribute macrocall with dynamic paramters
|
||||
type: text/vnd.tiddlywiki-multiple
|
||||
tags: [[$:/tags/wiki-test-spec]]
|
||||
|
||||
title: Output
|
||||
|
||||
\define mamacromamacro(param:"red")
|
||||
It is $param$
|
||||
\end
|
||||
|
||||
<$text text=<<mamacromamacro>>/>
|
||||
-
|
||||
<$text text=<<mamacromamacro param:{{{ [[a]addprefix[b]] }}}>>/>
|
||||
-
|
||||
<$text text=<<mamacromamacro param={{{ [[b]addprefix[a]] }}}>>/>
|
||||
-
|
||||
<$text text=<<mamacromamacro {{{ [[b]addprefix[a]] }}}>>/>
|
||||
-
|
||||
<$text text=<<mamacromamacro param>>/>
|
||||
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p>It is red
|
||||
-
|
||||
It is ba
|
||||
-
|
||||
It is ab
|
||||
-
|
||||
It is ab
|
||||
-
|
||||
It is param
|
||||
</p>
|
||||
Reference in New Issue
Block a user