Wikipedia:Wikipedia Signpost/Templates/Signpost-header/Normal: Difference between revisions
Content deleted Content added
Only categorise when in Wikipedia namespace. |
the August 29 enhancement caused newly created Signpost draft articles to populate Category:Pages with parser function time errors. I'll explain at Wikipedia talk:Wikipedia Signpost#Recent issues missing from archives. |
||
Line 14:
-->{{#ifeq: {{NAMESPACE}} | Wikipedia <!-- If in the Wikipedia namespace
--> | {{#if: {{{2|}}} <!-- If param #2 is supplied
--> | <!-- Don't categorise when there's a manual date/middle-title or if the page name is not in date format. Subpage title must begin "20", the first 2 chars of a year (note this is a future Y2100 bug ;)
--> | {{#ifeq:{{#invoke:String|sub|{{#titleparts:{{BASEPAGENAME}}| 1 | 2 }}|1|2}} | 20 | [[Category:Wikipedia Signpost archives {{#time: Y-m | {{#titleparts:
-->}}<!-- End if param #2 supplied
-->}}<!-- End if in the Wikipedia namespace
|