Difference between revisions of "Template talk:After"

From Conservapedia
Jump to navigation Jump to search
 
(starting to write unit tests)
Line 1: Line 1:
−
#REDIRECT [[Template talk:Before month]]
+
If you can't see anything in the next section, then all tests have passed. Only failing tests should be visible, unless you  click on the "edit" link above. When there are no more failing tests, the template is finished.
 +
 
 +
These tests are only designed to work on April 8th of any given year.
 +
 
 +
==Automated tests==
 +
 
 +
{{after|4|8| yes | no}}
 +
 
 +
{{#ifeq: {{after|4|8| yes | no}} | yes | Should not be after April 8th yet }}
 +
 
 +
{{#ifeq: {{after|4|7| good | bad }} | bad | I thought April 7th had come and gone already.}}
 +
 
 +
==Examples==
 +
 
 +
{{after month|1|January has come and gone}}
 +
 
 +
{{before month|5|It's not May yet}}
 +
 
 +
{{after month|3|It's after March}}

Revision as of 12:13, April 8, 2008

If you can't see anything in the next section, then all tests have passed. Only failing tests should be visible, unless you click on the "edit" link above. When there are no more failing tests, the template is finished.

These tests are only designed to work on April 8th of any given year.

Automated tests

Expression error: Unexpected < operator.



Examples

January has come and gone

{{{3}}}

It's after March