Sablon:MW-fájl

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Template:MW file and the translation is 48% complete.

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎Türkçe • ‎català • ‎dansk • ‎español • ‎français • ‎italiano • ‎magyar • ‎polski • ‎português • ‎português do Brasil • ‎suomi • ‎čeština • ‎Ελληνικά • ‎русский • ‎українська • ‎中文 • ‎日本語 • ‎한국어

Használat

Egy infoboxot jelenít meg a MediaWiki részét képező fájlról, a forráskódra és osztályokra linkeléssel.

{{MW file|FILENAME|PATH
|class1=CLASS
|class2=CLASS
|class3=CLASS
|...
|interface1=INTERFACE
|interface2=INTERFACE
|interface3=INTERFACE
|NotInGit=REASON
}}
  • FILENAME - a fájl neve, a kiterjesztéssel együtt.
    • 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.
  • PATH is the path to the file; do not include a leading slash, include the trailing slash. Hagyd üresen a gyökérkönyvtár fájljainál.
  • The 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. E.g. "Parser" would generate a link to "classParser.html". The template allows up to six class parameters, class1-class6
  • INTERFACE is similar. The template allows up to three interface parameters
  • The NotInGit argument is optional and should only be used if the file is not in Git for some reason (I think this only applies to LocalSettings.php). REASON is the reason that is displayed in the infobox. Note that NotInGit is case sensitive!

The Manual uses this template extensively.

Példák

{{MW file|index.php|}}

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

{{MW file|LocalSettings.php|
|NotInGit=létrehozva telepítéskor
}}

Lásd még


Maintenance: noslash