Extension:Add HTML Meta and Title/es

Category:Unmaintained extensions/es#Add%20HTML%20Meta%20and%20Title/es Category:MIT licensed extensions/es
Manual de extensiones de MediaWiki
Add HTML Meta and Title
Estado de la versión: sin mantenimientoCategory:Unmaintained extensions/es
Implementación Etiqueta Category:Tag extensions/es
Descripción Allows for easier SEO (search engine optimization) with MediaWiki.
Autor(es) Jim Wilson, Dennis Roczek (dennisroczekdiscusión)
Última versión 0.7 (2015-09-29)
MediaWiki 1.24+Category:Extensions with manual MediaWiki version
Cambios en la base de datos No
Licencia Licencia MIT
Descargar Category:Extensions in Wikimedia version control/es
<seo>
Traduce la extensión Add HTML Meta and Title si está disponible en translatewiki.net
Category:All extensions/es

The Add HTML Meta and Title extension allows for easier SEO (search engine optimization) with MediaWiki. It is based in part on the extension MetaKeywordsTag.

Usage

When you enter the following in a wiki page:

<seo title="word1,word2" metakeywords="word3,word4" metadescription="word5,word6" google-site-verification="123456789-abfd123456" />

...or the shorter...

<seo title="word1,word2" metak="word3,word4" metad="word5,word6" google-site-verification="123456789-abfd123456" />

...these words are added to the HTML title and meta headers. This makes SEO (search engine optimization) with MediaWiki easier.

For example, the above would become:

<title>word1,word2 - Wiki Name</title>         (the string "word1,word2" replaces page title)
<meta name="keywords" content="word3,word4" />
<meta name="description" content="word5,word6" />
<meta google-site-verification="123456789-abfd123456" />

(These are new meta tags - existing metas are left untouched.)

Installation

  • Descarga y mueve la carpeta AddHTMLMetaAndTitle extraída a tu directorio extensions/.
    Los desarrolladores y contribuidores de código deberían instalar la extensión desde Git en su lugar, usando:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/AddHTMLMetaAndTitle
  • Añade el siguiente código en la parte final de tu archivo LocalSettings.php :
    wfLoadExtension( 'AddHTMLMetaAndTitle' );
    
  • Yes Hecho – Navega a Special:Version en el wiki para verificar que la extensión se haya instalado correctamente.

Changelog

v0.7.0
  • added support for PHP CodeSniffer checks.
  • fixed any remaining errors and warnings.
v0.6.0
  • added Google's site verification tag.
v0.5.1
  • modified to work with MW versions 1.1.2 and up (Revision by Mic)
v0.4.0
  • have put $emt=""; in the parseSEO function because I got some nasty PHP notice for an unitialised variable...
v0.2.0
  • added htmlspecialchars() as a filter to the text that is displayed in the title and meta - anything else needed to prevent malicious people? Creo que no. (If you are an English speaker you may want to use the htmlentities PHP function, which is more restrictive.)
v0.1.0
  • Initial version - everything works.

See also

Category:HTML head extensions/es Category:Search engine optimization extensions/es
Category:All extensions/es Category:BeforePageDisplay extensions/es Category:Extensions in Wikimedia version control/es Category:Extensions with manual MediaWiki version Category:HTML head extensions/es Category:MIT licensed extensions/es Category:ParserFirstCallInit extensions/es Category:Search engine optimization extensions/es Category:Tag extensions/es Category:Unmaintained extensions/es