1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-08-06 03:00:36 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/widgets/MacroCallWidget.tid

35 lines
1.1 KiB
Plaintext
Raw Normal View History

2014-09-10 23:06:19 +00:00
caption: macrocall
created: 20131024141900000
modified: 20230419103154328
2022-10-07 15:56:21 +00:00
tags: Widgets $:/deprecated
title: MacroCallWidget
type: text/vnd.tiddlywiki
2022-10-07 15:56:21 +00:00
<<.deprecated-since "5.3.0" "TranscludeWidget">>
The <<.wlink MacroCallWidget>> widget is deprecated. While it will continue to work, users are now advised to use the <<.wlink TranscludeWidget>> widget, converting the `$name` attribute to `$variable`.
2022-09-09 13:15:56 +00:00
For example,
```
2022-09-09 13:15:56 +00:00
<$macrocall $name="my-macro" my-parameter="Elephant"/>
```
2022-09-09 13:15:56 +00:00
should be changed to:
```
2022-09-09 13:15:56 +00:00
<$transclude $variable="my-macro" my-parameter="Elephant"/>
```
2022-09-09 13:15:56 +00:00
Internally, the <<.wlink MacroCallWidget>> widget is implemented via the <<.wlink TranscludeWidget>> widget.
! Content and Attributes
2022-09-09 13:15:56 +00:00
The content of the <<.wlink MacroCallWidget>> widget is ignored.
|!Attribute |!Description |
|$name |Name of the macro to invoke |
|$type |ContentType with which the macro text should be parsed (defaults to `text/vnd.tiddlywiki`) |
|$output |ContentType for the output rendering (defaults to `text/html`, can also be `text/plain` or `text/raw`) |
|//parameters// |Macro parameters specified as attributes |