Module:File/doc: Difference between revisions

From Fanon Wiki
m (Minor correction)
Line 29: Line 29:
** Vector: <code>vector</code>, <code>svg</code>
** Vector: <code>vector</code>, <code>svg</code>
** Video: <code>video</code>, <code>movie</code>, <code>film</code>, <code>short</code>
** Video: <code>video</code>, <code>movie</code>, <code>film</code>, <code>short</code>
** Wiki image: <code>wiki</code>
* <code>source</code> &mdash; the source, origin, and/or author of the file.
* <code>source</code> &mdash; the source, origin, and/or author of the file.



Revision as of 23:17, 17 May 2022

This module is intended to be used on File info pages. It eases the addition of types and categorizes it accordingly, with multiple fallbacks.

This module is intended to be used only on File pages.

How to use

{{#invoke:file|main
|description = <Description of the file>
|type = <Type of file>
|source = <Source, origin, and/or author>
}}

All parameters are technically mandatory, but if any is not set (or empty), the file will be categorized under specific maintenance categories, where files without description, type or source can be tracked more easily.

  • mainthe first parameter will always need to be main, otherwise the infobox invokation will fail.
  • description — a summary of what the file is about.
  • type — which type the file is about (it is not case sensitive):
    • Artwork: art, artwork
    • Audio: audio, music, song, sound
    • Fan Art: fanart
    • Flag: flag
    • Logo: logo, logotype, logomark, wordmark
    • Map: map
    • Photograph: photograph, photography, photo
    • Scan: scan, magazine
    • Screenshot: screenshot, printscreen, prtscr
    • Sprite: sprite, spritesheet
    • Vector: vector, svg
    • Video: video, movie, film, short
    • Wiki image: wiki
  • source — the source, origin, and/or author of the file.
File information
Description This file is about butterflies or something.
Type Scan
Source/author Danny DeVito