Summary
The published wikitext for each file is currently generated from a single hard-coded template (likely {{Information}}). Let the user pick a different template — including a custom one — and have that choice flow through both the editing experience (so wikitext previews match the chosen template) and publishing.
Behavior
- Template picker: a setting that selects which wikitext template the published wikitext is built from (e.g. {{Information}} (default), {{Artwork}}, {{Photograph}}, {{Book}}, plus a "custom template" option).
- Editing-time consistency: the wikitext preview (T425879) reflects the currently selected template, not the default.
- Column suggestions on switch: switching to a template that requires fields the user hasn't added as columns triggers a hint:
- "Template X uses fields A, B, C — add them as columns?" with a one-click action to add the missing columns.
- Encourage but don't force; the user might intentionally leave a field blank.
- Custom template support: the user can paste their own template definition with named field placeholders, and pick which existing column maps to which field.
UI placement
Lives next to the existing Columns modal — these settings are siblings ("which fields do I want?" + "how is the wikitext built from those fields?"). Rename the existing Columns button to "Templates and columns" and have the modal expose both sections.
Relationship to other tasks
- T425879 (wikitext preview) — the preview output must reflect the selected template.
- T425864 (per-column dropdown) — already adds per-column settings; this is the global complement.
Out of scope
- Editing template definitions on Commons itself.
- Auto-detecting which template is "right" for a given file.
Acceptance
- User can pick from at least: {{Information}} (default), {{Artwork}}, {{Photograph}}, {{Book}}, custom.
- The wikitext preview and the published wikitext both reflect the selected template.
- Switching to a template with unmapped fields prompts the user to add the missing columns.
- The "Columns" button is renamed to "Templates and columns" and the modal shows both sections.
Source
User feedback session, 2026-05-10.