[go: up one dir, main page]

Page MenuHomePhabricator

Mobile MediaViewer dumps HTML instead of author
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue:

What happens?:
"Object: .mw-parser-output .commons-creator-table{background-color:#f0f0ff;box-sizing:border-box;font-size:95%;text-align:start}.mw-parser-output .commons-creator-table>tbody>tr{vertical-align:top}.mw-parser-output .commons-creator-table>tbody>tr>th{background-color:#e0e0ee;font-weight:bold;text-align:start}@media(max-width:719px){.mw-parser-output .commons-creator-table,.mw-parser-output .commons-creator-table>tbody{display:block;width:100%}.mw-parser-output .commons-creator-table>tbody{border-right:1px solid #aaa;border-bottom:1px solid #aaa}.mw-parser-output .commons-creator-table>tbody>tr{border-top:1px solid #aaa;display:flex;flex-wrap:wrap}.mw-parser-output .commons-creator-table>tbody>tr>th{border-left:1px solid #aaa;padding:2px;flex:1 1 100%}.mw-parser-output .commons-creator-table>tbody>tr>td{border-left:1px solid #aaa;padding:2px;flex:1 1}}@media(min-width:720px){.mw-parser-output .commons-creator-table{border:1px solid #aaa;border-collapse:collapse;border-spacing:0;padding:5px}.mw-parser-output .commons-creator-table>tbody>tr>th,.mw-parser-output .commons-creator-table>tbody>tr>td{border:1px solid #aaa;padding:2px}.mw-parser-output .commons-creator-table>tbody>tr>.halfwidth{max-width:10em}.mw-parser-output .commons-creator-table>tbody>tr>.fullwidth{max-width:20em}} Attributed to Michel Erhart Alternative names Erhart, Michael Description German sculptor Date of birth/death between circa 1440 and circa 1445date QS:P,+1440-00-00T00:00:00Z/8,P1319,+1440-00-00T00:00:00Z/9,P1326,+1445-00-00T00:00:00Z/9,P1480,Q5727902 after 1552date QS:P,+1552-00-00T00:00:00Z/7,P1319,+1552-00-00T00:00:00Z/9 Location of birth/death Ulm (?) Work location Ulm Authority file : Q473508 VIAF: 45096461 ISNI: 0000000081240348 ULAN: 500115516 LCCN: n83198675 GND: 118685147 WorldCat creator QS:P170,Q473508,P5102,Q230768 Photo: Andreas Praefcke" is listed as the author.

What should have happened instead?:
The issue seem to be that the wikitext of File:Ravensburger_Schutzmantelmadonna.jpg in the "author" field is: "*Object: {{Creator:Michel Erhart|attributed to}}\n *Photo: Andreas Praefcke". MediaViewer can handle "{{Creator:Michel Erhart|attributed to}}" or "Andreas Praefcke" just fine, but can't handle both. We can easily fix the issue for this file by correcting wikitext, but there must be many more such files and many files with weird wikitext. So I would propose a patch to MediaViewer to detect unhandled cases: maybe authors name is longer than some number of characters or presence of "100%", "}", ">" symbols in authors name as an indicators that something is wrong and not show the author.

Other information (browser name/version, screenshots, etc.):

Screenshot 2024-07-05 100947.jpg (916×511 px, 117 KB)