Wikipedia:Wikipedia Signpost/Templates/Signpost-header: Difference between revisions
Content deleted Content added
what the fuck? |
remove inane ifeq that would display nothing regardless of how the test evaluated, as well as inane note from myself in january saying it should "probably be removed" but for some reason not doing it! |
||
Line 8:
--> | {{#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]] }} <!-- match subpagename
--> | <!--not a date-->}}<!--
-->}}<!-- End if param #2 supplied
|