Ī-sian tsuán-huān
Appearance
Pre-save transforms (PST) are transformations which are applied to the content before it is even saved.
They are implemented in the function preSaveTransform()
of the ContentTransformer
class.
Uikitext
For Wikitext content , the parser ’s preSaveTransform()
applies the following transformations, in order:
- Khang jī-hû
- San-tû khang jī-hû
- Bué-suî khang-kè
- Whitespace (according to PHP's rtrim()) at the end of the text is removed.
- hâng-bué
- Line endings
\r\n
as well as\r
are normalized to\n
. - Thè-uānn
{{subst:pang-bôo miâ-tshing|pang-bôo tsham-sòo}}
- Signatures
~~~
,~~~~
kap~~~~~
− Note that this order has the nontrivial effect of not allowing template substitutions within a signature.- Pipe trick
[[phabricator:T1|]]
piàn-tsó[[phabricator:T1|T1]]
[[title (topic)|]]
piàn-tsó[[title (topic)|title]]
JSON
JsonContent::preSaveTransform()
applies the following transformations, in order:
- Bí-huà JSON
- standardizes the formatting (“pretty”, i. e. split across lines and indented)
- hâng-bué
- Line endings
\r\n
as well as\r
are normalized to\n
.
See also
- Manual:ContentTransformer:preSaveTransform()
- Pre-save transforms on the Parser: