1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-05 10:20:45 +00:00

Docs update

This commit is contained in:
jeremy@jermolene.com 2022-09-24 15:09:12 +01:00
parent d950835e2f
commit 109edd1b76

View File

@ -1,6 +1,6 @@
caption: Macro Definitions caption: Macro Definitions
created: 20220917154902906 created: 20220917154902906
modified: 20220921093842230 modified: 20220922073434674
tags: WikiText Macros tags: WikiText Macros
title: Macro Parameter Handling title: Macro Parameter Handling
type: text/vnd.tiddlywiki type: text/vnd.tiddlywiki
@ -43,6 +43,8 @@ Hi, I'm $(name)$ and I live in $(address)$.
</$let> </$let>
"""/> """/>
<<.warning """It is important to note that if the text being inserted contains any substitution tokens then they will in turn be processed. This can lead to unexpected results.""">>
!! Accessing Parameters as Variables !! Accessing Parameters as Variables
When macros are wikified, the parameters can be accessed as variables with the name of the parameter wrapped with double underscores. For example, the parameter `address` would be accessed as the variable `__address__`. When macros are wikified, the parameters can be accessed as variables with the name of the parameter wrapped with double underscores. For example, the parameter `address` would be accessed as the variable `__address__`.