Difference between revisions of "Template:DateCategory"

From Wikispooks
Jump to navigation Jump to search
m
m (Less of a hack)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>This template should ''not'' be invoked manually; it is used internally by [[template:DocProv]] and [[template:FileProv]].<br/></noinclude><includeonly>
 
<noinclude>This template should ''not'' be invoked manually; it is used internally by [[template:DocProv]] and [[template:FileProv]].<br/></noinclude><includeonly>
{{#ifeq: {{#substring:{{{Date|}}}|0|4}} | 2013 |[[category:Published in 2013]]|x}}
+
{{#ifexpr: {{{Date|}}} | [[category:{{{Date|}}} Publications]] | }}</includeonly>
{{#ifeq: {{#substring:{{{Date|}}}|{{#expr:{{#strlen {{{Date|}}}}}-4}}|4}} | 2013 |[[category:Published in 2013]]|y}}
 
date={{{Date|}}} {{#strlen {{{Date|}}}}}
 
</includeonly>
 

Latest revision as of 03:00, 11 November 2013

This template should not be invoked manually; it is used internally by template:DocProv and template:FileProv.