Page MenuHomePhabricator

<ref> tag does not interpret underscores as spaces in the name attribute anymore
Open, LowestPublic

Description

Until some days ago spaces and underscores were the same for the name attribute of tag ref, now:
<ref name="test test2">test</ref><ref name="test_test2"/>
gives an error.

Event Timeline

Rotpunkt created this task.Dec 1 2017, 3:53 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 1 2017, 3:53 PM
Rotpunkt updated the task description. (Show Details)Dec 1 2017, 3:55 PM
Aklapper renamed this task from Problem with tag ref and underscores/spaces in the name attribute to <ref> tag does not interpret underscores as spaces in the name attribute anymore.Dec 1 2017, 10:12 PM

Why would somebody use an underscore instead of the actual name?

Actually there is no reason, the problem is that until something is allowed, surely in some page it's used :) In itwiki https://it.wikipedia.org/wiki/Categoria:Pagine_con_errori_nell'uso_delle_note is increased a bit for this type of errors (I don't know in other wikis). We can fix them all.

Elitre added a subscriber: Elitre.Dec 4 2017, 10:50 AM

Unless there are still thousand of errors hidden by caching, in itwiki all errors were fixed. For us the issue is solved.

Wargo added a subscriber: Wargo.Dec 5 2017, 9:37 AM

Other wiki has this issue too. Is it intentional?

Why would somebody use an underscore instead of the actual name?

Underscore as space, not single character in name ;)

Other wiki has this issue too.

That is likely, as wikis run on the same MediaWiki software. :)

Is it intentional?

We don't know...

Underscore as space, not single character in name ;)

Sorry, I expressed myself badly. I meant "space" instead of "actual name".

CC'ing @MaxSem and @Legoktm mentioned in that commit. (Though I'd personally decline this task.)

Izno added a subscriber: Izno.Dec 31 2017, 8:35 PM

CC'ing @MaxSem and @Legoktm mentioned in that commit. (Though I'd personally decline this task.)

I would be inclined to decline this task as well. The original IDs working was likely an unintentional side effect and shouldn't IMO be supported.

Aklapper triaged this task as Lowest priority.Feb 6 2018, 12:16 PM