Template:File

From QED

Jump to: navigation, search


Syntax

{{file|FILENAME|Text}}

or:

{{file|tag=TAG|style=STYLE|FILENAME|Text}}

where the tag and style specifications are both optional and:

  • TAG defaults to 'File'
  • STYLE is a CSS style specification.

If FILENAME or Text contains any equals signs (=), they should be replaced by {{eq}}.

If TAG, STYLE, FILENAME, or Text contains any occurrences of "{{" or "}}", each occurrence of "{{" should be replaced by "{ {" or "{{((}}", and similarly each occurrence of "}}" should be replaced by "} }" or "{{))}}".

Examples

{{file|FILENAME|Text}} produces
File: FILENAME

Text


{{file|tag=PHP|hello.php|$x {{eq}} y;}} produces
PHP: hello.php

$x = y;


{{file|tag=PHP|style=background-color:lightgray|hello.php|Text}} produces
PHP: hello.php

Text

See also

Personal tools