What is the problem?
When deleting or restoring a page with its associated talk page, if the reason includes a template it will be transcluded in the associated talk page reason.
For example, deleting a page with reason {{age|1989|7|23}} will lead to two entries in Special:Log and Recent Changes (also see screenshot):
- <timestamp> <user> deleted page <page> (<num revisions deleted>) ({{age|1989|7|23}})
- <timestamp> <user> deleted page <talk page> (<num revisions deleted>) (Deleted together with the associated page with reason: 32)
In the database, the first is stored as:
+-------------------+ | comment_text | +-------------------+ | {{age|1989|7|23}} | +-------------------+
The second as:
+------------------------------------------------------------+ | comment_text | +------------------------------------------------------------+ | Restored together with the associated page with reason: 32 | +------------------------------------------------------------+
Steps to reproduce problem
- Login as an admin to beta
- Go to any page with a talk page (or create one for an existing page)
- More > Delete
- In "Other/additional reason:" enter {{age|1989|7|23}}
- Check "Delete all revisions of the associated talk page"
- Submit
- Go to Special:Log
Expected behavior: The two log entries for the page you just deleted is something like:
- <timestamp> <user> deleted page <page> (<num revisions deleted>) ({{age|1989|7|23}})
- <timestamp> <user> deleted page <talk page> (<num revisions deleted>) (Deleted together with the associated page with reason: {{age|1989|7|23}})
Observed behavior: The two entries like:
- <timestamp> <user> deleted page <page> (<num revisions deleted>) ({{age|1989|7|23}})
- <timestamp> <user> deleted page <talk page> (<num revisions deleted>) (Deleted together with the associated page with reason: 32)
Environment
Wiki(s): https://en.wikipedia.beta.wmflabs.org MediaWiki 1.39.0-alpha (b6d486b) 08:01, 19 April 2022.