Manual:Live preview/pt-br

Pré-visualização ao vivo é um recurso do software MediaWiki que exibe a prévia de um artigo ou seção que está sendo editado, sem recarregar o código HTML restante do formulário.

Este possui alguns bugs, veja lista de bug da pré-visualização ao vivo para uma lista atualizada.



Ativando a pré-visualização ao vivo
Live preview is on or off depending on a setting in the "editing" tab of your user preferences page, by default off.

Vantagens

 * less incoming traffic: wikicode and all the menus are not received from the server again
 * faster response time
 * same cursor position in the editing window
 * undo/redo history in the editing window is kept

Desvantagens
Only preview area is updated, which means:


 * scripts are not executed if they do not use the  hook.
 * some parts of the interface like interlanguage links, transclusion list etc might not be updated correctly.
 * navigating in the browser history – with the preview – no longer works



Detalhes técnicos
A live preview makes use of the Parse API and the -option of the Revisions API, to submit the new version of the text in order to receive parsed preview or diff changeset in the Edit page.


 * Implementação

Since it is dynamic on the client side, it requires JavaScript to work. Should JavaScript be deactivated, the edit will preview traditionally (with page reload), even if this feature is activated. This is an instance of progressive enhancement.



Veja também

 * Requests for comment/Live preview
 * meta:Community Wishlist Survey 2021/Real Time Preview for Wikitext – a side-by-side rendering of the wikitext editor that updates automatically