Template:MW file/ja
Jump to navigation
Jump to search
MediaWiki ファイル: {{{1}}} | |
---|---|
場所: | / |
ソース コード: | master • 1.33.1 • 1.32.5 • 1.31.5 |
クラス: | コードを検索 • 説明文書を検索 |
使用法
Displays an informative box about a file in MediaWiki core, with links to its source code in master, stable, and legacy branches, and links to its classes and interfaces in the generated PHP documentation.
{{MW file|FILENAME|PATH |class1=CLASS |class2=CLASS |class3=CLASS |... |interface1=INTERFACE |interface2=INTERFACE |interface3=INTERFACE |NotInGit=REASON }}
- FILENAME は、拡張子も含むファイル名です。
- If the file has been recently renamed, you can use the
stable=
and thelegacy=
parameters to provide the old name so links work; you'll need to update the template invocation as the release in which the file was renamed moves from master->stable->legacy.
- If the file has been recently renamed, you can use the
- PATH はファイルへのパスです。先頭に / を付けず、末尾には / を付けてください。 ルート ディレクトリにあるファイルの場合は空欄のままにしてください。
- class 引数はすべて省略可能です。指定すると、生成済みの説明文書にリンクされます。 CLASS は、URL 内で使用されるため、クラス名にすべきです。 例:「Parser」を指定すると「classParser.html」へのリンクが生成されます。 このテンプレートではクラスのパラメーターを
class1
-class6
の 6 個まで指定できます。 - INTERFACE もほぼ同様です。 このテンプレートではインターフェイスのパラメーターを 4 個まで指定できます。
NotInGit
引数は省略可能です。何らかの理由でファイルが Git 内にない場合のみ使用してください (作者は、これには LocalSettings.php のみが該当すると考えます)。 REASON は、基礎情報ボックス内に表示される理由です。NotInGit
は大文字・小文字が区別されることにご注意ください!
このテンプレートは、マニュアルで広範囲にわたって使用されています。
例
{{MW file|index.php|}}
MediaWiki file: index.php | |
---|---|
Location: | |
Source code: | master • 1.33.1 • 1.32.5 • 1.31.5 |
Classes: | Find code • Find documentation |
{{MW file|Article.php|includes/page/ |class1=Article }}
MediaWiki file: Article.php | |
---|---|
Location: | includes/page/ |
Source code: | master • 1.33.1 • 1.32.5 • 1.31.5 |
Classes: | Article |
{{MW file|LocalSettings.php| |NotInGit=インストール時に作成される }}
MediaWiki file: LocalSettings.php | |
---|---|
Location: | |
Source code: | not in Git (インストール時に作成される) |
Classes: |
関連項目
- Category:MediaWiki code pages without class names - incompletely filled pages are automatically listed by this template
Maintenance: noslash