Hello, is it possible to specify a weight for options when using the parser function?
Jump to navigation Jump to search
Reply to "Weight in the parser function"
Reply to "Parser function pipe syntax"
Reply to "Since MediaWiki 1.33 entries starting with whitespace are treated as "code blocks""
About this board
Weight in the parser function
It's literally right there on the extension page: Extension:RandomSelection#Parameters to <option>.
Parser function pipe syntax
According to the parser function section, there should be a pipe before every choice including the first. However, on my wiki that leads to an empty choice being selected as often as any other result. Compare:
several times to see for yourselves.
I also couldn't find a way to specify the uncached parameter with this syntax.
Since MediaWiki 1.33 entries starting with whitespace are treated as "code blocks"
For some reason after my wiki got updated to 1.33 all texts inside option tags starting with a whitespace are parsed as it happens when you start a new line beginning with a whitespace: a block in monospace font. Before, it just treated it as regular whitespace. I guess it's not intentional.Wedhro (talk) 17:46, 4 July 2019 (UTC)
This is indeed an intentional change, done to make the extension more cache-friendly. See the relevant commit.
Well the commit has been reverted now, but my intention was not to change how the tag worked at all, so any changes to whitespace handling is accidental. Could you post an example of the change?
There are no older topics