GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Edit Task
  • Edit Related Tasks...
  • Create Subtask
  • Edit Parent Tasks
  • Edit Subtasks
  • Merge Duplicates In
  • Close As Duplicate
  • Edit Commits
  • Edit Mocks
  • Mute Notifications
  • Protect as security issue
  • Parsoid
  • (Feature requests)
  • MediaWiki-Parser

This view

  • Original page
  • New address

GeezerVison is showing phabricator.wikimedia.org — T306216 Media options don't have the whitespace leniency as template arguments

Page MenuHomePhabricator
Log In
Create Task
Maniphest T306216

Media options don't have the whitespace leniency as template arguments
Open, MediumPublic
Actions

  • Edit Task
  • Edit Related Tasks...
  • Create Subtask
  • Edit Parent Tasks
  • Edit Subtasks
  • Merge Duplicates In
  • Close As Duplicate
  • Edit Related Objects...
  • Edit Commits
  • Edit Mocks
  • Mute Notifications
  • Protect as security issue
Assigned To
None
Authored By
Arlolra
Apr 14 2022, 7:34 PM2022-04-14 19:34:57 (UTC+0)
Project Tags
  • Parsoid (Feature requests)
  • MediaWiki-Parser (Backlog)
Referenced Files
None
Subscribers
Aklapper
Arlolra
Dinoguy1000
Jonesey95

Description

In T216003#5795258, @Jonesey95 wrote:

One of the notes I added to Help:Images: "If there is a space character between alt and the equals sign, the alt statement will be treated as a caption." This behavior is contrary to how editors are used to working with template parameters. Yes, I know that images are not templates, but it is difficult to manage this inconsistent behavior, and there does not appear to be a good design reason for treating these spaces as syntactically meaningful while (for example) stripping out spaces after the equals sign.

You can see this alt= versus alt = behavior here: https://en.wikipedia.org/w/index.php?title=User:Jonesey95/sandbox3&oldid=935129500

This comes from pattern matching,

{
                "name": "img_alt",
                "aliases": [
                    "alt=$1"
                ],
                "case-sensitive": ""
},

https://github.com/wikimedia/parsoid/blob/master/baseconfig/enwiki.json#L1158

Related Objects

  • Mentions
Mentioned In
T274382: Make File syntax processing match the specification and documentation
T216003: Linter fails to detect multiple "upright" parameters as a Bogus file option
Mentioned Here
T216003: Linter fails to detect multiple "upright" parameters as a Bogus file option

Event Timeline

Arlolra created this task.Apr 14 2022, 7:34 PM2022-04-14 19:34:57 (UTC+0)
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 14 2022, 7:34 PM2022-04-14 19:34:57 (UTC+0)
Arlolra triaged this task as Medium priority.Apr 14 2022, 7:35 PM2022-04-14 19:35:17 (UTC+0)
Arlolra moved this task from Needs Triage to Feature requests on the Parsoid board.
Arlolra mentioned this in T216003: Linter fails to detect multiple "upright" parameters as a Bogus file option.
Dinoguy1000 subscribed.Apr 15 2022, 1:52 AM2022-04-15 01:52:12 (UTC+0)
Comment Actions

This also happens in the gallery tag (where it's been a huge annoyance for me for years).

Dinoguy1000 awarded a token.Apr 15 2022, 1:52 AM2022-04-15 01:52:20 (UTC+0)
Jonesey95 mentioned this in T274382: Make File syntax processing match the specification and documentation.May 23 2022, 1:23 PM2022-05-23 13:23:35 (UTC+0)
Log In to Comment
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.