Extension:Wikisource

Category:Extensions without an imageCategory:Extensions with invalid or missing typeCategory:GPL licensed extensions
MediaWiki extensions manual
Wikisource
Release status: stableCategory:Stable extensions
Description Wikisource-specific MediaWiki customizations
Author(s) Community Tech and Tpt
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.Category:Extensions with release branches compatibility policy
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
Help Help:Extension:Wikisource
  • $wgWikisourceHttpProxy
  • $wgWikisourceOcrUrl
  • $wgWikisourceEnableOcr
  • $wgWikisourceWikibaseEditionProperty
  • $wgWikisourceTranskribusModels
  • $wgWikisourceWikibaseEditionOfProperty
  • $wgWikisourceWsExportUrl
Quarterly downloads 8 (Ranked 108th)
Translate the Wikisource extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions

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

Installation

  • Download and move the extracted Wikisource folder to your extensions/ 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' );
    
  • Yes 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.
Category:Extensions used on Wikimedia#Wikisource
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