Parses a MediaWiki link or title.
Parses a MediaWiki link or title.
FIXME: parsing mediawiki links correctly cannot be done without a lot of configuration. Therefore, this method must not be static. It must be part of an object that is instatiated for each mediawiki instance.
FIXME: rules for links are different from those for titles. We should have distinct methods for these two use cases.
MediaWiki link e.g. "Template:Infobox Automobile"
The source language of this link
Parses a clean MediaWiki link or title like it can be found, e.g., in Wikipedia dumps.
Parses a clean MediaWiki link or title like it can be found, e.g., in Wikipedia dumps.
NOTE: Do not use this method on links but only on very clean titles.
MediaWiki link e.g. "Template:Infobox Automobile"
The source language of this link