Difference between revisions of "Task:Regexp"
Jump to navigation
Jump to search
Tim Holzheim (talk | contribs) (Created page with "=Task = Create Concept:Regexp with all required pages such as Help,List of, Template and, Category. =Goal= Ability to define different Regexp that can be used in forms. Each R...") |
Tim Holzheim (talk | contribs) |
||
Line 29: | Line 29: | ||
* Create [[Template:RegexpToFieldRegexp]]: A template to resolve a given Regexp into the field arguments of regexp | * Create [[Template:RegexpToFieldRegexp]]: A template to resolve a given Regexp into the field arguments of regexp | ||
* Update [[Template:FieldByProperty]] to use [[Template:RegexpToFieldRegexp]] | * Update [[Template:FieldByProperty]] to use [[Template:RegexpToFieldRegexp]] | ||
+ | |||
+ | [[Category:Task]] |
Revision as of 19:25, 26 February 2021
Task
Create Concept:Regexp with all required pages such as Help,List of, Template and, Category.
Goal
Ability to define different Regexp that can be used in forms. Each Regexp should consist of
- pattern
- message (error message that is displayed)
- base type
- inverse
- or char
- base prefix
See https://www.mediawiki.org/wiki/Extension:Page_Forms/Input_types/Regexp
Procedure
Create the following pages
- Concept:Regexp
- Category:Regexp
- Template:Regexp
- Help:Regexp
- List of:Regexp
Define the following Regexp:
- Regexp:NaturalNumber (Should replace the current pattern defined in Property:Ordinal)
- Regexp:Email (just as example)
Update the current use of regexp in forms:
- Create Template:RegexpToFieldRegexp: A template to resolve a given Regexp into the field arguments of regexp
- Update Template:FieldByProperty to use Template:RegexpToFieldRegexp