Difference between revisions of "Template:DateCategory"

From Wikispooks
Jump to navigation Jump to search
m
m
Line 2: Line 2:
 
{{#ifeq: {{#substring:{{{Date|}}}|0|4}} | 2013 |[[category:Published in 2013]]|x}}
 
{{#ifeq: {{#substring:{{{Date|}}}|0|4}} | 2013 |[[category:Published in 2013]]|x}}
 
{{#ifeq: {{#substring:{{{Date|}}}|{{#expr:{{#strlen {{{Date|}}}}}-4}}|4}} | 2013 |[[category:Published in 2013]]|y}}
 
{{#ifeq: {{#substring:{{{Date|}}}|{{#expr:{{#strlen {{{Date|}}}}}-4}}|4}} | 2013 |[[category:Published in 2013]]|y}}
date={{{Date|}}}
+
date={{{Date|}}} {{#strlen {{{Date|}}}}}
 
</includeonly>
 
</includeonly>

Revision as of 22:54, 10 November 2013

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