Template:File info: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
"in" to parens for groups
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 9: Line 9:
|-
|-
! License
! License
| {{#if:{{{license|}}}|{{{license}}}|unknown{{if ns|file|[[Category:Files with unknown license]]}}}}
| {{#if:{{{license|}}}
    |{{#switch:
        {{lc:{{{license}}}}}
        |cc-by-sa 3.0=[https://creativecommons.org/licenses/by-sa/3.0/ Creative Commons Attribution-ShareAlike 3.0 Unported]
        |cc-by-sa|cc-by-sa 4.0=[https://creativecommons.org/licenses/by-sa/4.0/ Creative Commons Attribution-ShareAlike 4.0 International]
        |none=No license[[Category:Files with no license]]
        |unknown=not known[[Category:Unlicensed files]]
        |#default={{{license}}}[[Category:Files with unrecognized license]]
    }}
    |unknown{{if ns|file|[[Category:Files with unknown license]]}}
}}
|-
|-
! Source
! Source
Line 15: Line 25:
|-
|-
! Affiliation
! Affiliation
| {{#if:{{{affiliation|}}}|
| {{#if:{{{affiliation|}}}
    {{{affiliation}}}{{if ns|file|
    |{{#switch:
      {{lc:{{{affiliation}}}}}
      |none|n/a={{{affiliation}}}
      |#default={{#if:{{{game|}}}|{{gamepage|{{{affiliation}}}|game={{{game}}}|p=x}}|[[{{{affiliation}}}]]}}
    }}{{if ns|file|
       {{#switch:
       {{#switch:
         {{lc:{{{affiliation}}}}}
         {{lc:{{{affiliation}}}}}
Line 22: Line 36:
         |#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 44:
|-
|-
! 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]]}}
}}
}}
|-
|-
! Notes
! Notes
| {{#if:{{{notes|}}}|{{{notes}}}}}
| {{#if:{{{notes|}}}|{{{notes}}}}}
|}<noinclude><br />{{documentation}}</noinclude>
|}{{#ifeq:{{{license}}}|unknown|
{{page notice
|type=delete
|description=has an unknown license and/or source and is unlikely to be covered under fair use. NPOWiki may not have permission to use this file. It should be replaced with an appropriate image that we have the rights to use, or the license should be specified.
|noedit=x
|links={{list|[{{fullurl:Special:Upload|wpDestFile={{PAGENAMEE}}&wpForReUpload=1}} Upload a new version]|[[Project:Policies#Files|File guidelines]]}}
}}
}}<noinclude><br />{{documentation}}</noinclude>

Latest revision as of 22:07, 6 October 2025

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, people, and/or AI that contributed to the creation of the file. If a screenshot, this can be the name of the website, and post author(s) if applicable.
  • 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".
    • You can explicitly set the license to "unknown" to mark the file as likely unlicensed for our use, adding a notice below the info box (see Category:Unlicensed files).
  • 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 the uploader is the creator of the file, you can 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" (see subtypes), "job tag", "archive", "screenshot", "war ribbon", "logo", "publication".
  • 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.
    • If the wiki's copy of the file is known to be hotlinked elsewhere, such as the NPO forums, note it in this field.

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.