webplatform / mediawiki-conversion

Convert MediaWiki XML backup into structured raw text file tree
https://github.com/webplatform/docs
15 stars 4 forks source link

Attempt to import features from HTML tables into metadata #28

Open renoirb opened 8 years ago

renoirb commented 8 years ago

Those pages also has been adjusted with overview_table, so that conversion can grab the metadata.

Ensure a page that has Overview table has the table with the overview_table classname.

==Overview Table==
{| class="wikitable overview_table"
// ...

To get pages that uses transclusion, go to https://docs.webplatformstaging.org/w/index.php?title=Special:WhatLinksHere/Template:Event&namespace=0&limit=500

To get as a simple list, run in web developer console:

var out = []; 
$('#mw-whatlinkshere-list > li > a').each(function(){ var title = arguments[1].title;  out.push(title.replace(/\s/g, '_')); });
console.log(out.join("\n"));

Pages that has overview table that aren't marked as overview_table