NUKnightLab / NUKnightLab/TimelineJS3

Wikipedia internal links should create extract text from relevant section

Open
#840 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
3.2k
Forks
645
PR merge metrics
No merged PRs in 30d

Description

When inserting a link to a Wikipedia article in a TimelineJS3, a short extract from the beginning of that article/page is created and displayed. And a clickable link is made available, taking the user to that same Wikipedia article.
Example: https://en.wikipedia.org/wiki/Carthage
However, if one inserts a link to a section of that article, e.g. https://en.wikipedia.org/wiki/Carthage#Archaeological_site, in the Timeline JS3 slide, the Wikipedia link is correctly created to that section, but the extract is still extracted from the beginning of the page/article.
It would be a nice improvement if an extract pointing to a section were created from that section.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Reproduce the existing behavior in a TimelineJS3 slide with the full Wikipedia URL and with the #Archaeological_site section URL, then trace the link and extract handling. Done means a section link still points to that section and its extract comes from the relevant section rather than the article beginning.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.