Template:Infobox style: Difference between revisions

From Totem Arts Wiki
Jump to navigation Jump to search
RaiderAlpha (talk | contribs)
Created page with "<includeonly>{{#switch:{{{1|}}} |main_box= class="infobox {{#if:{{{2|}}}|{{{2}}}}}" style="background: #0f161c; width:{{#if:{{{width|}}}|{{{width}}}|300px}}; border-spacing: 2..."
 
RaiderAlpha (talk | contribs)
m Reverted style changes
Tag: Manual revert
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{{1|}}}
<includeonly>{{#switch:{{{1|}}}
|main_box= class="infobox {{#if:{{{2|}}}|{{{2}}}}}" style="background: #0f161c; width:{{#if:{{{width|}}}|{{{width}}}|300px}}; border-spacing: 2px; text-align: left; font-size: 86%;"
 
|child_main_box= class="infobox" width="100%" style="background-color: #000; margin: 0; cellpadding: 0; padding: 0; border: 0; font-size: 92%;"
|infobox       = width: 300px;
|header_bar_main= colspan="{{#if:{{{colspan|}}}|{{{colspan}}}|2}}" style="color: #FFF; font-size: 150%; padding: 5px; background-color:#0C2E3F; text-align:{{#if:{{{text-align|}}}|{{{text-align}}}|center}}; vertical-align: middle;"
|infobox_title  = background: #155270; color: #fff; font-size: 150%; padding: 4px;
|child_main_box_collapsible= class="mw-collapsible" width="100%" style="background-color: #000; margin: 0; cellpadding: 0; padding: 0; border: 0; font-size: 92%;"
|infobox_icon  = background: #11425b;
|header_bar_main= colspan="{{#if:{{{colspan|}}}|{{{colspan}}}|2}}" style="color: #FFF; font-size: 150%; padding: 5px; background-color:#0C2E3F; text-align:{{#if:{{{text-align|}}}|{{{text-align}}}|center}}; vertical-align: middle;"
|infobox_header = background: #155270; color: #fff;
|header_bar= colspan="{{#if:{{{colspan|}}}|{{{colspan}}}|2}}" style="color: #FFF; background-color:#0C2E3F; text-align:{{#if:{{{text-align|}}}|{{{text-align}}}|center}}; vertical-align: middle; padding:3px;"
|infobox_label = background: #155270; color: #fff; width: 100px;
|infobox_label= style="text-align:left; width:36%; color:#FFF; background-color:#0C2E3F; padding:3px;"
|infobox_data   = color: #000;
|infobox_data= style="padding:3px;"
 
|nav_box= background: #000; font-size: 9pt; margin-bottom: 5px; text-align: center; width: 100%;
|navbox_title
|nav_box_wide=
|navbox_group    = background: #155270; color: #fff;
|nav_box_title= background: #0c2e3f; font-weight: bold; text-align: center; width: 100%;
|navbox_subgroup = background: #196285; color: #fff;
|nav_box_header= background: #0c2e3f; font-weight: bold; text-align: center; width: 100%;
 
|nav_box_wide_header= background-color: #B0C4DE; font-size: 95%;
}}</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.
|nav_box_header_text= padding: 0.2em 0; line-height: 1.3em;
 
|nav_box_label= background-color: #DCDCDC;
== Usage ==
|nav_box_text=
<pre>
|image_box= style="text-align: center; font-size: 90%; border-bottom: 1px solid #aaa; line-height: 1.5em;"
{{Infobox style|<!-- style code -->}}
|image_box_plain= style="text-align: center; font-size: 90%; line-height: 1.5em;"
</pre>
|internal_border= 1px dotted #aaa;
 
|section_border= 1px solid #aaa;
=== List of style codes ===
|#default=
* '''<tt><nowiki>{{Infobox style|infobox}}</nowiki></tt>''' – produces the CSS style for an infobox template with a width of 300px.
}}</includeonly><noinclude>{{Documentation}}[[Category:Templates]]</noinclude>
* '''<tt><nowiki>{{Infobox style|infobox_title}}</nowiki></tt>''' – produces the CSS style for the infobox's title bar.
* '''<tt><nowiki>{{Infobox style|infobox_header}}</nowiki></tt>''' – produces the CSS style for the infobox's headers.
* '''<tt><nowiki>{{Infobox style|infobox_label}}</nowiki></tt>''' – produces the CSS style for the infobox's data labels.
* '''<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.
 
[[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.