Difference between revisions of "Template:Infobox File"

From Twinsuniverse
Jump to: navigation, search
(added the infobox messages feature manually)
(fixed the issue where secondary infobox would cancel previous' categorization (it worked))
 
(2 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>{{#vardefine: infobox_messages|<!-- initializer -->}}{{
+
</noinclude><includeonly>{{categorizer|category=Twinsuniverse - Media|display=none|nocat={{{nocat|false}}}}}</includeonly>{{
 +
#if:{{#varexists:infobox_messages}}||{{#vardefine: infobox_messages|<!-- initializer -->}}}}{{
 
#var_final: infobox_messages |
 
#var_final: infobox_messages |
 
}}
 
}}
Line 37: Line 50:
 
<noinclude>
 
<noinclude>
  
[[Category:Infoboxes|File]]
 
 
</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]

  • infobox_messages [template] (active)
  • maintenance_message [template] (active)
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]