Template:MW file
<languages/> {{#switch:<translate></translate> | =
| #default={{#switch:<translate></translate> | ={{#if:||{{#ifeq:MW file|MW file|}}}}
| #default=Lua error: expandTemplate: template loop detected. }} {{#if: ||[[Category:MediaWiki code{{#translation:}}|MW file]]}} }} {{#if: true||[[Category:MediaWiki code{{#translation:}}|MW file]]}}
Lua error: Module:TNT:172: '''Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates'''.{{#if:<translate> 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. </translate>
{{MW file|FILENAME|PATH
|class1=CLASS
|class2=CLASS
|class3=CLASS
|...
|interface1=INTERFACE
|interface2=INTERFACE
|interface3=INTERFACE
|NotInGit=REASON
}}
- <translate> <tvar name=1>FILENAME</tvar> is the name of the file, including extension.</translate>
- <translate> If the file has been recently renamed, you can use the <tvar name=1>
stable=</tvar> and the <tvar name=2>legacy=</tvar> 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.</translate>
- <translate> If the file has been recently renamed, you can use the <tvar name=1>
- <translate> <tvar name=1>PATH</tvar> is the path to the file; do not include a leading slash, include the trailing slash.</translate> <translate> Leave it blank for files in the root directory.</translate>
- <translate> The <tvar name=1>
class</tvar> arguments are all optional, and if supplied will link to the generated documentation.</translate> <translate> <tvar name=1>CLASS</tvar> should be the class name, as used in the URL.</translate> <translate> E.g. "<tvar name=1>Parser</tvar>" would generate a link to "<tvar name=2>classParser.html</tvar>".</translate> <translate> The template allows up to six class parameters, <tvar name=1>class1-class6</tvar></translate> - <translate> <tvar name=1>INTERFACE</tvar> is similar.</translate> <translate> The template allows up to three interface parameters</translate>
- <translate> The <tvar name=1>
NotInGit</tvar> argument is optional and should only be used if the file is not in [[<tvar name=2>Special:MyLanguage/Git</tvar>|Git]] for some reason (I think this only applies to <tvar name=3>LocalSettings.php</tvar>).</translate> <translate> <tvar name=1>REASON</tvar> is the reason that is displayed in the infobox.</translate> <translate> Note that <tvar name=1>NotInGit</tvar> is case sensitive!</translate>
<translate> The [[<tvar name=1>Special:MyLanguage/Manual:Contents</tvar>|Manual]] uses this template extensively.
Examples
</translate>
{{MW file|index.php|}}
{{#switch:<translate></translate> | ={{#if:true||{{#ifeq:MW file|MW file|}}}}
| #default=Lua error: expandTemplate: template loop detected. }} {{#if: true||[[Category:MediaWiki code{{#translation:}}|Index.php]]}}
{{MW file|Article.php|includes/page/
|class1=Article
}}
{{#switch:<translate></translate> | ={{#if:true||{{#ifeq:MW file|MW file|}}}}
| #default=Lua error: expandTemplate: template loop detected. }} {{#if: true||[[Category:MediaWiki code{{#translation:}}|Article.php]]}}
{{MW file|WikiPage.php|includes/page/
|class1=WikiPage
|interface1=Page
}}
{{#switch:<translate></translate> | ={{#if:true||{{#ifeq:MW file|MW file|}}}}
| #default=Lua error: expandTemplate: template loop detected. }} {{#if: true||[[Category:MediaWiki code{{#translation:}}|WikiPage.php]]}}
{{MW file|LocalSettings.php|
|NotInGit=<translate nowrap><!--T:18--> created during installation</translate>
}}
{{#switch:<translate></translate> | ={{#if:true||{{#ifeq:MW file|MW file|}}}}
| #default=Lua error: expandTemplate: template loop detected. }} {{#if: true||[[Category:MediaWiki code{{#translation:}}|LocalSettings.php]]}}
<translate>
See also
</translate>
- {{git file}} — <translate> a simple link to a file on gerrit (from mediawiki/core or otherwise)</translate>
- {{#ifeq:Category:MediaWiki code pages without class names|
|
}}[[Special:MyLanguage/Category:MediaWiki code pages without class names|{{#if: |{{{2}}} |{{#ifexist:Translations:{{#if:Category|Category:}}MediaWiki code pages without class names/Page display title/en
|{{#if:
|{{#if:
|
|{{ Template:TNTN | nsp = 0 }}
}}
|{{ Template:TNTN }}
}}
|{{#if:
|{{#if:MediaWiki code pages without class names
|MediaWiki code pages without class names
|Category:MediaWiki code pages without class names
}}
|Category:MediaWiki code pages without class names
}}
}}}}]]{{#ifeq:Category:MediaWiki code pages without class names|
|
}} — <translate> incompletely filled pages are automatically listed by this template</translate>
Maintenance: noslash| [[Category:Template documentation pages{{#translation:}}]] }}
[[Category:Infobox templates{{#translation:}}]] [[Category:Git{{#translation:}}]] [[Category:External link templates{{#translation:}}]]