1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-09 13:59:41 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/widgets/MacroCallWidget.tid

33 lines
1.1 KiB
Plaintext
Raw Normal View History

2014-09-10 23:06:19 +00:00
caption: macrocall
created: 20131024141900000
2022-09-09 13:15:56 +00:00
modified: 20220909111836951
tags: Widgets
title: MacroCallWidget
type: text/vnd.tiddlywiki
2022-09-09 13:15:56 +00:00
<<.from-version "5.3.0">> The <<.wlink MacroCallWidget>> widget is now deprecated. While it will continue to work, users are 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 |