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
(Created page with "<includeonly>{{#switch:{{lc:{{{1}}}}} |infobox=class="infobox ww-infobox" style="background-color: {{cc-color|{{{theme|allies}}}|dark}}; border: 3px solid {{cc-color|{{{theme|allies}}}|}};" |infobox_title=class="infobox wwi-title" colspan="2" style="background-color: {{cc-color|{{{theme|allies}}}}}; color: {{cc-color|{{{theme|allies}}}|text}};" |infobox_header= |infobox_image= |infobox_data= |infobox_data_label= |infobox_data_value= }}</includeonly><noinclude> Template t...") |
Trig Jegman (talk | contribs) mNo edit summary |
||
(7 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{lc:{{{1}}}}} | <includeonly>{{#switch:{{lc:{{{1}}}}} | ||
|infobox=class="infobox ww-infobox" style="background-color: {{cc-color|{{{theme|allies}}}|dark}}; border: 3px solid {{cc-color|{{{theme|allies}}}|}};" | |infobox=class="infobox ww-infobox" style="background-color: {{cc-color|{{{theme|allies}}}|dark}}; border: 3px solid {{cc-color|{{{theme|allies}}}|}};" | ||
|infobox_title=class=" | |infobox_title=class="wwi-title" colspan="2" style="background-color: {{cc-color|{{{theme|allies}}}|}}; color: {{cc-color|{{{theme|allies}}}|text}};" | ||
|infobox_header= | |infobox_header=class="wwi-header" colspan="2" style="background-color: {{cc-color|{{{theme|allies}}}|}}; border-color: {{cc-color|{{{theme|allies}}}|dark}}; color: {{cc-color|{{{theme|allies}}}|text}};" | ||
|infobox_image= | |infobox_image=class="wwi-image" colspan="2" {{#if:{{{style|}}}|style="{{{style|}}}"|}} | ||
| | |infobox_image_sprite=class="wwi-image wwi-image-sprite" colspan="2" {{#if:{{{style|}}}|style="{{{style|}}}"|}} | ||
|infobox_data_label= | |infobox_data_label=class="wwi-data-label" style="background-color: {{cc-color|{{{theme|allies}}}|light}};" | ||
|infobox_data_value= | |infobox_data_value=class="wwi-data-value" | ||
}}</includeonly><noinclude> | |infobox_data_multicolumn=class="wwi-data-multicolumn" | ||
}}</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. | |||
* <code>{<nowiki/>{Infobox style|infobox}}</code> | |||
* <code>{<nowiki/>{Infobox style|infobox_title}}</code> | |||
* <code>{<nowiki/>{Infobox style|infobox_header}}</code> | |||
* <code>{<nowiki/>{Infobox style|infobox_image}}</code> | |||
* <code>{<nowiki/>{Infobox style|infobox_image_sprite}}</code> | |||
* <code>{<nowiki/>{Infobox style|infobox_data_label}}</code> | |||
* <code>{<nowiki/>{Infobox style|infobox_data_value}}</code> | |||
* <code>{<nowiki/>{Infobox style|infobox_data_multicolumn}}</code> | |||
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> |
Latest revision as of 04:33, 29 March 2024
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}}