Extension:WikiSEO/fr

L'extension WikiSEO vous permet de remplacer, d'ajouter ou de préfixer le contenu de la balise de titre HTML. Il vous permet également d'ajouter des méta-éléments communs pour l'optimisation des moteurs de recherche (SEO ) tels que les mots clés (keywords) et description.

Une file d'attente des tâches opérationnelle est absolument nécessaire pour que cette extension fonctionne.

Utilisation
L'extension peut être utilisée via la fonction d'analyse  ou dans les modules Lua en utilisant. Elle accepte les paramètres nommés suivants dans n'importe quel ordre.



Paramètres pris en charge par tous les générateurs


Paramètres pris en charge par le générateur Metatag


Paramètres pris en charge par le générateur OpenGraph / Twitter


Paramètres avec type=article pris en charge par le générateur OpenGraph
See.



Paramètres pris en charge par le générateur Twitter
See OpenGraph Tags.



Paramètres pris en charge par le générateur de Citations
See Schema.org.

(*) these parameters are supported by all generators.

Do note that the Citation generator is not activated by default! To activate the generator add the following snippet to : $wgMetadataGenerators[] = "Citation";

Exemples


Ajouter des valeurs statiques


Ajouter des valeurs dynamiques
If you need to include variables or templates you should use the parser function to ensure they are properly parsed. This allows you to use or, with , for data entry, or for programmatic creation of a page title from existing variables or content...



Utilisation dans les modules Lua
Le module pourrait désormais s'appeler  ou.



Attributs Hreflang
Will generate the following elements:

Title Modes
Example: Page with title

Append
HTML Title result:

Prepend
HTML Title result:



Prepend (séparateur modifié)
HTML Title result:



Replace (par défaut)
HTML Title result:



Script de maintenance
WikiSEO provides a maintenance script to generate descriptions for specified pages. This script requires to be installed and active. The script will only generate descriptions for pages that don't have a  property set in the page properties table.

You can force the generation using the  flag, this will overwrite any description already present.

A list of namespace ids needs to be given in order for the script to work:

php maintenance/GenerateDescription.php 0
 * 1) Run only in main namespace

php maintenance/GenerateDescription.php --force 0
 * 1) Run only in main namespace and overwrite existing descriptions

php maintenance/GenerateDescription.php --force --cleanSentence 1234
 * 1) Run in namespace 1234, overwrite descriptions and remove dangling sentences

Configuration
Les variables suivantes sont utilisées par cette extension.

Set a default image to use if no image is set on the site. If this variable is not set the site's logo will be used.

Usage:

Array containing the metadata generator names to load.

Default:

If you only want to change the page title and add 'description', 'keywords', 'robots' tags set

Disable setting $wgLogo as a fallback image if no image for a page was set.

Defaults to `summary_large_image` for the twitter card type.

Usage: $wgTwitterCardType = 'summary';

An array of page titles where a 'noindex' robot tag should be added. Usage: $wgWikiSeoNoindexPageTitles = [ 'Custom_Title', 'Main_Page' ];

A default language code with area to generate a  for.

Usage: $wgWikiSeoDefaultLanguage = 'de-de';

If no description was given in the parser function, a short description from will be requested. A description will only be set, if the page is edited and saved. Alternatively the maintenance script  can be run from the extension folder.

Tries to remove dangling sentences from the description provided by TextExtracts. This will remove the last sentence not ending in a '.', and will result in descriptions shorter than 160 characters.



Migration de la version 1.2.2 vers la version 2.x


Balises supprimées

 * DC.date.created
 * DC.date.issued
 * google
 * name
 * og:title (automatically set)
 * og:url (automatically set)
 * twitter:card (automatically set)
 * twitter:creator
 * twitter:domain
 * article:modified_time / og:updated_time (automatically set)



Alias supprimés

 * metakeywords / metak
 * use keywords instead


 * metadescription / metad
 * use description instead


 * titlemode / title mode
 * use title_mode instead

<span id="Changed_argument_names">

Noms d'arguments modifiés

 * article:author -> author
 * article:section -> section
 * article:tag -> keywords
 * article:published_time -> published_time
 * og:image / twitter:image:src -> image
 * og:image:width -> image_width
 * og:image:height -> image_height
 * og:locale -> locale
 * og:site_name -> site_name
 * og:title -> title
 * og:type -> type
 * twitter:description -> description

<span id="Known_issues">

Problèmes connus
will add an  tag if an image is found on the page. If another image was set using WikiSEO, both  will be added to the page.

Further information:
 * https://phabricator.wikimedia.org/T300587
 * https://github.com/octfx/wiki-seo/issues/32

Setting  disables PageImages setting any   meta tags.

Additionally you can set  to overwrite the image set by PageImages with the one specified by WikiSEO.

<span id="Further_details">

Autres détails
This extension is not a drop-in replacement for the previous version of this extension from tinymighty/wiki-seo.

If you only want to override the display title on pages (not append words to it), you might also look at the DISPLAYTITLE tag in combination with the and  settings.

schema.org
The  generator will set a SearchAction property based on Special:Search.

The properties publisher and author will be set to  with the name set to the content of.

will be automatically set by fetching the latest revision timestamp. If no  is set,   will be set to the latest revision timestamp.

OpenGraph
will be automatically set by fetching the latest revision timestamp. If no  is set,   will be set to the latest revision timestamp.

Intégration
WikiSEO will use descriptions provided by.