Difference between revisions of "Template:Infobox File"
J McKalling (Talk | contribs) m |
J McKalling (Talk | contribs) (fixed the issue where secondary infobox would cancel previous' categorization (it worked)) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>This template is used as an infobox on file pages. It should be the first in the description of the page. | + | <noinclude>{{Infobox Template |
+ | |purpose=infobox | ||
+ | |singletag=no | ||
+ | |multiline=yes | ||
+ | |gamerelated=yes <!-- mildly, game aspect references exist like "character portrait" and "adventure" --> | ||
+ | |suppressible=recursively | ||
+ | |choice=none | ||
+ | |cat1=Twinsuniverse - Media | ||
+ | |var1=infobox_messages!Infobox!active | ||
+ | |var2=maintenance_message!Infobox!active | ||
+ | }} | ||
+ | |||
+ | This template is used as an infobox on file pages. It should be the first in the description of the page. | ||
This infobox is different from the others, as this one does not show up floating at the right with a theme, it simply renders all of it's categorizers on a separate line. | This infobox is different from the others, as this one does not show up floating at the right with a theme, it simply renders all of it's categorizers on a separate line. | ||
Line 26: | Line 38: | ||
}}</nowiki> | }}</nowiki> | ||
− | </noinclude> | + | </noinclude><includeonly>{{categorizer|category=Twinsuniverse - Media|display=none|nocat={{{nocat|false}}}}}</includeonly>{{ |
+ | #if:{{#varexists:infobox_messages}}||{{#vardefine: infobox_messages|<!-- initializer -->}}}}{{ | ||
+ | #var_final: infobox_messages | | ||
+ | }} | ||
Type: <includeonly>{{Infobox File/type|{{{type|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/type|Character Portrait|nocat=true}}</noinclude> | Type: <includeonly>{{Infobox File/type|{{{type|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/type|Character Portrait|nocat=true}}</noinclude> | ||
Adventure: <includeonly>{{Infobox File/adventure|lba1={{{lba1|}}}|lba2={{{lba2|}}}|lba3={{{lba3|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/adventure|lba2=yes|nocat=true}}</noinclude> | Adventure: <includeonly>{{Infobox File/adventure|lba1={{{lba1|}}}|lba2={{{lba2|}}}|lba3={{{lba3|}}}|nocat={{{nocat|false}}}}}</includeonly><noinclude>{{/adventure|lba2=yes|nocat=true}}</noinclude> | ||
− | + | {{#vardefine:infobox_messages | |
+ | |{{#var:infobox_messages|}}{{maintenance|doclink=Infobox File|tasks={{#var:maintenance_message}}}} | ||
+ | }} | ||
<noinclude> | <noinclude> | ||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 00:14, 5 June 2014
Infobox File | |
---|---|
Purpose |
Infobox [list all] |
Single tag |
No [list all] |
Multi-line |
Yes [list all] |
Protected |
No [list all] |
Game related |
Yes [list all] |
Categorization | |
Suppressible |
Recursively [list all] |
Choice |
No choice [list all] |
Categories |
One: [list all] |
Variables | |
Names |
Multiple: [list all] |
Subpages |
This template is used as an infobox on file pages. It should be the first in the description of the page.
This infobox is different from the others, as this one does not show up floating at the right with a theme, it simply renders all of it's categorizers on a separate line.
Note: This is because the file pages don't really offer room for other than just a few lines of description. Some research is needed on how to fix this if desirable.
Parameters
- type: The type of the file; icon, image, (...) etc. (case insensitive, defaults to "unknown", see the /type subpage)
- lba1, lba2 and lba3: Whether the subject concerns said adventure (defaults to "no", see the /adventure subpage)
- nocat: Whether or not to suppress categorization under all the chosen categories (defaults to false, which means auto categorization).
Syntax
Copy and paste the following for quick use:
{{Infobox File |type= |lba1= |lba2= }}
Example
On a page for instance called "File:Felix.png":
{{Infobox File |type=Character Portrait |lba1= |lba2=yes }}
Type: Character Portrait [list all]
Adventure: Twinsen's Odyssey [list all]