Template:Infoboxframe

From HoloNet
Jump to navigationJump to search
File:Dialog-warning.svg

This template was made obsolete by the conversion to portable infoboxes in December 2015. It's retained here for historical purposes only. It should not be used on new templates.

This is a framing wrapper template used in the construction of infoboxes. It takes the parameters width, BG1, and src. The actual contents of the frame - the instances of {{Infocell}} - should be put as the first unnamed parameter.

  • width is used to pass the infobox's own width parameter to this template.
  • BG1 sets the infobox color and should match other values of BG1 in the infobox.
  • divid needs the type of infobox to fill the div id. Typically it's the source type of infobox, like "Character_infobox".
  • src needs the infobox's full name, including Template: to fill the [Source] button.
  • event is a parameter that will change the infobox to a flexible-width. This should only be used for event infoboxes.

Standard example:

{{Infoboxframe
| put the infocell templates here
|BG1=333333
|divid=Character_infobox
|src=Template:New infobox
|width={{{width|}}}
}}

Event example:

{{Infoboxframe
| put the infocell templates here
|BG1=333333
|divid=Character_infobox
|src=Template:New infobox
|event=yes
|width={{{width|}}}
|field3={{{side3|}}}
|field4={{{side4|}}}
}}