It already has class="external", but MediaWiki’s default styles only apply to that within .mw-parser-output, which we don’t have.
Description
Details
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | Lucas_Werkmeister_WMDE | T216816 [Epic] check list of entities against Schema | |||
| Resolved | Lucas_Werkmeister_WMDE | T218885 Make “check entities against Schema” link look like an external link |
Event Timeline
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:
- 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.)
- Add class="mw-parser-output" to our whole output.
- 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
Change 498381 merged by jenkins-bot:
[mediawiki/extensions/WikibaseSchema@master] Fix external link style
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
Change 498930 merged by jenkins-bot:
[mediawiki/extensions/WikibaseSchema@master] Fix capitalization of Schema in messages