Template:File info: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
("in" to parens for groups)
(link affiliation)
Line 15: Line 15:
|-
|-
! Affiliation
! Affiliation
| {{#if:{{{affiliation|}}}|
| {{#if:{{{affiliation|}}}
     {{{affiliation}}}{{if ns|file|
     |{{#if:{{{game|}}}|{{gamepage|{{{affiliation}}}|game={{{game}}}|p=x}}|[[{{{affiliation}}}]]}}{{if ns|file|
       {{#switch:
       {{#switch:
         {{lc:{{{affiliation}}}}}
         {{lc:{{{affiliation}}}}}
Line 22: Line 22:
         |#default=[[Category:{{{affiliation}}} {{#if:{{{game|}}}|({{abbrgame|{{{game}}}|full}})}} files]]
         |#default=[[Category:{{{affiliation}}} {{#if:{{{game|}}}|({{abbrgame|{{{game}}}|full}})}} files]]
       }}
       }}
     }}|
     }}
     unknown{{if ns|file|[[Category:Files with unknown affiliation]]}}
     |unknown{{if ns|file|[[Category:Files with unknown affiliation]]}}
}}
}}
|-
|-
Line 30: Line 30:
|-
|-
! Type
! Type
| {{#if:{{{type|}}}|
| {{#if:{{{type|}}}
     {{{type}}}{{if ns|file|
     |{{{type}}}{{if ns|file|
       {{#ifeq:{{lc:{{{type}}}}}|other|[[Category:Other type files]]|[[Category:{{{type}}} files]]}}
       {{#ifeq:{{lc:{{{type}}}}}|other|[[Category:Other type files]]|[[Category:{{{type}}} files]]}}
     }}|
     }}
     unknown{{if ns|file|[[Category:Files with unknown type]]}}
     |unknown{{if ns|file|[[Category:Files with unknown type]]}}
}}
}}
|-
|-

Revision as of 09:31, 18 July 2020

File Information
Description
Author unknown
License unknown
Source
Affiliation unknown
Related Game N/A
Type unknown
Notes


Documentation [edit]

This template is used on file pages to format and display information about files in a consistent manner. It automatically adds categories based on the information, so you shouldn't need to add categories manually in most cases.

Parameters

Please fill out the fields to the best of your knowledge, but do not guess. For any that you don't know, leave the field blank.

  • description: A brief description of the file's contents, if the file name is not clear enough.
  • author: The person or people who contributed to the creation of the file.
  • license: The license and usage permissions of the file. If it is a commonly used license, simply enter the name and information will be displayed automatically. If there is explicitly no license, enter "none".
  • source: The URL where the file was obtained, or the person who provided it, if they are the creator. If possible, link to the original source, not a repost. If you are the creator of the file, enter "self".
  • affiliation: The group with which the file is associated. Please spell out abbreviations and capitalize correctly. If it is not an image officially used by a group, enter "none".
  • game: The game with which the file is associated. If none, leave blank.
  • type: The usage type of the file. For example, "avatar", "flag", "job tag", "war ribbon", "logo", "screenshot", or "other".
  • notes: Any miscellaneous notes which are important to the file and not covered in other fields. For example, alternative versions, any modifications made before uploading it, or items of interest it features.

The above is transcluded from Template:File info/usage.

Skeleton

{{File info
|description = 
|author      = 
|license     = 
|source      = 
|affiliation = 
|game        = 
|type        = 
|notes       = 
}}

The above documentation is transcluded from Template:File info/doc.