TL;DR
Researchers have released WikiHist.html, the first complete dataset of English Wikipedia’s full revision history in HTML format. By correctly expanding historical templates and modules, the authors reveal that raw wikitext—the standard format for most Wikipedia research—misses over 50% of the internal hyperlinks that readers actually see and use.
What Problem Does This Paper Address?
Wikipedia is a goldmine for researchers, but there is a significant gap between the "source code" (wikitext) and the final product readers see in their browsers (HTML). When you view a Wikipedia page, the MediaWiki software dynamically expands macros—templates and modules—to generate infoboxes, navigation bars, and citations.
Until now, the official public dumps only provided raw wikitext. Researchers wanting HTML had to use Wikipedia’s REST API, which presents two major hurdles:
- Scale: Parsing the entire history of English Wikipedia via the API is prohibitively slow.
- Historical Accuracy: The current API always uses the latest version of a template. If you try to reconstruct an article from 2010 using a template that was updated in 2020, the resulting HTML is a historical fiction that doesn't represent what readers actually saw at the time.
Methods
The authors developed a custom, parallelized architecture to parse nearly 1 TB of compressed wikitext into 7 TB of HTML.
Key technical choices included:
- Local Parallelization: Instead of hitting a remote API, they deployed hundreds of local MediaWiki instances inside Docker containers across four high-end servers.
- Retroactive Macro Expansion: This is the paper's core technical innovation. They implemented an interceptor that, for every revision being parsed, looks up the version of the template or module that was active at that specific point in history.
- Database-less Parsing: To maximize speed, they bypassed the standard MediaWiki database requirement, feeding wikitext directly into the parser and intercepting lookups with custom code.
Datasets
The primary output is WikiHist.html, which contains:
- HTML Revision History: 580 million revisions of 5.8 million articles spanning 2001 to 2019.
- Page Creation Times: A lookup table to help researchers determine if a link was "red" (target didn't exist) or "blue" (target existed) at any given timestamp.
- Redirect History: A supplementary dataset to resolve how article titles mapped to targets over time.
The authors also archived the specific wikitext dump (March 1, 2019) used to generate the dataset to ensure reproducibility.
Key Insights and Ideas
- The Wikitext Mirage: Researchers relying on wikitext are looking at a "mere approximation" of Wikipedia. The study found that for most years, HTML contains more than twice as many internal links as the raw wikitext.
- Navigational Importance: One might assume these "HTML-only" links (generated by templates) are just boilerplate noise. However, by cross-referencing with Wikipedia Clickstream data, the authors proved that these links are clicked just as frequently as those manually typed into the wikitext.
- The "Missing" Clickstream: Strikingly, 6.1% of all article-to-article clicks recorded in Wikipedia's Clickstream involve links that simply do not exist in the wikitext dumps. Without WikiHist.html, these user behaviors are impossible to analyze.
Key Results
- Link Disparity: In a sample of 404,000 articles, the gap between wikitext and HTML links was massive and grew over time as Wikipedia became more template-heavy.
- Efficiency: The system parsed the entire history in 42 days at a total computation cost of approximately CHF 1,462.
- User Behavior: Figure 5 shows that the "mean relative rank" of HTML-only links in terms of click frequency centers around 0.5, meaning they are just as likely to be clicked as standard wikitext links.
Limitations and Future Work
The authors acknowledge a few constraints:
- Deleted Content: Because the dataset is derived from official wikitext dumps, it cannot include pages or templates that were deleted by Wikipedia administrators before the dump was created.
- Software Versioning: While they accounted for template changes, they used a single version of the MediaWiki software (v1.31) for all revisions. While their tests showed this had a negligible impact on HTML output, it is a slight deviation from perfect historical reconstruction.
- Language Scope: The current release is limited to English Wikipedia, though the authors have released their code to allow others to produce similar datasets for other languages.
Summary updated