Closed yheuhtozr closed 1 year ago
Hi, I find parser-default quite useful for most situations, but I cannot think of a way to handle trailing (and preceding) spaces. For example,
parser-default
"message": "Usual message. {{category; special:Special message. ;}}({{date:date}})"
What I want is when category is not special:
category
special
Usual message. ([actual date])
and when it is:
Usual message. Special message. ([actual date])
But the actual output is:
Usual message. Special message.([actual date])
Of course, if you put the space outside the modifier command, you'll see double spaces when the output is empty.
It'd be very helpful if there is a way to describe trailing spaces.
Hi, I find
parser-default
quite useful for most situations, but I cannot think of a way to handle trailing (and preceding) spaces. For example,What I want is when
category
is notspecial
:and when it is:
But the actual output is:
Of course, if you put the space outside the modifier command, you'll see double spaces when the output is empty.
It'd be very helpful if there is a way to describe trailing spaces.