When viewing a Wikipedia article, in the side navigation under “Tools” you’ll usually find a link to “Wikidata item”. Further down, under “In other projects”, you’ll find links to any other Wikimedia projects that have a matching page for the respective article:
We’d like to provide access to the “In other projects” experience in AMC. Since these links are page-specific, it makes sense to add these to the page actions menu, rather than the main navigation.
- tapping "Other projects" will lead to a sub-menu
- tapping "Back" at the top of the sub-menu will lead back to the more menu
- the order of the items in the "Other projects" sub-menu should follow the order they appear in on wikipedia.com
- to reduce complexity for now I've created T224311 to deal with adding icons (it doesn't seem like we currently have SVG icons for all Wikimedia projects so there's a bit of work there)
The item is added via a hook. We need to identify that hook to decide where this code will live (it should not live in Minerva). Integration tests will be important.
We will also need to identify pages where this is not wanted.
In addition to this many pages use templates in the article content to link to other projects. we may want to scrub that content from the output to compensate for the adding HTML this will add to pages.
This is likely to be tricky so let's make sure this is valuable (possibly some data analyst) before adding to the site. We of course would need to support sub menus first which itself is not trivial.