Help:Automatic conversion of wikitext/uk

From Meta, a Wikimedia project coordination wiki
This page is a translated version of the page Help:Automatic conversion of wikitext and the translation is 36% complete.

Залежно від вікітексту у вікні редагування, при натисканні на "Зберегти сторінку" або "Зберегти зміни" вікітекст може бути автоматично модифікований перед збереженням. Результат цього автоматичного перетворення вікітексту (трансформації перед збереженням, pre-save transform) відображається при натисканні "Показати зміни". Кінцевий результат відображається при натисканні на "Попередній перегляд". Перетворення не відображається у вікні редагування (збережіть і натисніть "Редагувати" ще раз, щоб побачити результат у вікітексті).

Cases

The cases where wikitext is automatically converted include:

  • Substitution
  • Tildes:
    • ~~~ gives a signature without time or date
    • ~~~~~ gives the time and date, e.g. 08:56, 2 July 2010 (UTC)
    • ~~~~ gives a full signature, i.e. it combines ~~~ and ~~~~~
  • Pipe trick

If such code is put in a template with the intention of being applied when the template is substituted, care should be taken to prevent premature conversion of wikitext (i.e., when the template is saved). One way is to put the split code inside the parameters of the parameterized template, for example:

  • {{{{{|safesubst:}}}CURRENTTIME}}
  • {{{|~~}}}~~
  • <nowiki>~~</nowiki>~~
  • [[abc (def)|{{{|}}}]]

The last example is hardly useful, and just given to illustrate the analogy with the other two cases.

Another method is with <includeonly> tags.

Also, a template parameter can be used to control whether the conversion is applied when the template is substituted. For example, {{{{{subst1|}}}CURRENTTIME}} converts if the value of parameter subst1 is equal to subst: or safesubst:, and not if it is empty or undefined.

Обмеження

Ці автоматичні перетворення вікітексту не працюватимуть всередині <ref>...</ref> і <gallery>...</gallery>[1]

Примітки

Див. також