Difference between revisions of "Template:Infobox File/type"
J McKalling (Talk | contribs) |
J McKalling (Talk | contribs) (added infobox) |
||
Line 27: | 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. | ||
Line 95: | 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.