Steps to replicate the issue (include links if applicable):
- Go to https://en.wikipedia.org/w/index.php?title=User:Jonesey95/sandbox&oldid=1310145580
- Also view the same page in Parsoid.
What happens?:
In diagnosing Linter errors, I found a table like this one in the wild.
The original wikitext, stripped down a bit for simplicity, looked like this:
{| style="width: 100%; "
|-
! class="" style="font-weight:bold"| Resolved comments <small>([[User talk:Example|Bar!!]])</small> 20:16, 14 April 2020 (UTC)
|-
|Foo
|}Note the two exclamation points in the display text portion of the wikilink. As you can see if you click through the link above, I'm seeing a couple of different things happen:
- The trailing /small tag is not rendered (after the closing paren, before the time portion of the date stamp) when I wrap the above code in syntaxhighlight tags. (This happens only if you have the "Change UTC-based times and dates, such as those used in signatures, to be relative to local time" gadget enabled in Preferences, so there may be another bug there.)
- When the table is rendered, the two exclamation points, even though they are in a wikilink, appear to be interpreted as table markup separating two cells.
- Because the part of the user's signature containing the two exclamation points was wrapped in small tags, and the opening and closing tags are placed in separate table cells, two Linter errors are registered on the page, a missing end tag and a stripped (missing opening) tag.
In the final section of the page, you can see the page as the original poster intended it to appear.
I have seen two exclamation points used in table cells cause this problem in the past, but never in the text of a link. I'm thinking that there is at least one bug here.
Note that in Parsoid, the wikilink is not rendered at all; square brackets are displayed in adjacent cells.
What should have happened instead?:
Two adjacent exclamation points in the rendered-text portion of a wikilink should be rendered as two adjacent exclamation points.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):