Difference between revisions of "Template:RegexpToFieldRegexp"
Jump to navigation
Jump to search
Tim Holzheim (talk | contribs) (Created page with "<noinclude> Use this template to convert a Regexp into the regexp arguments of an field in an form For example '''<nowiki> {{RegexpToFieldRegexp|Regexp:NaturalNumber}}</nowiki...") |
Tim Holzheim (talk | contribs) |
||
Line 6: | Line 6: | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
+ | {{#if:{{#show: {{{1|}}}|?Regexp id}}| | ||
{{#if:{{#show: {{{1|}}}|?Regexp regexp}}|<nowiki>|</nowiki>regexp={{#show: {{{1|}}}|?Regexp regexp}} }} | {{#if:{{#show: {{{1|}}}|?Regexp regexp}}|<nowiki>|</nowiki>regexp={{#show: {{{1|}}}|?Regexp regexp}} }} | ||
{{#if:{{#show: {{{1|}}}|?Regexp base type}}|<nowiki>|</nowiki>base type={{#show: {{{1|}}}|?Regexp base type}} }} | {{#if:{{#show: {{{1|}}}|?Regexp base type}}|<nowiki>|</nowiki>base type={{#show: {{{1|}}}|?Regexp base type}} }} | ||
{{#if:{{#show: {{{1|}}}|?Regexp message}}|<nowiki>|</nowiki>message={{#show: {{{1|}}}|?Regexp message}} }} | {{#if:{{#show: {{{1|}}}|?Regexp message}}|<nowiki>|</nowiki>message={{#show: {{{1|}}}|?Regexp message}} }} | ||
− | {{#if:{{#show: {{{1|}}}|?Regexp or char}}|<nowiki>|</nowiki>or char={{#show: {{{1|}}}|?Regexp or char}} }} | + | {{#if:{{#show: {{{1|}}}|?Regexp or char}}|<nowiki>|</nowiki>or char={{#show: {{{1|}}}|?Regexp or char}} }} |
+ | }} | ||
</includeonly> | </includeonly> |
Revision as of 21:59, 26 February 2021
Use this template to convert a Regexp into the regexp arguments of an field in an form For example {{RegexpToFieldRegexp|Regexp:NaturalNumber}} is converted to
|regexp=/^[0-9]+$!^$/
|message=Must be a number |or char=!