FAQ do Desenvolvedor

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Developer FAQ and the translation is 48% complete.

Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎dansk • ‎español • ‎français • ‎italiano • ‎português do Brasil • ‎български • ‎русский • ‎मराठी • ‎සිංහල • ‎日本語

This FAQ is for questions that developers for MediaWiki might ask. Most of these are culled from IRC. If you have a question related to using MediaWiki, see this FAQ.

Leitura recomendada

See our MediaWiki virtual library (MVL) for virtual (PDF) and printable books (you can order printed versions on demand at your own costs).

Trabalhando o código

Como começar

Ver Como se tornar um hacker do MediaWiki.

Perguntas sobre a API

Questões sobre localização

Append "?uselang=qqx" to the end of a MediaWiki URL to see the message keys displayed on the page, not their localised messages.

Questões sobre o código

Posso agendar tarefas para executar mais tarde?

Sim, use o Job Queue.

Como usar o Job Queue?

Veja a página UploadFromUrl.php como exemplo.

Como a minha extensão pode criar uma página especial?

See $wgExtensionAliasesFiles .

Outras questões

My patch failed a Jenkins test; now what?

See Manual:PHP unit testing. Fix the problem and run a test on your end, and when it passes, submit a new patch.

I'm getting this weird "Error: Invalid magic word" message for no reason

Try changing some stuff in your LocalSettings.php (e.g. disable some extensions) and give it another try. It might just randomly start working again. This seems to have something to do with caching. Another cause of this error can be if you have a parser functions extension that doesn't put the necessary element in the $magicWords array.

Why am I getting "Notice: Undefined offset" in Database.php?

You probably messed up your join conditions.

How do I get my changes reviewed?

Use git blame on the file(s) you changed to find out who has contributed to that/those file(s) in the past. Add more than one of those contributors as reviewers; those who are not interested can remove themselves. See also Gerrit/Code review/Getting reviews.

Ver também