Template:MW file/nl

From mediawiki.org
This page is a translated version of the page Template:MW file and the translation is 100% complete.

Template documentation

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= en legacy= 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.
  • 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 class argumenten 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 NotInGit is 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 op LocalSettings.php). REASON is de reden die getoond wordt in het informatie-blok. Let op, NotInGit is hoofdlettergevoelig!

Het Handboek gebruikt dit sjabloon zeer vaak.

Voorbeelden

{{MW file|index.php|}}

{{MW file|Article.php|includes/page/
|class1=Article
}}


{{MW file|WikiPage.php|includes/page/
|class1=WikiPage
|interface1=Page
}}


{{MW file|LocalSettings.php|
|NotInGit=aangemaakt tijdens de installatie
}}

Zie ook

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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
nodisplaytitlenodisplaytitle

no description

Unknownoptional
File name1

no description

Unknownrequired
File path2

no description

Unknownrequired
Not in Git?NotInGit

Whether the version is in Git version control (only rarely used for files like LocalSettings.php and DevelopmentSettings.php)

Booleanoptional
Stable MediaWiki versionstable

no description

Unknownoptional
Legacy MediaWiki versionlegacy

no description

Unknownoptional
LTS MediaWiki Versionlts

Long-Term Support version for MediaWiki

Unknownoptional
Class 1class1

no description

Unknownsuggested
Class 2class2

no description

Unknownoptional
Class 3class3

no description

Unknownoptional
Class 4class4

no description

Unknownoptional
Class 5class5

no description

Unknownoptional
Class 6class6

no description

Unknownoptional
Interface 1interface1

no description

Unknownsuggested
Interface 2interface2

no description

Unknownoptional
Interface 3interface3

no description

Unknownoptional
Exampleexample

no description

Unknownoptional

Maintenance: noslash