Using a template engine which can then be used in PHP as well as in JavaScript, allowing us to define snippets of HTML with basic logic/placeholders.
A engine suited for our needs had to be chosen, it had to be investigated whether any options are already used by other MediaWiki extensions so we could re-use or integrate into core or a separate extension (The actual implementation should probably be done with a resource loader module).
This would move a lot of code out of the EntityView classes, the HTML wouldn't have to be generated with the static Html class, which would look a lot prettier and less confusing since the whole markup could just be written as such.
Version: unspecified
Severity: normal