Difference between revisions of "Template:Christory"
Jump to navigation
Jump to search
m |
|||
Line 1: | Line 1: | ||
<noinclude>{{Template:Incomplete}}</noinclude> | <noinclude>{{Template:Incomplete}}</noinclude> | ||
{{# | this is the day of the year: {{#vardefineecho:dayofyear|{{#time: z}}}}<br> | ||
{{# | 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}}| | currently, this shouldn't output anything: {{#regex:{{msgnw:Christory_Table}}|{{#var:expression}}}} | ||
{{#regex:{{msgnw:Christory_Table}}| | 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 19:02, 10 October 2009
this is the day of the year: {{#vardefineecho:dayofyear|325}}
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]]