Last modified: 2014-01-01 15:44:29 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 T34581, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32581 - Templatized fields in tables will fail unless preceded by a new line
Templatized fields in tables will fail unless preceded by a new line
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-22 09:15 UTC by badon
Modified: 2014-01-01 15:44 UTC (History)
1 user (show)

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


Attachments
Semantic Form code (5.60 KB, text/plain)
2011-11-22 09:19 UTC, badon
Details

Description badon 2011-11-22 09:15:29 UTC
Semantic Forms fields can be constructed conditionally when using templates, parser functions, etc. But, they usually fail when in a table, unless preceded by a new line. It does not help to change the table cell's pipe syntax to a pipe template. Only the new line seems to workaround the problem.

I took the day to prepare a demo, which I will post after I rename it to the
bug number that this report receives.
Comment 1 badon 2011-11-22 09:19:33 UTC
Created attachment 9523 [details]
Semantic Form code

Login with Demo/test:

http://www.coincompendium.com/wiki/index.php/Form:Bug_32581
Comment 2 Yaron Koren 2011-11-23 01:46:04 UTC
Are you sure that this is a Semantic Forms issue, as opposed to a MediaWiki parser issue? (To the extent that it's an issue at all?)
Comment 3 badon 2011-11-23 02:19:02 UTC
I haven't had this exact same problem with the interaction in a table with anything but Semantic Forms. Can you suggest a way to test for the cause? Parser functions and other templates seem to work OK every time I've used them for anything but Semantic Forms, in this kind demo. I did run into a similar issue with Semantic Maps that I reported a few months ago:

https://bugzilla.wikimedia.org/show_bug.cgi?id=30354

but it doesn't involve tables as far as I can tell, and I wasn't able to figure out the cause for it. Since the sloppy demo I set up on the site has changed since then, I'd have to go back to set up a new, better demo for it, and maybe see if I can isolate the trigger for it. 

In both cases, I haven't been able to duplicate the issue outside of SMW. 

I don't know how Semantic Forms and Semantic Maps work under the hood, so that limits me in the effectiveness of my testing with the time I have available for it. If you have any tips or suggestions that can help me do a better job of testing, quicker, I would appreciate it. 

I'm sure at some point, getting familiar with SMW's code would be helpful, but I think it's out of my league until I get some experience writing and debugging extensions, along with dedicated time to focus on studying SMW.
Comment 4 Yaron Koren 2014-01-01 15:44:29 UTC
Marking as "invalid" - this appears to be a parser issue, not an SF issue.

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


Navigation
Links