Template:SPIpriorcases/sandbox
This is the template sandbox page for Template:SPIpriorcases (diff). |
This template is used on approximately 70,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Usage
[edit]This template will be added to all new cases on first creation, and will link to the prior cases in RFCU and SSP
Once a case is archived, it remains in the archive ONLY, and isn't added to the top of new cases.
In the archive page, it generates the L4 header at the top of the case that is supplied by {{SPI archive notice}}
on live pages.
It will also detect archives created of SPI archive pages (that is, Wikipedia:Sockpuppet investigations/USERNAME/Archive/1
).
Explicit case name parameter
[edit]By default this template parses the case name from the page title using #titleparts
, however this can cause issues when the case name contains special characters. To work around this, the template accepts a parameter for the case name, in which you can use HTML entities.
For example: {{SPIpriorcases|1=*Foo}}
, with the entity standing in for an asterisk and preventing this issue.