Template:Infobox row: Difference between revisions
Jump to navigation
Jump to search
(added subheader text color parameter) |
(added full rows and alternating types; subheaders to 2 rows to preserve the alterating bg-colour in Template:Infobox Wiki) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{{type}}} | <includeonly>{{#switch: {{{type}}} | ||
| subheader = {{!-}} | | subheader = {{!-}} | ||
! colspan=2 style="background-color:{{{color|darkgrey}}};color:{{{text color|black}}};font-weight:{{{weight|normal}}};text-align:{{{align|left}}};{{{style|}}}" {{!}} {{{1}}}<!-- | ! colspan=2 rowspan=2 style="background-color:{{{color|darkgrey}}};color:{{{text color|black}}};font-weight:{{{weight|normal}}};text-align:{{{align|left}}};{{{style|}}}" {{!}} {{{1}}} | ||
-->| {{!-}}{{#if: {{{1|}}} | style = "vertical-align:top;{{{style|}}}" | {{!-}} | ||
{{!}}<!-- | |||
--> | |||
| full rows = {{!-}}{{#if: {{{1|}}} | style="vertical-align:top;{{{style|}}}" | |||
{{!}} colspan=2 style="font-weight:{{{weight|normal}}};text-align:{{{align|center}}};" {{!}} {{{title|}}} | |||
{{!-}} style="vertical-align:top;{{{style|}}}" | |||
{{!}} colspan=2 style="text-align:{{{align|center}}}" {{!}} {{{1}}}}}<!-- | |||
--> | |||
| alternating = {{!-}} style="vertical-align:top;{{{style|}}}" | |||
{{!}} rowspan=2 {{!}} {{{1|}}} | |||
{{!-}} style="vertical-align:top;{{{style|}}}" | |||
{{!}} {{{2|}}}<!-- | |||
--> | |||
| {{!-}}{{#if: {{{1|}}} | style = "vertical-align:top;{{{style|}}}" | |||
{{!}} {{{title}}} {{!!}} {{{1}}}}}}}</includeonly> | {{!}} {{{title}}} {{!!}} {{{1}}}}}}}</includeonly> | ||
<noinclude>For instructions, see [[Template:Infobox Wiki]]. | <noinclude>For instructions, see [[Template:Infobox Wiki]]. | ||
[[Category:Infobox templates|*]]</noinclude> | [[Category:Infobox templates|*]]</noinclude> |
Revision as of 18:05, 27 May 2024
For instructions, see Template:Infobox Wiki.