コンテンツにスキップ

利用者:Jagav/trans

これは、記事の翻訳を補助するテンプレートです。原文とその対訳を一対一で表示します。下書き用ページでの使用を想定しています。

このテンプレートを使用すると、仕様により目次と節編集ボタンが表示されなくなります。このテンプレートを使用する際は専用のページを作成してください。

使い方

原文を入力する

原文を専用の下書き用ページに入力し、文を見出し・段落ごとに次のように加工します。

Hello, my name is User:Example.

{{利用者:Jagav/trans
| Hello, my name is User:Example.
}}

注意: 見出しを入力するときは、次のように入力します。見出しは | のあとではなく行の先頭に置かなければなりません。

{{利用者:Jagav/trans
|
== Headline ==
}}

対訳を入力する

次のように対訳を入力します。

こんにちは、私の名前は利用者:Exampleです。

{{利用者:Jagav/trans
| Hello, my name is User:Example.
| こんにちは、私の名前は利用者:Exampleです。
}}

翻訳の状態を表示する

"status" 引数を使用して翻訳の状態を表示します。

{{利用者:Jagav/trans | status = done
| Hello, my name is User:Example.
| こんにちは、私の名前は利用者:Exampleです。
}}

引数の種類と用法については、#引数をご覧ください。

対訳のみを抽出する

テキストエディタの置き換え機能などを使用して呼び出しを次のように修正します。

{{subst:利用者:Jagav/trans/o | status = done
| Hello, my name is User:Example.
| こんにちは、私の名前は利用者:Exampleです。
}}

使用例

原文を入力する(status=入力なし)
Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text

Sample text Sample text Sample text Sample text Sample text

Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text
対訳を入力する (status=ongoing)
Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text

Sample text Sample text Sample text Sample text Sample text

Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text

この段落は翻訳中です
サンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキスト

サンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキスト

翻訳完了 (status=done)
Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text

Sample text Sample text Sample text Sample text Sample text

Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text

この段落の翻訳は検証中です
サンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキスト

サンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキスト

サンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキスト

対訳を検証し、公開する準備が整った (status=verified)
Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text

Sample text Sample text Sample text Sample text Sample text

Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text Sample text

この段落は公開する準備が整いました
サンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキスト

サンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキスト

サンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキスト

対訳のみを抽出する subst
利用者:Jagav/trans/o)

サンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキスト

サンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキスト

サンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキストサンプルテキスト

引数

引数の一覧
引数 指定内容 既定値 説明
1 原文 入力されていなかった場合はエラーを出力します 翻訳する文書の原文を入力します
2 訳文 (なし) 原文の対訳を入力します
status
  • ongoing: 翻訳が進行中のとき
  • done: 翻訳が完了したとき
  • revision required: 誤訳により更なる作業が必要なとき
  • verified: 翻訳内容の検証が済み公開する準備が整ったとき
(なし) 翻訳の状態を表示します