Template:MediaWiki file/doc

From English Wikipedia @ Freddythechick

Usage

This template is a typing aid that creates a link to a MediaWiki source file.

Parameters

  • The only parameter is the base name of the file. The first character is automatically capitalized; if the source file name uses camel case, then |file= must use the same case.
If the base name is not defined, then the link is to the root of the MediaWiki master files.

Examples

Markup Renders as
<syntaxhighlight lang="wikitext" inline="1" style="margin:0; border:none; padding:0; word-wrap:break-word; white-space:-moz-pre-wrap; white-space:-o-pre-wrap; white-space:-pre-wrap; white-space:pre-wrap; ">{{MediaWiki file}}</syntaxhighlight>
<syntaxhighlight lang="wikitext" inline="1" style="margin:0; border:none; padding:0; word-wrap:break-word; white-space:-moz-pre-wrap; white-space:-o-pre-wrap; white-space:-pre-wrap; white-space:pre-wrap; ">{{MediaWiki file|sanitizer}}</syntaxhighlight>