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

From Twinsuniverse
Jump to: navigation, search
m (added the new 'package' type)
(added infobox)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
{{#switch: {{lc:{{{1|}}}}}
 
{{#switch: {{lc:{{{1|}}}}}
<!-- Icon Files -->
+
<!-- Game Images -->
| icon = {{categorizer|category=Icons|label=Icon|nocat={{{nocat|false}}}}}
+
| wiki interface = {{categorizer|category=Wiki Interface|label=Wiki Interface|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}}}}}
+
<!-- Image Files -->
+
 
| fan art = {{categorizer|category=Fan Art|label=Fan Art|nocat={{{nocat|false}}}}}
 
| 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}}}}}
 
| ingame screenshot = {{categorizer|category=Ingame Screenshots|label=Ingame Screenshot|nocat={{{nocat|false}}}}}
| misc image = {{categorizer|category=Misc Images|label=Miscellaneous Image|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}}}}}
 
| 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}}}}}
<!-- Subject Files -->
+
<!-- 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 -->
 
<!-- 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 25: 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):
#* ''icon''
 
#* ''wiki interface''
 
#* ''theme icon''
 
#* ''mbox icon''
 
#* ''fan art''
 
#* ''ingame screenshot''
 
#* ''misc image''
 
#* ''movie screenshot''
 
#* ''promotional''
 
 
#* ''character portrait''
 
#* ''character portrait''
 
#* ''enemy portrait''
 
#* ''enemy portrait''
 +
#* ''fan art''
 +
#* ''holomap image''
 +
#* ''icon''
 +
#* ''ingame screenshot''
 
#* ''item image''
 
#* ''item image''
#* ''user avatar''
+
#* ''mbox icon''
 +
#* ''misc game''
 +
#* ''misc web''
 +
#* ''movie screenshot''
 
#* ''package''
 
#* ''package''
 +
#* ''promotional''
 
#* ''savegame''
 
#* ''savegame''
 +
#* ''scene map''
 +
#* ''theme icon''
 +
#* ''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).
Line 91: 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.
  
[[Category:Categorizers|file]]
 
 
</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

  1. 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}}
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.