Template:F/doc

Extended usage
When with a "size" in parameter #3 the image display is requested, with the parameters explained there additional formatting can be performed.

The one-letter parameters can be specified in any sequence with every parameter #4 to #7 or #2, e.g 4=b and 6=l. (or ) to display the file left of the name.
 * draws a  b order around the image. This can be useful to show the extensions of the image.
 * displays the image l eft of the name. This option allows a better formatting, e.g. when more files are displayed in a list and the file names are of different length:
 * displays the image to the  r ight (has precedence over code ). E.g.  will show rightmost

is an example for usage of these formatting characters - the sequence does not matter.
 * : Independent whether the image is displayed or not, the parameter  let display plain text instead of the link. This is sometimes useful for better formatting.
 * Note:  can as well be specified with every parameter #4 to #7. When no display of the image is required,   can also be specified  with parameter #3; when parameter #2 is not needed for a display text,   can even be specified with parameter #2 (to distinguish a text of one character from a one-character-code, the text may need to be expanded e.g. with < nowiki/>).


 * : Independent whether the image is displayed or not, the plus sign can be used to prefix the file name display with the namespace.
 * No translation occurs, "File:" is used. displays, the name space as a part of the link.
 * With the minus sign  the name space is not a part of the link:  displays.
 * The name space option seems not very useful with a display name (parameter #2) but it is possible to define it that way: will display
 * If as well a  and a   sign are mistakenly defined, the   is ignored.
 * Note: Some odd combinations of  or   with   are currently not working properly, esp. with   as parameter 3. Use another, better working parameter sequence if so.


 * : When the image is displayed either left or right of the displayed file name, with  any text can be defined to separate the two items. It will replace the default separator   (or   with option l).

E.g. the sequence will show
 * : When an image should be displayed without showing the file name, this can be achieved by setting the character "Z". Parameter #1 specifies the file name, parameter #3 the size; therefore  can be set by either parameter #4 to #7 or the not needed parameter #2. Of course it is of no use to combine Z with n, l or r but it won't do any harm.

Language codes
The named parameter  enables interwiki access. Files in any Wikipedia, Wikisource, Wikibooks etc can be addressed by a link, but it is not possible to display images from outside of Commons due to technical restrictions.

The named parameter  allows to use the language switch option:

The file contains many languages. With the translated versions can be shown:

File Function Letters
This option is completely different from the description above, a value is returned instead of displaying something. By invoking the Module:File various functions can be performed. While parameter #1 specifies the file, the File Function Letter must be specified with parameter #2 or #3. Such a FFL has precedence, additional parameter settings are ignored.

Except of the mere string operations F</tt>, X</tt> and U</tt>, for files outside the commons none of the File Functions can be performed.

Example: ( file, nominally  ×  pixels, file size:  bytes; description:  bytes.)

Example:  in the description of the above file will give: Buddhist rainbow flag

Gallery style
With the File Function Letter "G" a gallery-like display can be achieved. Different possibilities exist: To display more than one picture, write e.g.

or

Style attributes can be used, See also.
 * Other versions=