Feature summary (user story):
As a template creator, I want to make templates, that can cover similar articles with parameters that reflect the nuances of each topic. I also want editors to be able to discover these variations while they're editing an article (within the VE TemplateDialog).
Use cases:
Some templates have samples for different use cases in their documentation. Certain parameters might be only advised for use in specific articles, but not in others. Since the topics are similar and only a few parameters differ, it's more efficient not to create a new template.
Currently TemplateData and the VE TemplateDialog do not support any kind of filtering of parameters. Only the full list of parameters can be displayed, grouped by the 'status' value (required, suggested, etc.).
Examples:
- Infobox typeface (enwiki): Variations for full, normal, minimal, and optimal syntax.
- Uralkodó (monarch) infobox (huwiki): A standard variation and a variation for East Asian monarchs. The latter including parameters such as posthumous name and name of era.
- Album infobox (huwiki): Variations for albums, singles and songs. The type parameter is automatically filled indicating the variant. Parameters like next album, next song, and cover picture are omitted when irrelevant.
- Spanish settlement and Bulgarian settlement infobox (huwiki): Variations for settlements, counties, autonomous communities and provinces. Different parameters are county, sister towns, mayor, governor, districts, and more.
Benefits:
Variations can help reduce cognitive load for editors by showing only parameters relevant when filling out a template. They can promote best practices that are pre-defined by template creators.
Ideally, if the scope is broader, TemplateData could be extended to support tailored descriptions or examples, for each variation.