Template:CheckChar1
From Pestinfo-Wiki
The template takes the following 2 parameters:
- Error message
- Text parameter
and checks whether the "Text parameter" contains the characters ("), (&) or (#). If yes then an error message is returned. If the Error message (first parameter) already contains some text then the separator ";;" and the new message is appended. If there is no error parameter 1 is returned.
Usage:
{{CheckChar1|1=|2=Text with and not allowed characters like # & or "}}
… results in:
- Wrong characters: The input «Text with and not allowed characters like # & or "» contains one of the characters #&" which are not allowed for a generated page name. Please correct it! You can insert later those characters in the subsequent publication form, e.g. as title.