NOTE
This feature is available since:
WikkaWiki 1.3.7


All page variables are reset at the beginning of the page; therefore have scope until the end of the page.

{{pagevar key="[key_string]" value="[value_string]"}} // Add a variable
{{pagevar key="[key_string]" }} // Get a variable
{{pagevar key="[key_string]" default="[default_string]"}} // Get a variable, if it doesn't exist, return default
{{pagevar delete="[key_string]" }} // Delete a variable

Example:
{{pagevar key="year" value="2020"}}
== March {{pagevar key="year"}} ==
== April {{pagevar key="year"}} ==
== May {{pagevar key="year"}} ==

outputs:
March 2020
April 2020
May 2020

There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki