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

       Web browser: ---
            Bug ID: 48567
           Summary: Templates getting substituted when used in labels,
                    descriptions, and aliases
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: WikidataRepo
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

If you set an item's label,[1] description,[2] or alias[3] to a valid template
call, the software actually renders the relevant field as if you'd input the
substituted text of the template. This happens both with direct editing and
with SetLabel.

Note also that HTML markup shows up in the page title as rendered by one's
browser (MediaWiki:pagetitle, that is), but not  in the rendered label.[4] I
also can't quite figure out why the "<some item>" shows up in the page title
but not in the label - everything else that appears within curly brackets in
the template's markup is excluded from both.

Obviously there aren't that many valid reasons to set a label, description, or
alias as a valid template call (I discovered this bug when someone tried to
request an item's deletion by setting its label to {{Delete}}), but clearly
this shouldn't be happening.

1. http://www.wikidata.org/w/index.php?diff=43025948
2. http://www.wikidata.org/w/index.php?diff=43027470
3. http://www.wikidata.org/w/index.php?diff=43027503
4. http://www.wikidata.org/w/index.php?oldid=43025948

-- 
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

Reply via email to