Module:File/doc: Difference between revisions

From Fanon Wiki
Line 19: Line 19:
** Artwork: <code>art</code>, <code>artwork</code>
** Artwork: <code>art</code>, <code>artwork</code>
** Audio: <code>audio</code>, <code>music</code>, <code>song</code>, <code>sound</code>
** Audio: <code>audio</code>, <code>music</code>, <code>song</code>, <code>sound</code>
** Box art: <code>boxart</code>, <code>box art</code>
** Fan Art: <code>fanart</code>
** Fan Art: <code>fanart</code>
** Flag: <code>flag</code>
** Flag: <code>flag</code>
Line 27: Line 28:
** Screenshot: <code>screenshot</code>, <code>printscreen</code>, <code>prtscr</code>
** Screenshot: <code>screenshot</code>, <code>printscreen</code>, <code>prtscr</code>
** Sprite: <code>sprite</code>, <code>spritesheet</code>
** Sprite: <code>sprite</code>, <code>spritesheet</code>
** User images: <code>user</code>, <code>user image</code>, <code>user img</code>
** 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>

Revision as of 15:01, 26 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
    • Box art: boxart, box art
    • 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
    • User images: user, user image, user img
    • 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