Template:MW file/nl
| MediaWiki bestand: {{{1}}} | |
|---|---|
| Locatie: | / |
| Broncode: | master • 1.44.2 • 1.43.5 • 1.39.15 |
| Classes: | Code zoeken • Documentatie zoeken |
| Dit sjabloon wordt op ongeveer 6,500+ pagina's gebruikt. Om grootschalige verstoringen en onnodige serverbelasting te voorkomen, dient elke wijziging van deze module eerst getest te worden in de /zandbak, de /testcases subpagina's of op de eigen gebruikerspagina. De geteste wijzigingen kunnen dan in één bewerking aan deze pagina worden toegevoegd. Overweeg om wijzigingen eerst op de overlegpagina te overleggen alvorens deze te implementeren. |
Toont in een blok informatie over een bestand in de kern van MediaWiki, met links with links naar de broncode in master, stabiele, legacy branches en links naar hun classes en interfaces in de gegenereerde PHP documentatie.
{{MW file|FILENAME|PATH
|class1=CLASS
|class2=CLASS
|class3=CLASS
|...
|interface1=INTERFACE
|interface2=INTERFACE
|interface3=INTERFACE
|NotInGit=REASON
}}
- FILENAME is de bestandsnaam, met het bestandstype.
- Indien het bestand recent een andere naam heeft gekregen, gebruik de parameters
stable=enlegacy=om de oude naam door te geven zodat links werken; u dient dan het gebruik van het sjabloon aan te passen als de release waarin de naam is veranderd wijzigt van master naar stabiel of legacy.
- Indien het bestand recent een andere naam heeft gekregen, gebruik de parameters
- PATH is het pad van het bestand; zonder slash vooraan, maar met slash. achteraan. Vul dit niet in bij bestanden in de map root.
- De
classargumenten zijn allemaal optioneel, indien meegegeven linkt het naar de gegenereerde documentatie. CLASS moet de 'class name' zijn, en gebruikt worden in de URL. Bijv. "Parser" genereert een link naar "classParser.html". Het sjabloon staat maximaal zes class parameters toe,class1-class6 - INTERFACE is hetzelfde. Het sjabloon staat maximaal drie interface parameters toe
- Het argument
NotInGitis optioneel en moet alleen gebruikt worden als het bestand om een of andere reden niet in Git staat. (Wij denken dat dat alleen van toepassing is opLocalSettings.php). REASON is de reden die getoond wordt in het informatie-blok. Let op,NotInGitis hoofdlettergevoelig!
Het Handboek gebruikt dit sjabloon zeer vaak.
Voorbeelden
{{MW file|index.php|}}
| MediaWiki bestand: index.php | |
|---|---|
| Locatie: | |
| Broncode: | master • 1.44.2 • 1.43.5 • 1.39.15 |
| Classes: | Code zoeken • Documentatie zoeken |
{{MW file|Article.php|includes/page/
|class1=Article
}}
| MediaWiki bestand: Article.php | |
|---|---|
| Locatie: | includes/page/ (includes/Page/ in 1.46 of later) |
| Broncode: | master • 1.44.2 • 1.43.5 • 1.39.15 |
| Classes: | Article |
{{MW file|WikiPage.php|includes/page/
|class1=WikiPage
|interface1=Page
}}
| MediaWiki bestand: WikiPage.php | |
|---|---|
| Locatie: | includes/page/ (includes/Page/ in 1.46 of later) |
| Broncode: | master • 1.44.2 • 1.43.5 • 1.39.15 |
| Classes: | WikiPage • Page |
{{MW file|LocalSettings.php|
|NotInGit=aangemaakt tijdens de installatie
}}
| MediaWiki bestand: LocalSettings.php | |
|---|---|
| Locatie: | |
| Broncode: | niet op Git (aangemaakt tijdens de installatie) |
| Classes: | |
Zie ook
- {{Git file}} — een eenvoudige link naar een bestand op Gerrit (van Mediawiki/Core of anderszins)
- Categorie:MediaWiki code pagina's zonder klassenamen — niet volledig ingevulde pagina's worden automatisch op een lijst gezet door dit sjabloon
- Category:MediaWiki code pages without namespaces — File pages without a namespace declared are automatically added here. They should probably have a namespace.
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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| File name | 1 | Name of the file, including extension. If the file has been recently renamed, you can use the stable= and the legacy= 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.
| String | required |
| File path | 2 | Path to the file; do not include a leading slash, include the trailing slash. Leave it blank for files in the root directory.
| String | required |
| Not in Git? | NotInGit | Whether the version is in Git version control (only rarely used for files like LocalSettings.php and DevelopmentSettings.php). Optional and should only be used if the file is not in Git for some reason. Reason= is the reason that is displayed in the infobox. Note that NotInGit is CASE-SENSITIVE.
| String | optional |
| Stable MediaWiki version | stable | no description | Unknown | optional |
| Legacy MediaWiki version | legacy | no description | Unknown | optional |
| LTS MediaWiki Version | lts | Long-Term Support version for MediaWiki | Unknown | optional |
| Class 1 | class1 | Class arguments are all optional, and if supplied will link to the generated documentation. Class should be the class name, as used in the URL. The template allows up to six class parameters
| String | suggested |
| Class 2 | class2 | no description | Unknown | optional |
| Class 3 | class3 | no description | Unknown | optional |
| Class 4 | class4 | no description | Unknown | optional |
| Class 5 | class5 | no description | Unknown | optional |
| Class 6 | class6 | no description | Unknown | optional |
| Interface 1 | interface1 | Similar to Class. The template allows up to three interface parameters. | Unknown | suggested |
| Interface 2 | interface2 | no description | Unknown | optional |
| Interface 3 | interface3 | no description | Unknown | optional |
| Example | example | no description | Unknown | optional |
| nodisplaytitle | nodisplaytitle | no description | Unknown | optional |