From T160524#3140490:
- [Task] Introduce HTML templates infrastructure
- Key element is a new templates.php file, and a RessourceLoader module. Copy-paste from Wikibase.git.
- Try to reuse code from Wikibase.git if it makes sense.
- The templates list is (almost) empty, and the templating is unused at this point. Do not touch existing view code in this patch.
- Add a comment that suggests a clean naming scheme, e.g. each template name starts with "wikibase-lexeme-…".