If you trigger the warning dialog for removing a template (by clicking on the trashcan icon) and immediately afterward trigger the warning dialog for unexpected inputs (by clicking Insert when there are missing Required values), then the warning dialog for unexpected inputs displays the wrong title. (It displays the title of the template-removal warning dialog rather than its own.)
Steps to reproduce:
- From any wiki page, click Edit to open the wikitext editor.
- Make sure you are in Source Editing mode.
- Click the puzzle icon in the toolbar to open the TemplateWizard.
- Select a template that has 3 or more Required values.
- Fill in SOME -- but not all -- of the Required value fields.
- Click the trashcan icon, as if you were going to discard the template.
- When the warning message appears, click Cancel to return to the template wizard.
- Once you are back in the wizard, click the Insert button.
Expected result: You get the following warning/error dialog:
Actual result: The dialog displays the title of the LAST warning/error dialog ("Remove Template?") rather than its own.
This can be tricky to reproduce, because the TemplateWizard doesn't consistently flag missing Required values (see bug "Inconsistent handling of missing Required values in TemplateWizard"). To maximize your success in reproducing this, feel free to use the same template I used -- it's called Infobox-book-information and it's on test.wikipedia.org. In my tests, I left the first (top) Required value BLANK, and filled out the other two.