Create a getter function for a specific template variable.
Handles all variable variants: parameterized ({param}), parenthesized
((param)), formatted (|format), and simple. Unknown variable names return
a function that always returns an empty string, matching Wikidot's behavior.
Create a getter function for a specific template variable.
Handles all variable variants: parameterized (
{param}), parenthesized ((param)), formatted (|format), and simple. Unknown variable names return a function that always returns an empty string, matching Wikidot's behavior.