As an anonymous user, you can only add new data. If you would like to also modify existing data, please create an account and indicate your languages on your user page.

Help:Installing from scratch

From OmegaWiki
Jump to: navigation, search

Contents

[edit] Installation of MediaWiki

  1. Checkout a copy of MediaWiki
  2. Configure MediaWiki the normal way [1].

[edit] Installation of Wikidata

  1. Checkout a copy of the latest "Wikidata" extension
  2. In order to create the tables in the database relating to Wikidata
    go to /extensions/Wikidata/Console
    run php installWikidata.php --prefix=uw --template=wikidataTemplate.sql --datasetname="OmegaWiki community"
    you can change the prefix and the datasetname to whatever you like. It has not been tested, but it should work...

[edit] Configuration of Wikidata

  • Edit your LocalSettings.php and add:
require_once("$IP/extensions/Wikidata/App.php");

$wgCapitalLinks = false;

$wgExtraNamespaces = array(
        16 => 'Expression',
        17 => 'Expression_talk',
        24 => 'DefinedMeaning',
        25 => 'DefinedMeaning_talk',
);

$wdHandlerPath = "$IP/extensions/Wikidata/OmegaWiki/";
$wdHandlerClasses = array(
        24 => 'DefinedMeaning',
        16 => 'OmegaWiki',
);
  • Also add the following (the numbers may vary), as suggested by the install script:
$wgDefaultClassMids = array(37);
$wgIso639_3CollectionId = 35;
  • $wgDefaultClassMids should correspond to the DM number of the expression called "lexical item".
    If you edit that expression, in the Section "Class attributes", you can add annotations that will be available for all languages (by default, this is only possible for bureaucrats, see below). For example:
    - Level: SynTrans , Attribute: IPA , Type: Plain Text. Note: you have to define the word "IPA" first
    - Level: SynTrans , Attribute: etymology , Type: Translatable Text.
    - Level: SynTrans , Attribute: part of speech , Type: Option list.
    - Level: DefinedMeaning , Attribute: image , Type: Link.

[edit] Further configuration

[edit] Languages

  • To add other languages
    • Use the language manager ( Special:Languages )
    • If you add a DM for that language, and add it to the "ISO 639-3 collection" with its ISO code, it will be used to translate the language name according to the interface language ( Use Special:ImportLangNames ).

[edit] User rights

Default user rights are as follows:

$wgGroupPermissions['wikidata-omega']['editwikidata-uw'] = true;
$wgGroupPermissions['wikidata-omega']['deletewikidata-uw'] = true;
$wgGroupPermissions['wikidata-copy']['wikidata-copy'] = true;
$wgGroupPermissions['wikidata-omega']['wikidata-copy'] = true;
$wgGroupPermissions['bureaucrat']['languagenames'] = true;
$wgGroupPermissions['bureaucrat']['addcollection'] = true;
$wgGroupPermissions['bureaucrat']['editClassAttributes'] = true;
$wgGroupPermissions['bureaucrat']['exporttsv'] = true;
$wgGroupPermissions['bureaucrat']['importtsv'] = true;
  • 'editwikidata-uw': rights to edit the Wikidata pages and add new data. This permission can be given to anonymous users.
  • 'deletewikidata-uw': rights to modify existing data, such as change a definition or remove a translation.
  • 'languagenames': rights to add new languages via Special:Languages, and update the translations via Special:ImportLangNames.
  • 'addcollection': rights to add a collection via Special:AddCollection.
  • 'editClassAttributes': rights to add attributes to a class.
Personal tools
Namespaces

Variants
Actions
Navigation
Contributing
Toolbox
  • What links here
  • Related changes
  • Special pages
  • Printable version