These patches prepare the codebase for what we actually want to do.
[] Improve source code documentation for the core classes that we will be touching. For example, the division of responsibility between MWTransclusionDialog and MWTemplateDialog.
[] Rename variables, methods, and parameters to make their purpose more obvious.
[] Consolidate like functionality when possible.
[] Clean up upper-/lower-case handing.
[] Style issues.
#patch-for-review:
[x] https://gerrit.wikimedia.org/r/693372
[x] https://gerrit.wikimedia.org/r/697973
[x] https://gerrit.wikimedia.org/r/698004
[x] https://gerrit.wikimedia.org/r/698167
[x] https://gerrit.wikimedia.org/r/698170
[x] https://gerrit.wikimedia.org/r/698171
[x] https://gerrit.wikimedia.org/r/698175
[x] https://gerrit.wikimedia.org/r/698182
[x] https://gerrit.wikimedia.org/r/698187
[x] https://gerrit.wikimedia.org/r/698223
[x] https://gerrit.wikimedia.org/r/698724
[x] https://gerrit.wikimedia.org/r/698727
[x] https://gerrit.wikimedia.org/r/698785
[x] https://gerrit.wikimedia.org/r/699232
[x] https://gerrit.wikimedia.org/r/699315
[x] https://gerrit.wikimedia.org/r/699401
[x] https://gerrit.wikimedia.org/r/700220
[x] https://gerrit.wikimedia.org/r/700224
[x] https://gerrit.wikimedia.org/r/700225
[x] https://gerrit.wikimedia.org/r/700226
[x] https://gerrit.wikimedia.org/r/700227
[x] https://gerrit.wikimedia.org/r/700363
[x] https://gerrit.wikimedia.org/r/700369
[] https://gerrit.wikimedia.org/r/700382
[x] https://gerrit.wikimedia.org/r/700388
[x] https://gerrit.wikimedia.org/r/700476
I'm not sure if we should block this task on this patch, but it would be really helpful to have it merged:
[] https://gerrit.wikimedia.org/r/700223