Skip to content

Add Template::force_parameter_order()

Legoktm requested to merge param-order into main

Parsoid works hard to reduce dirty diffs, and one of those things is keeping parameters in the same order they originally were in.

But in some cases we do actually want to change/standardize the parameter order in wikitext, against Parsoid's wishes. We can do that by tricking Parsoid into thinking the parameter names are different by using wikitext that will subst into nothing.

This hack was figured out by 0xDeadbeef.

Merge request reports