Wikisnap API v0.1 How to create a Wikipedia snapshot config file:
Wikisnap API v0.1
How to create a Wikipedia snapshot config file:
To generate a list of articles to go into the snapshot, we read in the wiki markup on a 'config' wiki page and ignore everything that is not in an [un]ordered list. This allows liberal commenting and overlay on top of whatever other formatting is on the wiki.
* # '' '''
A description/comment, ignored
That last item would kill "chart.png"
This format would work for any media type.
* '''en''' word or phrase * '''es''' palabra o frase
Each list (as seperated by paragraph/double newlines) describes localizations for a word/phrase. Phrases will be matched before substrings. There is no key language to each list, although using a consistent language as the first entry makes sense as a means of alphabetically organizing the lists on a page.
Having an explicit page like this avoids interlanguage link ambiguities, or inconsistencies between the one-way links between two languages. Such a page could easily be seeded by a bot from a list on one language, and tweaked. Note: this page will have ~one line for every article in the all-language snapshot.
Ex. 1
is preferred to
though both are equally valid
Ex. 2
Ex. 3
(equiv to)
While mediawiki creatively interprets the markup (starting the list over at 1.) the above looks fine from our script's point of view.
Ex. 4
(to blacklist the thai page)
We need pages for:
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.