Difference between revisions of "Template:Infobox File/type"

From Twinsuniverse
Jump to: navigation, search
m (added the new 'promotional' type)
m (added the new 'savegame' type)
Line 17: Line 17:
 
| item image = {{categorizer|category=Item Images|label=Item Image|nocat={{{nocat|false}}}}}
 
| item image = {{categorizer|category=Item Images|label=Item Image|nocat={{{nocat|false}}}}}
 
| user avatar = {{categorizer|category=User Avatars|label=User Avatar|nocat={{{nocat|false}}}}}
 
| user avatar = {{categorizer|category=User Avatars|label=User Avatar|nocat={{{nocat|false}}}}}
 +
<!-- Other Files -->
 +
| savegame = {{categorizer|category=Savegame Files|label=Savegame File|nocat={{{nocat|false}}}}}
 
| {{maintenance task|nocat={{{nocat|false}}}
 
| {{maintenance task|nocat={{{nocat|false}}}
 
     |category=Files of unknown type
 
     |category=Files of unknown type
Line 40: Line 42:
 
#* ''item image''
 
#* ''item image''
 
#* ''user avatar''
 
#* ''user avatar''
 +
#* ''savegame''
 
#* any other (non)empty value defaults to: ''unknown''
 
#* any other (non)empty value defaults to: ''unknown''
 
* '''nocat''': Whether or not to suppress categorization under the chosen category (defaults to false, which means auto categorization).
 
* '''nocat''': Whether or not to suppress categorization under the chosen category (defaults to false, which means auto categorization).

Revision as of 11:54, 17 January 2013

This template offers a multiple choice for defining the type category of a file page. It can also automatically categorize a page under that category.

Parameters

  1. The selected type from the following values (no parameter name and values are case insensitive):
    • icon
    • wiki interface
    • theme icon
    • mbox icon
    • fan art
    • ingame screenshot
    • misc image
    • movie screenshot
    • promotional
    • character portrait
    • enemy portrait
    • item image
    • user avatar
    • savegame
    • any other (non)empty value defaults to: unknown
  • nocat: Whether or not to suppress categorization under the chosen category (defaults to false, which means auto categorization).


Note: more category values may be added, provided the category pages in question are also created and organized into a logical category structure.

Syntax

{{Infobox File/type|value}}

Examples

Any of the above values may be used like this:

{{Infobox File/type|icon}}
{{Infobox File/type|character portrait}}
{{Infobox File/type|item image}}
{{Infobox File/type|user avatar}}
Icon [list all]
Character Portrait [list all]
Item Image [list all]
User Avatar [list all]


The case of the value is not important:

{{Infobox File/type|uSER aVATar}}
User Avatar [list all]


You may leave the "type" undefined (which would raise the Files of unknown type maintenance task) by not specifying any valid value, so these all have the same result:

{{Infobox File/type}}
{{Infobox File/type|}}
{{Infobox File/type|document}}
{{Infobox File/type|word}}
{{Infobox File/type|pdf}}
{{Infobox File/type|monospaced}}
{{Infobox File/type|arial}}
{{Infobox File/type|savegame}}
unknown [list all]


The nocat parameter may be used to suppress automatic categorization like this (any value will do):

{{Infobox File/type|icon|nocat=true}}

This would render the same result as the first example above, but would not automatically categorize under Category:Icons. This feature works both on valid values and the maintenance task mentioned above.