Упутство:Преглед уживо

From mediawiki.org
This page is a translated version of the page Manual:Live preview and the translation is 65% complete.

Преглед уживо је могућност Медијавикија који омогућава приказивања претпрегледа странице или секције током измене без поновног учитавања странице.

It has some bugs, see live preview tracking bug for an up to date list.

Омогућавање прегледа уживо

Ова могућност се може укључити или искључити подешавањем унутар таба "уређивање" у вашим корисничким подешавањима. По подразумеваним подешавањима, ова могућност је искључена.

Предности

  • мањи проток: викикод и остало се не преузима поново са сервера
  • брже учитавање
  • иста позиција курсора у прозору за уређивање.
  • undo/redo history in the editing window is kept

Мане

Ажурира се само област за преглед, што значи:

  • scripts are not executed if they do not use the wikipage.content 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

Технички детаљи

A live preview makes use of the Parse API and the difftotext-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.

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.

Види још