Difference between revisions of "Template:Infobox File/type"
J McKalling (Talk | contribs) (Created page with "<includeonly> {{#switch: {{lc:{{{1|}}}}} | icon = {{categorizer|category=Icons|label=Icon|nocat={{{nocat|false}}}}} | wiki icon = {{categorizer|category=Wiki Interface|label=W...") |
J McKalling (Talk | contribs) (added infobox) |
||
(12 intermediate revisions by the same user not shown) | |||
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}}}}} |
+ | | holomap image = {{categorizer|category=Holomap Images|label=Holomap Image|nocat={{{nocat|false}}}}} | ||
+ | | ingame screenshot = {{categorizer|category=Ingame Screenshots|label=Ingame Screenshot|nocat={{{nocat|false}}}}} | ||
+ | | misc game = {{categorizer|category=Misc GameImages|label=Misc GameImage|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}}}}} | ||
+ | <!-- 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}}}}} | ||
| item image = {{categorizer|category=Item Images|label=Item Image|nocat={{{nocat|false}}}}} | | item image = {{categorizer|category=Item Images|label=Item Image|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 --> | ||
+ | | package = {{categorizer|category=LBA Package Files|label=LBA Package File|nocat={{{nocat|false}}}}} | ||
+ | | 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 14: | Line 27: | ||
|label=''unknown'' | |label=''unknown'' | ||
|reason=The '''type''' parameter specifies {{#if:{{{1|}}}|'{{lc:{{{1|}}}}}' (unknown)| no value}} }} | |reason=The '''type''' parameter specifies {{#if:{{{1|}}}|'{{lc:{{{1|}}}}}' (unknown)| no value}} }} | ||
− | }}</includeonly><noinclude> | + | }}</includeonly><noinclude>{{Infobox Template |
+ | |purpose=infobox | ||
+ | |singletag=no | ||
+ | |multiline=no | ||
+ | |gamerelated=yes | ||
+ | |suppressible=recursively | ||
+ | |choice=single | ||
+ | |cat1=Fan Art!fan art | ||
+ | |cat2=Holomap Images!holomap image | ||
+ | |cat3=Ingame Screenshots!ingame screenshot | ||
+ | |cat4=Misc GameImages!misc game | ||
+ | |cat5=Movie Screenshots!movie screenshot | ||
+ | |cat6=Promotional Art!promotional | ||
+ | |cat7=Character Portraits!character portrait | ||
+ | |cat8=Enemy Portraits!enemy portrait | ||
+ | |cat9=Item Images!item image | ||
+ | |cat10=Scene Maps!scene map | ||
+ | |cat11=User Avatars!user avatar | ||
+ | |cat12=Icons!icon | ||
+ | |cat13=Misc WebImages!misc web | ||
+ | |cat14=Infobox Theme Icons!theme icon | ||
+ | |cat15=Messagebox Icons!mbox icon | ||
+ | |cat16=LBA Package Files!package | ||
+ | |cat17=Savegame Files!savegame | ||
+ | |cat18=Files of unknown type!''unknown''!maintenance | ||
+ | |var1= | ||
+ | }} | ||
+ | |||
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. | 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== | ==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'' | #* ''character portrait'' | ||
#* ''enemy portrait'' | #* ''enemy portrait'' | ||
− | #* '' | + | #* ''fan art'' |
+ | #* ''holomap image'' | ||
+ | #* ''icon'' | ||
#* ''ingame screenshot'' | #* ''ingame screenshot'' | ||
+ | #* ''item image'' | ||
+ | #* ''mbox icon'' | ||
+ | #* ''misc game'' | ||
+ | #* ''misc web'' | ||
#* ''movie screenshot'' | #* ''movie screenshot'' | ||
+ | #* ''package'' | ||
+ | #* ''promotional'' | ||
+ | #* ''savegame'' | ||
+ | #* ''scene map'' | ||
+ | #* ''theme icon'' | ||
#* ''user avatar'' | #* ''user avatar'' | ||
#* any other (non)empty value defaults to: ''unknown'' | #* any other (non)empty value defaults to: ''unknown'' | ||
Line 73: | Line 122: | ||
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. | 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. | ||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 22:09, 5 June 2014
Infobox File/type | |
---|---|
Purpose |
Infobox [list all] |
Single tag |
No [list all] |
Multi-line |
No [list all] |
Protected |
No [list all] |
Game related |
Yes [list all] |
Categorization | |
Suppressible |
Recursively [list all] |
Choice |
Single category [list all] |
Categories |
Multiple: [list all] |
|
|
Variables | |
Names |
none [list all] |
Subpages |
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
- holomap image
- 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.