Help:Extension:GlobalCssJs/pt-br

The GlobalCssJs extension allow users to create a JavaScript page and a CSS page to be loaded in every wiki of a wiki farm. If you go to Special:Preferences >  on any wiki where the extension is enabled you'll find links to your global scripts and style sheets:  m:Special:MyPage/global.cssm:Special:MyPage/global.js On Wikimedia wikis, these global customizations are hosted on Meta-Wiki.

Variáveis
When adding scripts to your global.js, be aware that, as with gadgets, variables declared with " " are not attached to the  object: they are local variables whose scope is a wrapper function inserted by ResourceLoader to implement the global module (which is called " "). Therefore, if you plan to move a local script to the global module, and it needs to define global variables, make sure you use the syntax " " to declare them.

URLs explícitos
You will need to pass a full URL to load the script.

Para excluir uma wiki
If you want to exclude a specific wiki, e.g. English Wikisource, you can wrap all or part of your global.js with:

Exemplo: definir um idioma de interface global
Note: Extension:GlobalPreferences (if present) provides this functionality more conveniently.

Folhas de estilo globais (CSS)
Note: Any  lines must be at the top.

Personalização por tema
Currently the extension does not provide global CSS/JS for specific skins, but it is possible to customize CSS and JS for a skin globally. For CSS, you can edit the appearance of a specific skin by using classes such as "skin-vector" and "skin-monobook", which are added to the body element automatically by MediaWiki. You can use the  selector to skip just one skin, e.g.   to not apply the rule to the mobile skin.