I remember being annoyed with this a few months ago.  I got around it
by making the default value for truly optional fields a dash (-).
More recently, another person on our team used the parser function
statement in the template to only show the field if there's a value;
which short-cuts the error.  I think using the conditional field is a
better approach than mine (but the chances of me going back and
"fixing" my fields and all that data? ...pretty slim.).

CW


On Sep 30, 12:38 am, "Yaron Koren" <[EMAIL PROTECTED]> wrote:
> Well, I don't know if this is really the place to get into the
> idiosyncracies of MediaWiki's parser functions, but I think the real issue
> here is that SMW produces error messages for blank values: I think that
> should never happen, since a blank value should be valid for every property,
> at least by default. I brought it up on the SMW mailing list before:
>
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg00943.html
>
> But none of the SMW developers responded; it might be worth bringing up the
> issue again.
>
> I should note that it's possible to get around it already just by disabling
> warning messages from SMW, which I think is a reasonable approach too.
>
> -Yaron
>
> On Sun, Sep 28, 2008 at 5:03 AM, S Page <[EMAIL PROTECTED]> wrote:
>
> > A simplistic template filled in by a form (that someone else created)
> > has just
> >   | Description:
> >   | [[Description::{{{long description|}}}]]
> >   |-
> > but this leads to lots of
> >   Description: {warning icon} "Empty strings are not accepted."
> > on pages where nobody filled in the form.
> > I guess this is by design?  It makes the template substantially longer.
>
> > I found "Hiding empty fields in the right-hand-side infobox (#if
> > function" from January 3rd.
> > That thread proposes the solution:
>
> > {{ #if: {{{middleName|}}} |
> >  {
> >   ! Middle name
> >   | [[MiddleName::{{{middleName|}}}]]
> >   |-
> >  } |
> > }}
> > (MediaWiki template/parser function syntax is so [EMAIL PROTECTED] awful!)
>
> > I'm wondering what the point of "|" inside each triple-curly brace is.
> > Surely by the time you get within the  #if test, you know middleName is
> > defined?
>
> > --
> > =S
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Semantic Forms" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/semantic-forms?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to