Pre-save transforms/pl

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Pre-save transforms and the translation is 43% complete.
Other languages:
English • ‎dansk • ‎polski • ‎日本語

Pre-save transforms (PST) to przekształcenia treści zanim jeszcze zostanie zapisana. They are implemented in the function preSaveTransform() of the appropriate Content subclass.

Wikitekst

For Wikitext content , the parser ’s preSaveTransform() applies the following transformations, in order:

Puste znaki
Null characters are removed.
Końcowe spacje
Spacje i znaki nowej linii (na sposób funkcji PHP rtrim()) na końcu całego tekstu są usuwane.
Końce linii
Line endings \r\n as well as \r are normalized to \n.
Substitutions
{{subst:template name|template params}}
Podpisy
~~~, ~~~~ oraz ~~~~~
Pipe trick
[[phabricator:T1|]] staje się [[phabricator:T1|T1]]
[[title (topic)|]] staje się [[title (topic)|title]]

JSON

JsonContent::preSaveTransform() applies the following transformations, in order:

Beautify JSON
standardizes the formatting (“pretty”, i. e. split across lines and indented)
Końce linii
Line endings \r\n as well as \r are normalized to \n.