Extension:Wikisource
Wikisource is an extension to provide specific customizations for Wikisource wikis, including enhanced integration with Wikibase, the WS Export tool, and Wikimedia OCR.
End-user help is available at Help:Extension:Wikisource.
Prerequisites
- The Wikidata integration depends on WikibaseClient extension.
- WS Export integration depends on the WS Export tool, installation of which is documented at wikitech:Nova Resource:Wikisource/Wikisource Export.
- OCR integration depends on the ProofreadPage extension and the Wikimedia OCR tool, installation of which is documented at wikitech:Nova Resource:Wikisource/Wikimedia OCR.
Installation
- Download and move the extracted
Wikisource
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Wikisource - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'Wikisource' );
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Configuration parameters
$wgWikisourceWikibaseEditionProperty
- identifier of the Wikibase property has edition or translation (P747). By default
P747
(the identifier of this property in Wikidata). $wgWikisourceWikibaseEditionOfProperty
- identifier of the Wikibase property edition or translation of (P629). By default
P629
(the identifier of this property in Wikidata). $wgWikisourceWsExportUrl
- URL used for the sidebar links to WS Export (in $wgContentNamespaces only)
$wgWikisourceEnableOcr
- Whether to show the OCR toolbar UI. Defaults to
false
. $wgWikisourceOcrUrl
- URL of the OCR tool, linked from the toolbar when editing in the Page namespace.
![]() | This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page. |
Category:All extensions
Category:ArticleViewHeader extensions
Category:EditPage::showEditForm:initial extensions
Category:Extensions in Wikimedia version control
Category:Extensions used on Wikimedia
Category:Extensions with invalid or missing type
Category:Extensions with release branches compatibility policy
Category:Extensions without an image
Category:GPL licensed extensions
Category:GetPreferences extensions
Category:SidebarBeforeOutput extensions
Category:Stable extensions
Category:WikibaseClientSiteLinksForItem extensions