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

       Web browser: ---
             Bug #: 32746
           Summary: Template:!, = (( and )) as built-in variables
           Product: MediaWiki
           Version: 1.19-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: Parser
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: danwe...@web.de
    Classification: Unclassified


Created attachment 9588
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=9588
This will make "((", "))", "=" and "!" variables available.

Since most wikis use certain templates as workarounds for things like the pipe
character, it might be an good idea to include them directly into MediaWikis
core.

First of all, this would perhaps make things more consistent throughout
different wikis, at the same time unnecessary to create them first.

But the main reason why I'd like to see this within the core would be, that
having "((", "))", "=" and "!" consistently within all wikis would be valuable
for extension development.
When passing something to PPFrame->expand() which contains user input, perhaps
as value for a generated template/function call as a parameter value, this
value should be "escaped" first so the user input can't destroy the code built
around it.
Right now this is just somewhat possible with wfEscapeWikiText() but its not
good for many cases where you would need all the special characters as on byte
characters instead of HTML entities.
So a new function wfEscapeForExpansion() might be interesting as well, but
first the decision to include the "((", "))", "=" and "!" variables must be
made.

I am not sure about other workaround templates such as "!-", perhaps there are
some others which would make sense as well.

Also, some characters as first characters within a string are troublemakers
like ":" or ";". Maybe there should be an entirely different way to address
this problem.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
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