Wikibase/Extending/fr

Wikibase is a powerful and extensible piece of software, and a large amount of what it can do lies beyond the fairly stripped-down state Wikibase is in when you run your Docker images for the first time.

On this page you can take a quick, link-heavy tour of the resources available to help you extend your instance and give it the functionality you want and need it to have.

Modèles
Les modèles MediaWiki fonctionnent un peu comme des macros de texte dans le sens où ils contiennent du contenu à transclure dans d'autres pages du wiki. But their functionality can extend far beyond simple text replacement when scripting comes into play (see #Lua below).

To view the templates installed on your (or any) instance, navigate to.

While there is no single repository for MediaWiki templates, Wikipedia does offer a robust template resource page. You can find them easily by searching the web or by looking through what’s installed on any given instance of MediaWiki. When you find a template you want to use, follow these instructions to start using it on your instance.



Modèles simples
Voici quelques modèles que les utilisateurs de Wikibase trouvent souvent utiles :


 * SPARQL - mise en surbrillance de la syntaxe des requêtes SPARQL
 * Q - crée un lien direct vers un élément
 * Property - affiche un libellé traduit pour une propriété

You can also check out this helpful third-party overview of templates: ryadel.com

Powerful templates
Templates can call modules written in the Lua scripting language, making them more powerful.


 * Scribunto - enables the embedding of scripting languages into MediaWiki, currently only Lua. This enables, among other powerful applications for scripting, the use of Lua modules in templates (see above).
 * - tutoriel Lua pour MW / Scribunto
 * - Detailed references for Lua in MW/Scribunto, and the Wikibase-specific Lua API and JSON format
 * - Différences avec le Lua standard



Introduction aux extensions MediaWiki
MediaWiki’s robust software ecosystem offers a wide range of extensions, pieces of code that modify how your installation looks and works. Extensions come in many shapes and sizes, from simple and useful tweaks to large modifications in functionality; as you probably know, Wikibase is itself an extension to MediaWiki. You can browse and download many of these extensions with the MediaWiki ExtensionDistributor. These install instructions should cover most cases, but some extensions have special instructions called out separately below.

To view the extensions you currently have installed, navigate to.



Extensions de Wikibase
This section gives an overview over the available MediaWiki extensions that can extend Wikibase. See also.



Qualité des données
Les extensions suivantes vous aident à gérer la qualité des données de votre Wikibase.


 * A powerful extension that helps you impose constraints on your properties (which are actually more like guidelines) to improve the quality of your Wikibase data. See also the constraints portal which offers many constraints-oriented resources and tips on how to implement them effectively.
 * A powerful extension that helps you impose constraints on your properties (which are actually more like guidelines) to improve the quality of your Wikibase data. See also the constraints portal which offers many constraints-oriented resources and tips on how to implement them effectively.


 * Allows storing Shape Expressions Schemas on wiki pages (using ShExC syntax), as well as validating entities against those Schemas using the ShEx2 — Simple Online Validator.
 * Allows storing Shape Expressions Schemas on wiki pages (using ShExC syntax), as well as validating entities against those Schemas using the ShEx2 — Simple Online Validator.



Autres types de données
Voir et.



Importer des données
Voir.



Autres extensions

 * Ajoute une auto-suggestion utile aux propriétés lors des modifications manuelles.
 * Ajoute une auto-suggestion utile aux propriétés lors des modifications manuelles.

Gadgets
Les gadgets sont de petites modifications de l'interface que chaque utilisateur d'une instance peut choisir d'activer ou de désactiver pour sa propre utilisation. L'extension permet l'utilisation des gadgets (voir ci-dessous). You may well find that this extension is already installed on your instance, but make sure: it needs to be installed and enabled before implementing anything listed in the next section!

Some examples can be found in the and Wikidata’s installed gadgets. Here’s a guide to, and here’s how to.



General utility

 * - étend le formulaire de recherche avec beaucoup d'options complémentaires
 * - offers an optional rich-text editor (see also the project page)



Gestion du contenu et protection anti-vandalisme

 * Abuse Filter - crée des filtres pour prévenir les activités abusives de modification
 * Nuke - permet la suppression en masse des pages
 * Confirm Edit - ajoute les contrôles CAPTCHA avant de confirmer une modification
 * Tor Block - restreint l'accès aux noeuds de sortie Tor

Particulier à Wikibase

 * OAuth - implements OAuth, required for some tools to work correctly with Wikibase
 * CLDR - contains and manages locale-specific information regarding the display of data in different languages and formats
 * Universal Language Selector - permet aux utilisateurs de configurer la langue de l'interface comme ils veulent



Autres ajouts
As if templates, extensions and gadgets weren’t enough, there are many other ways you can customize your Wikibase installation. Here are some of the most commonly used.



Messages d'interface
As an administrator (with editInterface permissions), you can customize the messages displayed to the user by Wikibase. A complete list of them can be found on the Special:AllMessages page of your instance:

Consult the System message documentation for more information.

Liens de sites
Sitelinks allow Wikibase’s MediaWiki interface to link to other wikis in a more useful way than a simple hyperlink. A good example is the language selector on Wikipedia pages; it relies on sitelinks established to wikis in other languages.

Although the Docker images handle most of the config changes shown in the Wikibase install documentation, sitelinks are a notable exception.

To get sitelinks working, first work through the sitelinks section of the install doc. Then consult the sites table for further guidance.



Propriétés et déclarations triées
By default, Wikibase displays content from queries and on entity/item pages in the order in which each item was added to the database. Pour modifier l'ordre d'affichage, vous devez utiliser une liste triée des propriétés.

Learn more about it on the Sorted Properties page, and check out Wikidata’s own Sorted Properties for inspiration.

Pywikibot
For more advanced users who seek tools to help them manage their data, there’s Pywikibot. It started life as a tool made for Wikipedia but was adapted to work on other Wikimedia projects, including Wikibase installations. Pywikibot amounts to a collection of scripts that can change and manipulate data programmatically, potentially saving large amounts of manual work.

Check out the third-party wiki quick start for Pywikibot to see if it might be right for your installation.