Wikipedia:Wikipedia Signpost/Templates/Signpost-header/Normal: Difference between revisions

Content deleted Content added
test autocat for sections, e.g., Recent research, would still need to add four-digit keys, e.g., |0118
include recent pages in rss feed category
Line 13:
--> | {{#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:{{BASEPAGENAME}}| 1 | 2 }} }} ]] <!-- include recent pages in rss feed category: --> {{#ifexpr: {{#time:U|now - 2 months}} < {{#time:U| {{#titleparts:{{BASEPAGENAME}}| 1 | 2 }} }} | [[Category:Wikipedia Signpost RSS feed]] }}
{{#ifeq:{{SUBPAGENAME}}| Recent research | [[Category:Wikipedia Signpost Research report archives {{#time: Y | {{#titleparts:{{BASEPAGENAME}}| 1 | 2 }} }} ]] | <!--no subpagename match-->}} <!-- match subpagename
--> | <!--not a date-->}}<!--