Page MenuHomePhabricator

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

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

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.

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

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

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