Git Product home page Git Product logo

jonaskress / mediawiki-extensions-wikibasequalityconstraints Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wikimedia/mediawiki-extensions-wikibasequalityconstraints

0.0 1.0 0.0 672 KB

Github mirror of MediaWiki extension WikibaseQualityConstraints - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing

License: Other

JavaScript 0.54% PHP 98.15% Shell 0.90% CSS 0.40%

mediawiki-extensions-wikibasequalityconstraints's Introduction

Wikibase Quality Constraints

[Build Status] (https://travis-ci.org/wikimedia/mediawiki-extensions-WikibaseQualityConstraints) [Coverage Status] (https://coveralls.io/r/wikimedia/mediawiki-extensions-WikibaseQualityConstraints) [Scrutinizer Code Quality] (https://scrutinizer-ci.com/g/wikimedia/mediawiki-extensions-WikibaseQualityConstraints/?branch=master)

This is a complementary extension for the [Wikibase Quality base extension] (https://github.com/wikimedia/mediawiki-extensions-WikibaseQuality.git). It performs constraint checks in Wikibase.

Installation

If you have already installed a complementary Wikibase Quality extension you can skip the first two steps and just add the repository (second entry in "repositories" and the required version (last entry in "require") to the composer.local.json.

  • Create the file composer.local.json in the directory of your mediawiki installation.

  • Add the following lines:

{
    "repositories": [
        {
            "type": "git",
            "url": "https://gerrit.wikimedia.org/r/mediawiki/extensions/WikibaseQuality"
        },
        {
            "type": "git",
            "url": "https://gerrit.wikimedia.org/r/mediawiki/extensions/WikibaseQualityConstraints"
        }
    ],
    "require": {
        "wikibase/quality": "@dev",
        "wikibase/wikibase": "@dev",
        "wikibase/constraints": "1.x-dev"
    }
}
  • Run composer install.

  • If not already done, add the following lines to your LocalSettings.php to enable Wikibase:

$wgEnableWikibaseRepo = true;
$wgEnableWikibaseClient = false;
require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php";
  • Run php maintenance/update.php --quick.

  • Last but not least, you need to fill the constraints table - for that you need the constraints from templates script.
    Follow the instruction in the README to create a csv file.
    Run php maintenance/runScript.php extensions/Constraints/maintenance/UpdateConstraintsTable.php --csv-file <path_to_csv_file>.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.