Template:Infobox style: Difference between revisions

From Totem Arts Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#switch:{{{1|}}}
<includeonly>{{#switch:{{{1|}}}


|infobox        = width: 300px;
|infobox        =  
|infobox_title  = color: #fff; font-size: 150%; padding: 4px;
|infobox_title  = font-size: 150%; padding: 4px;
|infobox_icon  =  
|infobox_icon  =  
|infobox_header = color: #fff;
|infobox_header =  
|infobox_label  = color: #fff; width: 100px;
|infobox_label  = width: 100px;
|infobox_data  = color: #000;
|infobox_data  =  


|navbox_title
|navbox_title

Revision as of 18:55, 26 April 2022

This template is used to define the CSS for the infobox and navbox template components. This is to ensure consistent appearance among articles.

Usage

{{Infobox style|<!-- style code -->}}

List of style codes

  • {{Infobox style|infobox}} – produces the CSS style for an infobox template with a width of 300px.
  • {{Infobox style|infobox_title}} – produces the CSS style for the infobox's title bar.
  • {{Infobox style|infobox_header}} – produces the CSS style for the infobox's headers.
  • {{Infobox style|infobox_label}} – produces the CSS style for the infobox's data labels.
  • {{Infobox style|infobox_data}} – produces the CSS style for the infobox's data fields.
  • {{Infobox style|navbox_title}} – produces the CSS style for the navbox's title bar.
  • {{Infobox style|navbox_group}} – produces the CSS style for the navbox's group label.
  • {{Infobox style|navbox_subgroup}} – produces the CSS style for the navbox's subgroup label.