Difference between revisions of "User:Catwheezle"

Jump to navigation Jump to search
1,348 bytes removed ,  02:37, 23 February 2012
no edit summary
imported>Catwheezle
imported>Catwheezle
Line 1: Line 1:
<includeonly>
<includeonly>
These work:
#ifeq var to date: {{#ifeq:{{{1}}}|00:37, 23 February 2012|Ifeq thinks {{{1}}} is the static date|Ifeq thinks {{{1}}} is not a date}}
#ifeq var to string: {{#ifeq:{{{1}}}|Not_A_Date|Ifeq fails with {{{1}}}|Ifeq works with {{{1}}}}}
#Time static: {{#time: c|00:37, 23 February 2012}} (always a time)
#Time var: {{#time: c|{{{1}}}}} (time or an error)
#Bad time var: {{#time: c|{{{1}}}?}} (always an error)
#Expression good static: {{#ifeq:{{#time: c|00:37, 23 February 2012}}|<strong class="error">Error: invalid time</strong>|Fails|Works}}
#Expression bad static: {{#ifeq:{{#time: c|Catweasel}}|<strong class="error">Error: invalid time</strong>|Works|Fails}}
This does not work:
#Full expression: {{#ifeq:{{#time: c|{{{1}}}}}|<strong class="error">Error: invalid time</strong>|NOT a date|IS a date}} (should depend on var, Equal or NotEqual.)
#Full expression: {{#ifeq:{{#time: c|{{{1}}}}}|<strong class="error">Error: invalid time</strong>|NOT a date|IS a date}} (should depend on var, Equal or NotEqual.)
#Full expression: {{#ifeq:{{#time: c|{{{1}}}}}|<strong class="error">Error: invalid time</strong>|NOT a date|IS a date}} (should depend on var, Equal or NotEqual.)
#Full expression: {{#ifeq:{{#time: c|{{{1}}}}}|<strong class="error">Error: invalid time</strong>|NOT a date|IS a date}} (should depend on var, Equal or NotEqual.)
</includeonly><noinclude>
</includeonly><noinclude>
Legal date:
Legal date:
Line 19: Line 7:
My name:
My name:
{{:User:Catwheezle|Catwheezle}}</noinclude>
{{:User:Catwheezle|Catwheezle}}</noinclude>
For the full expression to not work, but the #ifeq and the #time and the <nowiki>{{{1}}}</nowiki> to all work fine separately or in any combination of the two seems strange.
* #ifeq #time - works
* #ifeq <nowiki>{{{1}}}</nowiki> - works
* #time <nowiki>{{{1}}}</nowiki> - works
* #ifeq #time <nowiki>{{{1}}}</nowiki> - fails
Anonymous user

Navigation menu