Help:Automatic conversion of wikitext/de

This page is a translated version of the page Help:Automatic conversion of wikitext and the translation is 21% complete.
MediaWiki Handbook: Inhalt, Leser, Autoren, Moderatoren, Systemadministratoren +/-

Depending on the wikitext in the edit box, when clicking on "Seite veröffentlichen" or "Änderungen veröffentlichen" the wikitext may be automatically modified before saving. The result of this automatic conversion of wikitext (pre-save transform) is shown when pressing "Änderungen zeigen". The rendering is shown with "Vorschau zeigen". The conversion does not display in the edit box (save and press Bearbeiten again to see the result in the wikitext there).

Fälle

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 provide part of the code as default value of an unused parameter. Since the empty string is a possible but for other purposes uncommon parameter name, it is usually a suitable choice for the name of this unused parameter, for example:

  • {{{{{|safesubst:}}}CURRENTTIME}}
  • {{{|~~}}}~~
  • [[abc (def)|{{{|}}}]]

The third 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.

Limits

These automatic conversions of wikitext will not work within <ref>...</ref> and <gallery>...</gallery>.[1]

Anmerkungen

Siehe auch

MediaWiki-Handbuch - deutsche Hilfe Seiten: Meta Help Meta Hilfe b: n: w:/w: q: wiktionary

Grundlagen: (Artikelnamen | Namensräume) | Einstellungen
Bearbeiten: Erste Schritte | Bearbeiten | Textgestaltung | Links | Bilder | Tabellen | Formeln | Vorlagen | Variablen | Inhaltsverzeichnis | Kategorien | Sonderzeichen | Interwiki

Diese Fußzeile bearbeiten