Extension talk:Validator
Contents
| Thread title | Replies | Last modified |
|---|---|---|
| Short description of this extension please | 1 | 19:00, 22 May 2012 |
| Parameter manipulation | 6 | 22:26, 21 March 2012 |
| Undefined index error | 5 | 20:22, 29 February 2012 |
| Describe lists parsemag as alias | 3 | 13:54, 2 October 2011 |
| 4.10? | 1 | 11:31, 24 August 2011 |
Hello,
would somebody please tell me the functionality of this extension in a few words? The extension description doesn't make sense for me. Maybe I'm too silly for that. But many extensions require validator, so it has to be important. Thanks for your help.
Cheers
The reason for manipulating data is to enter "yes" instead of "true"? Please remind that we don't want change any sense! You know that all here is text and you also know that this is not about converting or encoding. Drop it!
Validator allows a bunch of values for boolean parameters, for example yes/no, on/off, but not true/false actually, might make sense to include this as well. Perhaps also show/hide while we're at it.
Yeah, we can add those. The boolean type was never fully implemented so far anyway - if you have on/off, you ought to consider internationalizing these as well :)
One more todo for 0.5.
I want to suggest to keep it simple! The attribute can be named SwitchOn the values are true/false.
| SwitchOn=true}}
Furthermore you could handle it with 1 and 0 but than there were no new datatype - Ooh
Anyway you can implement what you want, but if there is no additional benefit it is just absurd...
I'm getting the following error on my form pages "Notice: Undefined index: original-value in /extensions/Validator/includes/Validator.php on line 168" Any hints on how I can resolve this? Thanks!
What version are you using? I suspect this issue has already been fixed. When are you getting it? Using Semantic Forms?
Hi Jeroen,
I'm getting this notice when using sparql inline query e.g.
{{#sparql: SELECT ?person ?income WHERE { ?person <http://mywiki/property/Income> ?income . } }}
I have:
MediaWiki 1.17.0
Semantic Forms (Version 2.3.2)
Semantic MediaWiki (Version 1.7.0.2)
Any ideas?
Where is this #sparql parser function coming from? It's not part of SMW AFAIK. Also, what version of Validator are you using?
I have a parserfunction that has 1 alias. The describe parserfunction says: Aliases: parsemag
The error is in line 173 of Validator_Describe.php in Validator 0.4.11:
$description .= $this->msg( 'validator-describe-aliases', 'parsemag', $wgLang->listToText( $aliases ), count( $aliases ) );
Changing $this->msg to wfMsgExt fixes the problem.
Thanks for pointing this out. I just removed the parsemag argument. Using wfMsgExt might fix the issue, but will break the behavior of the language parameter.