Steps to replicate the issue
- Set featured templates using Special:CommunityConfiguration/TemplateData-FeaturedTemplates
- Templates are listed in the desired order, both on this page and in MediaWiki:FeaturedTemplates.json
- Open the Template Wizard (either in VisualEditor or source editor), then go to the Featured tab
- Tab displays the templates in a random order and the order changes after each page refresh
What happens?:
Featured templates are displayed in a random order in the Template Wizard
What should have happened instead?:
Featured templates are displayed in the order as they were defined in the JSON
Software version: 1.45.0-wmf.19
Affected wikis:
- https://de.wikipedia.org/wiki/MediaWiki:FeaturedTemplates.json
- https://fr.wikipedia.org/wiki/MediaWiki:FeaturedTemplates.json
- https://nl.wikipedia.org/wiki/MediaWiki:FeaturedTemplates.json
- https://hu.wikipedia.org/wiki/MediaWiki:FeaturedTemplates.json
Derived Requirement
Ensure that featured templates displayed in the Template Wizard are shown in the exact order defined in MediaWiki:FeaturedTemplates.json.
The display order must be deterministic and consistent across page loads, editor modes (VisualEditor and source editor), and refreshes.
This requirement is derived from the expected behavior described in *“What should have happened instead?”*.
Test Result - Beta|Prod
Status: ✅ PASS / ❓Need More Info / ❌ FAIL
Environment: beta/enwiki
OS: macOS Tahoe 26.1
Browser: Chrome 142
Device: MBA
Emulated Device: NA
Test Artifact(s):
Test Steps
Test Case 1: Verify featured templates display in configured order in VisualEditor
Preconditions:
- Featured templates are configured via *Special:CommunityConfiguration/TemplateData-FeaturedTemplates*.
- MediaWiki:FeaturedTemplates.json contains templates in a known, explicit order.
- Navigate to *Special:CommunityConfiguration/TemplateData-FeaturedTemplates*.
- Confirm the order of templates as listed and as stored in MediaWiki:FeaturedTemplates.json.
- Open any article in VisualEditor.
- Open the Template Wizard.
- Select the Featured tab.
- ✅❓❌⬜ AC1: Confirm featured templates are displayed in the same order as defined in MediaWiki:FeaturedTemplates.json.
Test Case 2: Verify featured templates order remains consistent after page refresh
- With the Template Wizard still open on the Featured tab, refresh the page.
- Reopen the Template Wizard and navigate back to the Featured tab.
- ✅❓❌⬜ AC2: Confirm the order of featured templates remains unchanged after refresh.
Test Case 3: Verify featured templates display in configured order in source editor
- Open an article using the source editor.
- Launch the Template Wizard.
- Navigate to the Featured tab.
- ✅❓❌⬜ AC3: Confirm featured templates are displayed in the same configured order as defined in the JSON.
QA Results -PROD
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T405106#11474883 |
| 2 | ✅ | T405106#11474883 |
| 3 | ✅ | T405106#11474883 |


