Difference between revisions of "Template:DateCategory"

From Wikispooks
Jump to navigation Jump to search
(rework)
(rework)
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>
{{#ifexpr: {{#substring:{{{Date|}}}|0|4}} > 1065 | [[category:Published in {{#substring:{{{Date|}}}|0|4}}]]| x}}
+
{{#ifexpr: {{#substring:2000|0|4}} > 1065 | [[category:Published in {{#substring:{{{Date|}}}|0|4}}]]| x}}
 
{{#ifexpr: {{#substring:{{{Date|}}}|{{#expr:{{#strlen: {{{Date|}}}}}-4}}|4}} > 1065 | [[category:Published in {{#substring:{{{Date|}}}|{{#expr:{{#strlen: {{{Date|}}}}}-4}}|4}} }}
 
{{#ifexpr: {{#substring:{{{Date|}}}|{{#expr:{{#strlen: {{{Date|}}}}}-4}}|4}} > 1065 | [[category:Published in {{#substring:{{{Date|}}}|{{#expr:{{#strlen: {{{Date|}}}}}-4}}|4}} }}
  
 
date={{{Date|}}} {{#strlen: {{{Date|}}}}}
 
date={{{Date|}}} {{#strlen: {{{Date|}}}}}
 
</includeonly>
 
</includeonly>

Revision as of 02:50, 11 November 2013

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