Difference between revisions of "Template:Infobox File/type"
J McKalling (Talk | contribs) m (added the new 'scene map' type) |
J McKalling (Talk | contribs) m (renamed and reordered around a few categories) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#switch: {{lc:{{{1|}}}}} | {{#switch: {{lc:{{{1|}}}}} | ||
− | <!-- | + | <!-- Game Images --> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
| fan art = {{categorizer|category=Fan Art|label=Fan Art|nocat={{{nocat|false}}}}} | | fan art = {{categorizer|category=Fan Art|label=Fan Art|nocat={{{nocat|false}}}}} | ||
| ingame screenshot = {{categorizer|category=Ingame Screenshots|label=Ingame Screenshot|nocat={{{nocat|false}}}}} | | ingame screenshot = {{categorizer|category=Ingame Screenshots|label=Ingame Screenshot|nocat={{{nocat|false}}}}} | ||
− | | misc | + | | misc game = {{categorizer|category=Misc GameImages|label=Misc GameImage|nocat={{{nocat|false}}}}} |
| movie screenshot = {{categorizer|category=Movie Screenshots|label=Movie Screenshot|nocat={{{nocat|false}}}}} | | movie screenshot = {{categorizer|category=Movie Screenshots|label=Movie Screenshot|nocat={{{nocat|false}}}}} | ||
| promotional = {{categorizer|category=Promotional Art|label=Promotional Art|nocat={{{nocat|false}}}}} | | promotional = {{categorizer|category=Promotional Art|label=Promotional Art|nocat={{{nocat|false}}}}} | ||
− | <!-- | + | <!-- Infobox Images --> |
| character portrait = {{categorizer|category=Character Portraits|label=Character Portrait|nocat={{{nocat|false}}}}} | | character portrait = {{categorizer|category=Character Portraits|label=Character Portrait|nocat={{{nocat|false}}}}} | ||
| enemy portrait = {{categorizer|category=Enemy Portraits|label=Enemy Portrait|nocat={{{nocat|false}}}}} | | enemy portrait = {{categorizer|category=Enemy Portraits|label=Enemy Portrait|nocat={{{nocat|false}}}}} | ||
Line 18: | Line 13: | ||
| scene map = {{categorizer|category=Scene Maps|label=Scene Map|nocat={{{nocat|false}}}}} | | scene map = {{categorizer|category=Scene Maps|label=Scene Map|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}}}}} | ||
+ | <!-- Website Images --> | ||
+ | | icon = {{categorizer|category=Icons|label=Icon|nocat={{{nocat|false}}}}} | ||
+ | | misc web = {{categorizer|category=Misc WebImages|label=Misc WebImage|nocat={{{nocat|false}}}}} | ||
+ | | theme icon = {{categorizer|category=Infobox Theme Icons|label=Infobox Theme Icon|nocat={{{nocat|false}}}}} | ||
+ | | mbox icon = {{categorizer|category=Messagebox Icons|label=Messagebox Icon|nocat={{{nocat|false}}}}} | ||
<!-- Other Files --> | <!-- Other Files --> | ||
| package = {{categorizer|category=LBA Package Files|label=LBA Package File|nocat={{{nocat|false}}}}} | | package = {{categorizer|category=LBA Package Files|label=LBA Package File|nocat={{{nocat|false}}}}} | ||
Line 31: | Line 31: | ||
==Parameters== | ==Parameters== | ||
# The selected type from the following values (no parameter name and values are case insensitive): | # The selected type from the following values (no parameter name and values are case insensitive): | ||
− | #* '' | + | #* ''character portrait'' |
− | #* '' | + | #* ''enemy portrait'' |
− | + | ||
− | + | ||
#* ''fan art'' | #* ''fan art'' | ||
+ | #* ''icon'' | ||
#* ''ingame screenshot'' | #* ''ingame screenshot'' | ||
− | #* '' | + | #* ''item image'' |
+ | #* ''mbox icon'' | ||
+ | #* ''misc game'' | ||
+ | #* ''misc web'' | ||
#* ''movie screenshot'' | #* ''movie screenshot'' | ||
+ | #* ''package'' | ||
#* ''promotional'' | #* ''promotional'' | ||
− | #* '' | + | #* ''savegame'' |
− | + | ||
− | + | ||
#* ''scene map'' | #* ''scene map'' | ||
+ | #* ''theme icon'' | ||
#* ''user avatar'' | #* ''user avatar'' | ||
− | |||
− | |||
#* 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 20:34, 29 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
- The selected type from the following values (no parameter name and values are case insensitive):
- character portrait
- enemy portrait
- fan art
- icon
- ingame screenshot
- item image
- mbox icon
- misc game
- misc web
- movie screenshot
- package
- promotional
- savegame
- scene map
- theme icon
- user avatar
- 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}}
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.