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

           Summary: Parsing the pagename parameter does not support pipe
                    characters
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: SemanticForms
        AssignedTo: yaro...@gmail.com
        ReportedBy: xolog...@hotmail.com
                CC: wikibugs-l@lists.wikimedia.org


Created an attachment (id=7196)
 --> (https://bugzilla.wikimedia.org/attachment.cgi?id=7196)
Fix for SF_FormEdit.php special page to allow use of {{!}}

The feature to parse the pagename parameter of the info-tag to allow for more
dynmic page titles was intoduced in SF 1.9.
However, this does not support more complex usage including parser functions
like #if and #ifeq which use pipe characters.

I noticed the following behaviour:
* when extracting pagename=... it is cut off at the first occurrence of |
--> easy workaround is to use a template {{!}} instead of |
* now, templates do not get resolved by recursiveTagParse
--> workaround is to replace {{!}} just before calling the parser, which might
not be the most elegant way, but works. This is what this patch does.

Other options could include:
* Change the extraction of the pagename value to respect additional {{, }} and
| (probably more complex)
* try using preprocess instead of recursiveTagParse (not yet tested)

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to