Skip to content

Stretch: Think of ways to allow users to make selections "on-wiki" #845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
audiodude opened this issue Apr 8, 2025 · 0 comments
Open

Comments

@audiodude
Copy link
Member

This issue doesn't necessarily concern the operation of WP1 itself. Rather, it's an exploratory issue for us to think about and discuss ways that users could create a selection "on-wiki", similar to the way the "Book builder" selection worked, which was added in #645 and slated for removal in #727.

The most stubborn approach would be a Chrome extension which adds a "Add to my selection" button to Wikipedia interfaces. The user would have to be logged in to both Wikipedia and WP1. We would probably need a special type of Builder that is "hidden" from the interface but which receives additions as prompted by such an extension, and then allows the user to build their ZIM. This would likely require API work in WP1.

A less heavy approach would be to create a User script or Gadget that does something similar. These types of code are specifically designed to be placed directly in the Wikipedia interface and allow the user to take actions. However, it is not clear if either provides ways to do XHR/fetch/AJAX requests to the external WP1 API. This approach would similarly need WP1 API modifications. The advantage is that it leverages existing methods for integrating with the Wikipedia/Mediawiki interface. The disadvantage is that the code would live on-wiki as well, and might need to be duplicated across different language wikis, and could not be properly version controlled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant