Page MenuHomePhabricator

Make “check entities against Schema” link look like an external link
Closed, ResolvedPublic3 Estimated Story Points

Description

It already has class="external", but MediaWiki’s default styles only apply to that within .mw-parser-output, which we don’t have.

Event Timeline

Lucas_Werkmeister_WMDE renamed this task from Make “check entities againt Schema” link look like an external link to Make “check entities against Schema” link look like an external link.Mar 21 2019, 2:16 PM
Lucas_Werkmeister_WMDE set the point value for this task to 3.

I think this is a bit more complicated than expected. There’s no such thing as “MediaWiki’s default styles” here: MediaWiki defines a module (mediawiki.skinning.content.externallinks) that skins can use (and Monobook and Timeless, for example, do this), but skins can also roll their own style for external links (that is, for example, what Vector does). So I think we have three options:

  1. Copy the external link styles from some skin to our CSS, and accept a slight visual difference in other skins. (Between Monobook, Timeless and Vector, I think the color is the same, but Vector uses a slightly different icon.)
  2. Add class="mw-parser-output" to our whole output.
  3. Surround just that link in a tiny <span class="mw-parser-output">.

I don’t really like the sound of #1, though in practice the impact wouldn’t be too bad. #2 is a big lie (this is not actually output from the parser) that feels risky – what other things are tied to that CSS class? #3 is a smaller lie that feels safer to me, though it’s still a bit odd.

Change 498381 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[mediawiki/extensions/WikibaseSchema@master] Fix external link style

https://gerrit.wikimedia.org/r/498381

Change 498381 merged by jenkins-bot:
[mediawiki/extensions/WikibaseSchema@master] Fix external link style

https://gerrit.wikimedia.org/r/498381

Looking good. One small thing we discussed: Schema in the link text is not capitalized. Can we change that?

Change 498930 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[mediawiki/extensions/WikibaseSchema@master] Fix capitalization of Schema in messages

https://gerrit.wikimedia.org/r/498930

Change 498930 merged by jenkins-bot:
[mediawiki/extensions/WikibaseSchema@master] Fix capitalization of Schema in messages

https://gerrit.wikimedia.org/r/498930