이 문서는 https://tiddlywiki.com/languages/ko-KR/에서 티들리위키의 정적 HTML 표현의 일부입니다

Procedure Parameter Handling

2023년 4월 19일 오전 10:31

Introduction

Procedure parameters are made available as variables when the procedure contents are wikified.

Accessing Parameters as Variables

When procedures are wikified, the parameters can be accessed as variables.

For example:

\procedure say-hi(name,address)
Hi, I'm <<name>> and I live in <<address>>.
\end

<<say-hi name:"Bugs" address:"Rabbit Hole Hill">>

That renders as:

Hi, I'm Bugs and I live in Rabbit Hole Hill.

Accessing parameters as variables only works in procedures that are wikified and not, for example, when a procedure is used as an attribute value.