Manual:Grupo de usuario CSS y JavaScript

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:User group CSS and JavaScript and the translation is 70% complete.
Other languages:
English • ‎español • ‎français • ‎italiano • ‎polski • ‎中文 • ‎日本語

User group CSS and JavaScript is possible since MediaWiki 1.18 (specifically r82285). This means that CSS and JavaScript can be loaded per user group. Las páginas CSS y JavaScript toman la siguiente forma, donde example es el grupo de usuario:

  • [[MediaWiki:Group-example.css]]
  • [[MediaWiki:Group-example.js]]

The special group "*" does not load MediaWiki:Group-*.js or MediaWiki:Group-*.css. To address all users, use MediaWiki:Common.js and MediaWiki:Common.css instead. The special group "user" (for logged-in users) does load MediaWiki:Group-user.js and MediaWiki:Group-user.css (though this was only introduced in MediaWiki 1.23 , Gerrit #I0ef967). Véase ResourceLoaderUserModule.php como referencia.

Ejemplos: