Template:Infobox style: Difference between revisions

From Totem Arts Wiki
Jump to navigation Jump to search
RaiderAlpha (talk | contribs)
mNo edit summary
RaiderAlpha (talk | contribs)
m Reverted style changes
Tag: Manual revert
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{{2|}}}
<includeonly>{{#switch:{{{1|}}}


|gdi = {{#switch:{{{1|}}}
|infobox        = width: 300px;
|infobox        = width: 300px;
|infobox_title  = background: #e2c14e; color: #000;
|infobox_title  = background: #155270; color: #fff; font-size: 150%; padding: 4px;
|infobox_header = background: #e2c14e; color: #000;
|infobox_icon  = background: #11425b;
|infobox_label  = background: #e2c14e; color: #000;
|infobox_header = background: #155270; color: #fff;
|infobox_data  = background: #e2c14e; color: #000;
|infobox_label  = background: #155270; color: #fff; width: 100px;
}}
|infobox_data  = color: #000;


|nod = {{#switch:{{{1|}}}
|navbox_title
|infobox        = width: 300px;
|navbox_group    = background: #155270; color: #fff;
|infobox_title  = background: #9d1313; color: #fff;
|navbox_subgroup = background: #196285; color: #fff;
|infobox_header = background: #9d1313; color: #fff;
 
|infobox_label  = background: #9d1313; color: #fff;
}}</includeonly><noinclude>This template is used to define the CSS for the infobox and navbox template components. This is to ensure consistent appearance among articles.
|infobox_data  = color: #000;
 
}}
== Usage ==
<pre>
{{Infobox style|<!-- style code -->}}
</pre>


|#default = {{#switch:{{{1|}}}
=== List of style codes ===
|infobox       = width: 300px;
* '''<tt><nowiki>{{Infobox style|infobox}}</nowiki></tt>''' – produces the CSS style for an infobox template with a width of 300px.
|infobox_title = background: #155270; color: #fff;
* '''<tt><nowiki>{{Infobox style|infobox_title}}</nowiki></tt>''' – produces the CSS style for the infobox's title bar.
|infobox_header = background: #155270; color: #fff;
* '''<tt><nowiki>{{Infobox style|infobox_header}}</nowiki></tt>''' – produces the CSS style for the infobox's headers.
|infobox_label = background: #155270; color: #fff;
* '''<tt><nowiki>{{Infobox style|infobox_label}}</nowiki></tt>''' – produces the CSS style for the infobox's data labels.
|infobox_data   = color: #000;
* '''<tt><nowiki>{{Infobox style|infobox_data}}</nowiki></tt>''' – produces the CSS style for the infobox's data fields.
}}
* '''<tt><nowiki>{{Infobox style|navbox_title}}</nowiki></tt>''' – produces the CSS style for the navbox's title bar.
* '''<tt><nowiki>{{Infobox style|navbox_group}}</nowiki></tt>''' – produces the CSS style for the navbox's group label.
* '''<tt><nowiki>{{Infobox style|navbox_subgroup}}</nowiki></tt>''' – produces the CSS style for the navbox's subgroup label.


}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 10:07, 21 October 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.