Module:File/doc: Difference between revisions

From Fanon Wiki
m (Forgot to switch "infobox" on a line)
Line 14: Line 14:
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.
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.


* <code>main</code> &mdash; '''the first parameter will always need to be''' <code>main</code>, otherwise the infobox invokation will fail.
* <code>main</code> &mdash; '''the first parameter will always need to be''' <code>main</code>, otherwise the module invokation will fail.
* <code>description</code> &mdash; a summary of what the file is about.
* <code>description</code> &mdash; a summary of what the file is about.
* <code>type</code> &mdash; which type the file is about (it is not case sensitive):
* <code>type</code> &mdash; which type the file is about (it is not case sensitive):

Revision as of 16:02, 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 module 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