Difference between revisions of "Template:Christory"

From CWCki
Jump to navigation Jump to search
m
Line 1: Line 1:
<noinclude>{{Template:Incomplete}}</noinclude>
<noinclude>{{Template:Incomplete}}</noinclude>


{{#vardefine:dayofyear|{{#time: z}}}}
this is the day of the year: {{#vardefineecho:dayofyear|{{#time: z}}}}<br>
{{#vardefine:searchterm|{{template:!}}{{#var:dayofyear}}{{template:!}}{{template:!}}}}
this is the term to be found(unused):{{#vardefineecho:searchterm|{{template:!}}{{#var:dayofyear}}{{template:!}}{{template:!}}}}<br>
this is the regular expression to be used: {{#vardefineecho:expression|/{{template:!}}{{#var:dayofyear}}{{template:!}}{{template:!}}([^{{template:!}}]*){{template:!}}-/m}}<br>
this is the regular expression to be used for testing purposes: {{#vardefineecho:testregex|/{{template:!}}3{{template:!}}{{template:!}}([^{{template:!}}]*){{template:!}}-/m}}


{{#regex:{{msgnw:Christory_Table}}|/{{template:!}}{{#var:searchterm}}{{template:!}}{{template:!}}([^{{template:!}}]*){{template:!}}-/m}}
currently, this shouldn't output anything: {{#regex:{{msgnw:Christory_Table}}|{{#var:expression}}}}


{{#regex:{{msgnw:Christory_Table}}|/{{template:!}}3{{template:!}}{{template:!}}([^{{template:!}}]*){{template:!}}-/m}}
this should output "January 4th": {{#regex:{{msgnw:Christory_Table}}|{{#var:testregex}}}}


{{#regex:abcdefg|/c.*f/}}
this shows that regex is working: {{#regex:abcdefg|/c.*f/}}
 
this is the string to be searched: {{msgnw:Christory_Table}}

Revision as of 20:02, 10 October 2009

this is the day of the year: {{#vardefineecho:dayofyear|164}}
this is the term to be found(unused):{{#vardefineecho:searchterm||{{#var:dayofyear}}||}}
this is the regular expression to be used: {{#vardefineecho:expression|/|{{#var:dayofyear}}||([^|]*)|-/m}}
this is the regular expression to be used for testing purposes: {{#vardefineecho:testregex|/|3||([^|]*)|-/m}}

currently, this shouldn't output anything: {{#regex:[[:Template:Christory Table]]|{{#var:expression}}}}

this should output "January 4th": {{#regex:[[:Template:Christory Table]]|{{#var:testregex}}}}

this shows that regex is working: {{#regex:abcdefg|/c.*f/}}

this is the string to be searched: [[:Template:Christory Table]]