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
-~----------~----~----~----~------~----~------~--~---