What is the problem?
If you create an autoblock with the reason as a template, for the IP blocks that get created as a result, the reason gets expanded when it is stored in the database.
For example, you see the expanded wikitext, not the {{template}} in the block reason:
https://test.wikipedia.org/wiki/Special:BlockList?wpTarget=%2318166
https://en.wikipedia.beta.wmflabs.org/wiki/Special:BlockList?wpTarget=%238096
Steps to reproduce problem
- Special:Block
- Create a user block:
- set the block reason to be a template
- at the bottom check Automatically block the last IP address used by this user, and any subsequent IP addresses they try to edit from
- Look at the Autoblock that gets created in Special:BlockList
Expected behavior: Reason for block something like Autoblocked because your IP address has been recently used by "$user". The reason given for $user's block is "{{template}}"
Observed behavior: Reason is expanded into the template's wikitext