Template:Infobox row: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(moved subheader styling from Template:Infobox Wiki to avoid leaking)
(if alternating type, width of cols should be 50%)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{{type}}}
<includeonly>{{#switch: {{{type}}}
| subheader = {{!-}}
| subheader = {{!-}}
! colspan=2 style="background-color:{{{color|darkgrey}}};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 style="width:50%" {{!}} {{{1|}}}
{{!-}} style="vertical-align:top;{{{style|}}}"
{{!}} style="width:50%" {{!}} {{{2|}}}<!--
 
-->
| {{!-}}{{#if: {{{1|}}} | style = "vertical-align:top;{{{style|}}}"
{{!}} {{{title}}} {{!!}} {{{1}}}}}}}</includeonly>
{{!}} {{{title}}} {{!!}} {{{1}}}}}}}</includeonly>
<noinclude>{{UnderConstruction|Jovenan}}
<noinclude>For instructions, see [[Template:Infobox Wiki]].
</noinclude>
 
[[Category:Infobox templates|*]]</noinclude>

Latest revision as of 19:04, 27 May 2024

For instructions, see Template:Infobox Wiki.