This is an archive of past discussions about Template:ANI-archive-talk. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current main page. |
This template goes at the top of talk pages for ANI archives. It uses {{Section sizes}} to automatically generate a table of section sizes for the attached Administrators' noticeboard/Incidents archive page. See it in action, for example, at Wikipedia talk:Administrators' noticeboard/IncidentArchive1000.
To specify the archive number, it uses the following code to strip it from {{PAGENAME}}:
{{#invoke:string|sub|{{#titleparts:{{PAGENAME}}}}|44}}
That is to say, it uses the string functions extension to take a string starting from the 44th position.
Wikipedia:Administrators' noticeboard/IncidentArchive1234 11111111112222222222333333333344444444 12345678901234567890123456789012345678901234567
If you are trying to adapt this template to work on something else, you'll need to change the string sub point as needed.