Help:保存前処理
| 注意: このページを編集すると、編集内容が CC0 のもとで公開されることに同意したと見なされます。詳細はパブリック・ドメインのヘルプ ページを参照してください。 |
Media Wikiのページの編集を完了して変更を公開をクリックした時、そのウィキテキストは保存される前に自動的に変更される可能性があります。
このプロセスは保存前処理と呼ばれ、差分を表示ボタンで確認可能です。
The visual rendering of the PST is shown when you click on the プレビューを表示 button.
The modified wikitext won't appear in the edit box immediately. To see the changes in the wikitext, you need to save and then press 編集 again.
例
ウィキテキストが自動的に変換される例は以下の通りです。
- Subst展開
- チルダ
~~~:時刻や日付を含まない署名を作成します。~~~~~:08:56, 2 July 2024(UTC)のような日付と時間の情報を作成します。~~~~:~~~と~~~~~の両方が表示される署名を作成します。
- パイプ トリック
When you add this code to a template, please make sure it doesn't convert wikitext too soon, like when saving the template. One way to do this is by enclosing the split code within the template's parameters. For example:
{{{{{|safesubst:}}}CURRENTTIME}}{{{|~~}}}~~<nowiki>~~</nowiki>~~[[abc (def)|{{{|}}}]]
The last example isn't very helpful, it's just there to show how it's similar to the other three examples.
他の方法として<includeonly />タグを使う方法があります。
You can also use a template parameter to decide when to apply the conversion during template substitution.
For example, {{{{{subst1|}}}CURRENTTIME}} converts if the subst1 parameter equals subst: or safesubst:, otherwise, it doesn't if the parameter is empty or undefined.
制限
<ref>...</ref>と<gallery>...</gallery>ではウィキテキストの自動変換は行われません。
関連項目