Template:MediaWikiHook/ja

{{Documentation|content=

使用法の注記
{	"params": { "templatemode": { "description": "Set to nocats if hook documentation should not appear in standard MediaWiki Categories. By default, using this temmplate places the documentation page into categories: MediaWiki hooks Hooks added in MediaWiki... There are times when it is undesirable to automatically categorize the hook documentation. Examples would include when documenting a hook in an extension, or when documenting the template itself.", "label": "Template mode" },		"name": { "description": "The name of the hook. This is usually the same name as the sub-page.", "label": "Name" },		"version": { "description": "The version of MediaWiki this hook was first introduced in.", "suggested": true, "label": "Version" },		"removed": { "description": "If the hook has been removed, the version of MediaWiki that it was removed in.", "type": "string", "label": "Version removed" },		"newvarname": {}, "newvarlink": {}, "deprecated": { "description": "If the hook has been deprecated (but not removed), the version of MediaWiki that it was deprecated in.", "label": "Version deprecated" },		"rev": { "description": "SVN revision in which this hook was first introduced. If this parameter is given, it'll link to the appropriate CodeReview page (e.g. Special:Code/MediaWiki/1).", "label": "SVN revision introduced" },		"gerrit": { "description": "Gerrit change number in which this hook was first introduced. If this parameter is given, it'll link to the appropriate Gerrit changeset page (e.g. Gerrit change 1)", "suggested": true, "label": "Gerrit changeset" },		"summary": { "description": "A short description of the hook's purpose. More detailed descriptions are desirable, and should be added to the main page content.", "required": true, "label": "Summary" },		"args": { "description": "The arguments, as used at the top of the function.", "required": true, "label": "Arguments" },		"extension": { "label": "Extension" },		"source": { "description": "Location (file name/path not including ) which calls this hook in the code. Further locations can be added via source2...source10.", "suggested": true, "label": "File source" },		"source2": { "label": "File source 2" },		"source3": { "label": "File source 3" },		"source4": { "label": "File source 4" },		"source5": { "label": "File source 5" },		"source6": { "label": "File source 6" },		"source7": { "label": "File source 7" },		"source8": { "label": "File source 8" },		"source9": { "label": "File source 9" },		"source10": { "label": "File source 10" },		"sourcefunction": { "description": "Name of the function which calls this hook. Another can be added via sourcefunction2.", "suggested": true, "label": "Function source" },		"sourceclass": { "description": "Name of the class which calls this hook.", "suggested": true, "label": "Class source" },		"sourcefunction2": { "label": "Function source 2" }	},	"format": "block", "description": "A card which describes the information of a MediaWiki-registered hook.", "paramOrder": [ "templatemode", "name", "version", "removed", "newvarname", "newvarlink", "deprecated", "rev", "gerrit", "summary", "args", "extension", "source", "source2", "source3", "source4", "source5", "source6", "source7", "source8", "source9", "source10", "sourcefunction", "sourcefunction2", "sourceclass" ] }


 * name
 * フックの名前. 通常、これは下位ページと同じ名前です.


 * version
 * このフックが最初に導入された MediaWiki バージョン.


 * rev
 * このフックが最初に導入された SVN リビジョン. この属性を追加すると、対応するコードリビューのページ（Special:Code/MediaWiki/1他）に自動的にリンクします.


 * gerrit
 * このフックが最初に導入された Gerrit change 番号. この属性を追加すると、自動的に対応するGerrit changesetのページ（Gerrit change 1）にリンクします.


 * removed
 * フックが除去された場合、除去された際の MediaWiki バージョン.


 * deprecated
 * フックが廃止予定になった (ただし除去はされていない) 場合、廃止予定になった際の MediaWiki バージョン.


 * summary
 * フックの使用目的の短い説明.
 * 説明は詳しい方が望ましいので、メインページで内容を補完してください.
 * 短い説明のページを編集したら、必ずを開きテーブル2件の更新をお願いします.


 * args
 * 関数に伴って提示する引数.


 * source
 * コード内でこのフックを参照する位置（ファイル名）. 位置の追加はsource2...source10と指定する.


 * sourcefunction
 * このフックを参照する関数名. 追加にはsourcefunctionを使う.


 * sourceclass
 * このフックを参照するクラス名.


 * templatemode
 * 標準のMediaWikiカテゴリでフックの説明文章を非表示にするには、nocatsを選択.
 * 既定では、このテンプレートを使用すると、説明文書ページは以下のカテゴリに分類されます:
 * MediaWiki フック
 * MediaWiki に追加されたフック...
 * ただし説明文書を自動的に既定のカテゴリに振り分けない方がよい場合があります. その一例とは、拡張機能に含まれるフックや、テンプレート自体の説明文書の場合です.

Finding a hook's version and Gerrit ID
To populate the  and   attributes of this template, you may need to search the history of the  file.


 * 1) (From the top-level of a Git clone of MediaWiki source code)
 * 2) Find the oldest commit to   that mentions the hook:
 * 3) Find its Gerrit ID:
 * 4) Copy the change-id from the log entry into the Gerrit search box
 * 5) Select the relevant change, and get its ID
 * 6) Find out what release the hook was first included in:
 * 1) Select the relevant change, and get its ID
 * 2) Find out what release the hook was first included in:

}}