https://bugzilla.wikimedia.org/show_bug.cgi?id=32533
Web browser: ---
Bug #: 32533
Summary: SemanticForms: fragile syntax for auto-generated page
names.
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: SemanticForms
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
> {{{ info ... }}}
Note a space between `{{{' and `info'. It works in many cases. But in case of
auto-generated form names:
> {{{ info ... | page name=Visit:<unique number;start=1>}}}
the space before `info' causes error. The problem is in
`specials/SF_FormEdit.php', in `printForm' function:
> if ( $target_name === '' ) {
> // parse the form to see if it has a 'page name' value set
> $matches;
> if ( preg_match( '/{{{info.*page name\s*=\s*(.*)}}}/m', $form_definition,
> $matches ) ) {
Obviously this will not match if there is a space between `{{{' and `info'.
Handling spaces should be consistent. SF should either allow spaces (include
newlines) or disallows it.
The bug is not to serious, because there are simple workaround for it -- just
write `{{{info' with no spaces. But, for novice users, it will be very
frustrating and disappointing. It will looks like auto-generated page names are
simply broken.
(BTW, this issue in NOT related to bug 32485; last one is still a problem even
if there is no space).
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l