Page MenuHomePhabricator

Commons UploadWizard produces invalid wikisyntax if description contains wikilink
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (conjectured):

  • Start UploadWizard on Commons with multiple files
  • Enter a description containing a wikilink
  • Complete UploadWizard

What happens?

Wikicode produced by the UploadWizard contains unbalanced braces (note argument to template parameter description):

=={{int:filedesc}}==
{{Information
|description={{en|1=[[Wikipedia:Wikipedia:Meetup/NYC/Wikipedia Day 2024|Wikipedia Day 2024]] in NYC hosted by Wikimedia NYC and the Brown Institute at Columbia University.}}}}
|date=…
⋮

(See: https://commons.wikimedia.org/w/?oldid=843335998 )

What should have happened instead?

Wikicode should be syntactically correct.

Other information:

This error has consistently occurred over a set of recent Commons uploads by User:Wil540_art, but not for the uploads that immediately preceded or followed it. Those uploads, in which the UploadWizard seems to have produced correct wikisyntax, did not contain wikilinks in the descriptions, however. (See: https://commons.wikimedia.org/w/index.php?title=Special:NewFiles&offset=20240119055630&limit=50 )

Event Timeline

BlaueBluete renamed this task from Commons UploadWizard produces invalid wikisyntax if description contain wikilink to Commons UploadWizard produces invalid wikisyntax if description contains wikilink.Jan 20 2024, 4:41 AM