Skip to content
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

Add level-of-detail / length control #19

Open
waldyrious opened this issue May 10, 2014 · 5 comments
Open

Add level-of-detail / length control #19

waldyrious opened this issue May 10, 2014 · 5 comments

Comments

@waldyrious
Copy link
Owner

waldyrious commented May 10, 2014

There could be a set of radio buttons, a dropdown list or even a slider (UI up for discussion) to pick between different content lengths:

@waldyrious
Copy link
Owner Author

waldyrious commented Oct 1, 2016

Changing the control should also update the currently loaded article, not just future queries.

@Jan-Ka
Copy link
Collaborator

Jan-Ka commented Oct 28, 2017

I tried to find a solution for this.

The control is not an issue but I have problems with understand how to obtain the information from wikipedia/mediaWiki. Any pointers?

@waldyrious
Copy link
Owner Author

waldyrious commented Oct 28, 2017

Yeah, that's why I removed the hacktoberfest label, as this probably needs a bit of research work. I would say that a first implementation could be done by fetching the contents as is currently done, and simply trimming out excess contents (just the first sentence vs. just the first paragraph vs. the entire first section). This could be done using regex find/replace.

Eventually, we will want to also fetch the Wikidata description. but I guess that could be left to a separate issue, to keep things simple.

@waldyrious
Copy link
Owner Author

waldyrious commented Oct 28, 2017

By the way: back in 2012 I made a proposal for related functionality in Wikipedia's Navigation popups gadget. Some of the code there may be relevant for this. Here's the full current source of the gadget.

@waldyrious waldyrious changed the title add length slider / radio buttons Add level-of-detail / length control Jun 15, 2019
@waldyrious
Copy link
Owner Author

Funny thing, I just learned about Ted Nelson's (of Project Xanadu fame) StretchText proposal, which is a proposal for precisely this kind of progressive disclosure in prose (though it's a bit more fleshed-out in terms of how the UI should work, and more ambitious in the seamlessness of the intended UX).

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

No branches or pull requests

2 participants