Navigation menu
Template:File Info: Difference between revisions
From Metroid Wiki
AlexBot2004 (talk | contribs) m (AlexBot2004 moved page User:AlexBot2004/File Info to Template:File Info) |
AlexBot2004 (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
{{#if:{{{meta|}}}|{{Small Notice|This file was uploaded for use in the Metroid Wiki or Help namespaces, for use in the site skin, or for testing purposes.}}}}{{#if:{{{template|}}}|{{Small Notice|This file was uploaded for use with {{#ifeq:{{{template|}}}|yes|a template|the [[Template:{{{template|}}}|{{{template|}}}]] template}}.}}}}{{#if:{{{ | {{#if:{{{meta|}}}|{{Small Notice|This file was uploaded for use in the Metroid Wiki or Help namespaces, for use in the site skin, or for testing purposes.}}}}{{#if:{{{template|}}}|{{Small Notice|This file was uploaded for use with {{#ifeq:{{{template|}}}|yes|a template|the [[Template:{{{template|}}}|{{{template|}}}]] template}}.}}}}{{#if:{{{personal|}}}|{{Small Notice|This file was uploaded by {{#ifeq:{{{personal|}}}|yes|a user|[[User:{{{personal|}}}|{{{personal|}}}]]}} for personal use.}}}} | ||
{| style="{{round|20px}} border: 2px solid #6a567a; background: #422d48; width: 100%" cellpadding=3 cellspacing=3 | {| style="{{round|20px}} border: 2px solid #6a567a; background: #422d48; width: 100%" cellpadding=3 cellspacing=3 | ||
|- | |- | ||
Line 65: | Line 65: | ||
*<code>meta</code> — For images that are exclusively used either in the Metroid Wiki namespace, Help namespace, site skin, or for testing. | *<code>meta</code> — For images that are exclusively used either in the Metroid Wiki namespace, Help namespace, site skin, or for testing. | ||
*<code>template</code> — For images that are exclusively used in templates. The template's name can be entered here and will be displayed in the notice; if <tt>yes</tt> is entered for this parameter, no template name will be displayed. | *<code>template</code> — For images that are exclusively used in templates. The template's name can be entered here and will be displayed in the notice; if <tt>yes</tt> is entered for this parameter, no template name will be displayed. | ||
*<code> | *<code>personal</code> — For personal images. The uploader's username can be entered here and will be displayed in the notice; if <tt>yes</tt> is entered for this parameter, no username will be displayed. | ||
===Example=== | ===Example=== |
Revision as of 17:28, 28 January 2023
Documentation
Usage
This template is to contain information about files uploaded to the wiki and should be included on every file page.
{{File Info |description = |game = |source = |edits = |original-name = |license = |meta = |template = |user = }}
Parameters
description
— A description of the file; this parameter is required.game
— The game or other piece of media the file pertains to, if applicable. Anything defined in Template:Game-key can be put here.source
— Where the file was found by the uploader (not where it was originally created, unless it was created by the uploader); this parameter is requirededits
— Any edits made by the uploader.original-name
— The original official file name for files that have them; for example, press images.license
— The type of file, which determines which copyright license is displayed. Options are screenshot, artwork, sprite, cover, logo, audio, model, and pd (public domain). This parameter is required; if left blank, the fair use license is displayed.
The game
and license
parameters also automatically categorize a file. For example, an image with game = Metroid Dread
and license = screenshot
will be automatically categorized under Category:Metroid Dread screenshots.
Notice parameters
The following parameters will produce a notice box above the file information box:
meta
— For images that are exclusively used either in the Metroid Wiki namespace, Help namespace, site skin, or for testing.template
— For images that are exclusively used in templates. The template's name can be entered here and will be displayed in the notice; if yes is entered for this parameter, no template name will be displayed.personal
— For personal images. The uploader's username can be entered here and will be displayed in the notice; if yes is entered for this parameter, no username will be displayed.
Example
{{File Info |description = Sprite of a [[Zoomer]] from ''[[Metroid (game)|Metroid]]''. |game = M1 |source = FCEUX screenshots |edits = Cropped to just sprite; animated from multiple frames |license = sprite }}