Template:MW file

From PeformIQ Upgrade
Revision as of 17:01, 10 February 2008 by PeterHarding (talk | contribs) (New page: <div align="center"> {| style="border: 1px solid #6666a0; border-collapse: collapse;" cellpadding="5" cellspacing="0" |- style="text-align: center; font-size: 110%; background-color: #ffcc...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
MediaWiki File: {{{1}}}
Location: {{{2}}}
Source code: Not in SVN ({{{NotInSVN}}})|[[svn:trunk/phase3{{{2}}}{{{1}}}|HEAD]]

[[svn:tags/Template:MW stable release svn/phase3{{{2}}}{{{1}}}|Template:MW stable release number]] • [[svn:tags/Template:MW legacy release svn/phase3{{{2}}}{{{1}}}|Template:MW legacy release number]] • [[svn:tags/Template:MW ancient release svn/phase3{{{2}}}{{{1}}}|Template:MW ancient release number]]}}

Classes: {{{class1}}} {{#if: | • {{{class2}}}| {{#if: | • {{{class3}}}|}}|}}|None}}

Usage

{{MW file|FILENAME|PATH|class1=CLASS|class2=CLASS|class3=CLASS|NotInSVN=REASON}}
  • FILENAME is the name of the file, including extension.
  • PATH is the path to the file including leading & trailing slashes. Root directory files should use /
  • The three class arguments are all optional, and if supplied will provide a link to the appropriate documentation. CLASS should be the class name, as used in the URL. E.g. "Parser" would generate a link to "classParser.html". I don't know the maximum no. of classes defined in a single file, so I have initially allowed for 3. More can easily be added if needed.
  • The NotInSVN argument is optional and should only be used if the file is not in SVN for some reason (I think this only applies to LocalSettings.php). REASON is the reason that is displayed in the infobox. Note that 'NotInSVN' is case sensitive!

Be careful not to include spaces on either side of the PATH/FILE/CLASS parameters.

Examples

{{MW file|index.php|/}}
MediaWiki File: index.php
Location: /
Source code: Not in SVN ({{{NotInSVN}}})|HEAD

[[svn:tags/Template:MW stable release svn/phase3/index.php|Template:MW stable release number]] • [[svn:tags/Template:MW legacy release svn/phase3/index.php|Template:MW legacy release number]] • [[svn:tags/Template:MW ancient release svn/phase3/index.php|Template:MW ancient release number]]}}

Classes: {{{class1}}} {{#if: | • {{{class2}}}| {{#if: | • {{{class3}}}|}}|}}|None}}

{{#if: true||}}


{{MW file|Article.php|/includes/|class1=Article}}
MediaWiki File: Article.php
Location: /includes/
Source code: Not in SVN ({{{NotInSVN}}})|HEAD

[[svn:tags/Template:MW stable release svn/phase3/includes/Article.php|Template:MW stable release number]] • [[svn:tags/Template:MW legacy release svn/phase3/includes/Article.php|Template:MW legacy release number]] • [[svn:tags/Template:MW ancient release svn/phase3/includes/Article.php|Template:MW ancient release number]]}}

Classes: Article {{#if: | • {{{class2}}}| {{#if: | • {{{class3}}}|}}|}}|None}}

{{#if: true||}}


{{MW file|LocalSettings.php|/|NotInSVN=created during installation}}
MediaWiki File: LocalSettings.php
Location: /
Source code: Not in SVN (created during installation)|HEAD

[[svn:tags/Template:MW stable release svn/phase3/LocalSettings.php|Template:MW stable release number]] • [[svn:tags/Template:MW legacy release svn/phase3/LocalSettings.php|Template:MW legacy release number]] • [[svn:tags/Template:MW ancient release svn/phase3/LocalSettings.php|Template:MW ancient release number]]}}

Classes: {{{class1}}} {{#if: | • {{{class2}}}| {{#if: | • {{{class3}}}|}}|}}|None}}

{{#if: true||}}


Template:Languages