Welcome to Wars Wiki!
Welcome, new users! For help on where to start, look at our getting started page and our manual of style. Need more help? Ask a staff member!

Template:Infobox style: Difference between revisions

From Wars Wiki
Jump to navigationJump to search
No edit summary
(Added arg for multicolumn)
Line 7: Line 7:
|infobox_data_label=class="wwi-data-label" style="background-color: {{cc-color|{{{theme|allies}}}|light}};"
|infobox_data_label=class="wwi-data-label" style="background-color: {{cc-color|{{{theme|allies}}}|light}};"
|infobox_data_value=class="wwi-data-value"
|infobox_data_value=class="wwi-data-value"
|infobox_data_multicolumn=class="wwi-data-multicolumn"
}}</includeonly><noinclude>{{TemplateStyles|Template:Infobox style/styles.css}}
}}</includeonly><noinclude>{{TemplateStyles|Template:Infobox style/styles.css}}
This template generates the CSS class and styling for all infobox templates based on the parameter passed to it.
This template generates the CSS class and styling for all infobox templates based on the parameter passed to it.
Line 16: Line 17:
* <code><nowiki>{{Infobox style|infobox_data_label}}</nowiki></code>
* <code><nowiki>{{Infobox style|infobox_data_label}}</nowiki></code>
* <code><nowiki>{{Infobox style|infobox_data_value}}</nowiki></code>
* <code><nowiki>{{Infobox style|infobox_data_value}}</nowiki></code>
* <code><nowiki>{{Infobox style|infobox_data_multicolumn}}</nowiki></code>


[[Category:Formatting templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>

Revision as of 20:12, 23 December 2023

This template uses TemplateStyles:

This template generates the CSS class and styling for all infobox templates based on the parameter passed to it.

  • {{Infobox style|infobox}}
  • {{Infobox style|infobox_title}}
  • {{Infobox style|infobox_header}}
  • {{Infobox style|infobox_image}}
  • {{Infobox style|infobox_image_sprite}}
  • {{Infobox style|infobox_data_label}}
  • {{Infobox style|infobox_data_value}}
  • {{Infobox style|infobox_data_multicolumn}}