Module:File/doc: Difference between revisions

From Fanon Wiki
(Created page with "This module is intended to be used on File info pages. It eases the addition of types and categorizes it accordingly, with multiple fallbacks. <big>'''This module is intended to be used only on File pages.'''</big> ==How to use== <pre> {{#invoke:file|main |description = <Description of the file> |type = <Type of file> |source = <Source, origin, and/or author> }} </pre> All parameters are technically mandatory, but if any is not set (or empty), the file will be categor...")
 
m (Minor correction)
Line 35: Line 35:
<table class="table-responsive">
<table class="table-responsive">
<tr>
<tr>
<th class="p-1" style="background: #ff4242; color: #fff; border-radius: .5rem 0 0 0">Description</th>
<th style="background: #ff4242; color: #fff; border-radius: .5rem 0 0 0">Description</th>
<td class="p1">This file is about butterflies or something.</td>
<td>This file is about butterflies or something.</td>
</tr><tr>
</tr><tr>
<th class="p-1" style="background: #4292ff; color: #fff">Type</th>
<th style="background: #4292ff; color: #fff">Type</th>
<td class="p1" style="background: rgba(0,0,0,.12)">Scan</td>
<td style="background: rgba(0,0,0,.12)">Scan</td>
</tr><tr>
</tr><tr>
<th class="p-1" style="background: #f5ff42; border-radius: 0 0 0 .5rem">Source/author</th>
<th style="background: #f5ff42; border-radius: 0 0 0 .5rem">Source/author</th>
<td class="p1">Danny DeVito</td>
<td>Danny DeVito</td>
</tr>
</tr>
</table>
</table>
</div>
</div>
[[Category:Modules]]
[[Category:Modules]]

Revision as of 22:48, 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
  • 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