Last modified: 2014-02-12 23:38:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32651, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30651 - Form field "default=" templates etc do not work without a space at the end
Form field "default=" templates etc do not work without a space at the end
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Unprioritized trivial (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-31 07:46 UTC by badon
Modified: 2014-02-12 23:38 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description badon 2011-08-31 07:46:53 UTC
Some research showed that this bug has been discovered before, but was never reported:

http://www.mediawiki.org/wiki/Extension_talk:Semantic_Forms/Archive_May_to_June_2011#Parser_functions_in_default_field_values

This bug is triggered when a field looks like this:

{{{field|MyPropertyName|default={{ANYTHING IN DOUBLE CURLY BRACES}}}}} (Some instruction text)

Which will produce a field that looks like this (Field shown in square brackets):

[ {{ANYTHING IN DOUBLE CURLY BRACES ]   }} (Some instruction text)

Putting a space after the template, before the closing "}}}" will resolved the problem:

{{{field|MyPropertyName|default={{ANYTHING IN DOUBLE CURLY BRACES}} }}} (Some instruction text)

This bug is triggered by templates, parser functions, magic words, and anything else that is in double curly braces. I tested all three of those, but did not test parameters, which are in triple curly braces. 

Tested:

* {{Template:Any template}}
* {{#Any: parser function}}
* {{ANYMAGICWORD}}

Not tested, but probably also triggers the bug:

* {{{Any template parameter|}}}

I assume anything in curly braces will trigger the bug. I don't think this problem is in the mediawiki parser, but I have not verified that. I think the problem is in Semantic Forms.

This problem has been giving me grief since the beginning, and I could not figure out why nothing I did ever worked. I will update the documentation with a brief explanation, and a link to this bug, so people don't get stuck.
Comment 1 badon 2011-08-31 07:57:34 UTC
I changed the importance to "trivial", now that the documentation is updated to show users the very simple workaround:

http://www.mediawiki.org/wiki/Extension:Semantic_Forms#.27field.27_tag

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links