5 066 byte lagt til,
16. mai 2016 kl. 12:36 m<includeonly>{{#ifeq:{{{5|x}}}|x|
<tr class="{{#if:{{{rclass|}}}|{{{rclass}}}|rad}}" valign="top" {{#if:{{{rstyle|}}}| style="{{{rstyle}}}"}}>
{{#ifeq:{{{1|}}}x|x||
<td {{#if:{{{span1|}}}| colspan="{{{span1}}}"}} {{#if:{{{rspan1|}}}| rowspan="{{{rspan1}}}"}} {{#if:{{{width1|}}}| width="{{{width1}}}"}} {{#if:{{{class1|}}}| class="{{{class1}}}"}} {{#if:{{{style1|}}}{{{width1|}}}| style="{{#if:{{{width1|}}}|width:{{{width1}}};}}{{{style1}}}"}}>{{{1}}}</td>
{{#ifeq:{{{2|}}}x|x||
<td {{#if:{{{span2|}}}| colspan="{{{span2}}}"}} {{#if:{{{rspan2|}}}| rowspan="{{{rspan2}}}"}} {{#if:{{{width2|}}}| width="{{{width2}}}"}} {{#if:{{{class2|}}}| class="{{{class2}}}"}} {{#if:{{{style2|}}}{{{width2|}}}| style="{{#if:{{{width2|}}}|width:{{{width2}}};}}{{{style2}}}"}}>{{{2}}}</td>
{{#ifeq:{{{3|}}}x|x||
<td {{#if:{{{span3|}}}| colspan="{{{span3}}}"}} {{#if:{{{rspan3|}}}| rowspan="{{{rspan3}}}"}} {{#if:{{{width3|}}}| width="{{{width3}}}"}} {{#if:{{{class3|}}}| class="{{{class3}}}"}} {{#if:{{{style3|}}}{{{width3|}}}| style="{{#if:{{{width3|}}}|width:{{{width3}}};}}{{{style3}}}"}}>{{{3}}}</td>
{{#ifeq:{{{4|}}}x|x||
<td {{#if:{{{span4|}}}| colspan="{{{span4}}}"}} {{#if:{{{rspan4|}}}| rowspan="{{{rspan4}}}"}} {{#if:{{{width4|}}}| width="{{{width4}}}"}} {{#if:{{{class4|}}}| class="{{{class4}}}"}} {{#if:{{{style4|}}}{{{width4|}}}| style="{{#if:{{{width4|}}}|width:{{{width4}}};}}{{{style4}}}"}}>{{{4}}}</td>
}}
}}
}}
}}
</tr>
|
{{#ifeq:{{{1|}}}x|x||
<tr class="{{#if:{{{rclass|}}}|{{{rclass}}}|rad}}" valign="top" {{#if:{{{rstyle|}}}| style="{{{rstyle}}}"}}>
{{#ifeq:{{{2|}}}x|x||
<td {{#if:{{{span1|}}}| colspan="{{{span1}}}"}} {{#if:{{{rspan1|}}}| rowspan="{{{rspan1}}}"}} {{#if:{{{width1|}}}| width="{{{width1}}}"}} {{#if:{{{class1|}}}| class="{{{class1}}}"}} {{#if:{{{style1|}}}{{{width1|}}}| style="{{#if:{{{width1|}}}|width:{{{width1}}};}}{{{style1}}}"}}>{{{2}}}</td>
{{#ifeq:{{{3|}}}x|x||
<td {{#if:{{{span2|}}}| colspan="{{{span2}}}"}} {{#if:{{{rspan2|}}}| rowspan="{{{rspan2}}}"}} {{#if:{{{width2|}}}| width="{{{width2}}}"}} {{#if:{{{class2|}}}| class="{{{class2}}}"}} {{#if:{{{style2|}}}{{{width2|}}}| style="{{#if:{{{width2|}}}|width:{{{width2}}};}}{{{style2}}}"}}>{{{3}}}</td>
{{#ifeq:{{{4|}}}x|x||
<td {{#if:{{{span3|}}}| colspan="{{{span3}}}"}} {{#if:{{{rspan3|}}}| rowspan="{{{rspan3}}}"}} {{#if:{{{width3|}}}| width="{{{width3}}}"}} {{#if:{{{class3|}}}| class="{{{class3}}}"}} {{#if:{{{style3|}}}{{{width3|}}}| style="{{#if:{{{width3|}}}|width:{{{width3}}};}}{{{style3}}}"}}>{{{4}}}</td>
{{#ifeq:{{{5|}}}x|x||
<td {{#if:{{{span4|}}}| colspan="{{{span4}}}"}} {{#if:{{{rspan4|}}}| rowspan="{{{rspan4}}}"}} {{#if:{{{width4|}}}| width="{{{width4}}}"}} {{#if:{{{class4|}}}| class="{{{class4}}}"}} {{#if:{{{style4|}}}{{{width4|}}}| style="{{#if:{{{width4|}}}|width:{{{width4}}};}}{{{style4}}}"}}>{{{5}}}</td>
}}
}}
}}
}}
</tr>
}}
}}</includeonly><noinclude>
'''Infoboks 4rad''' angir en rad i en infoboks med inntil fire celler. I tillegg kan det angis en parameter som brukes for å teste om raden skal skrives ut.
;Parametre, alt 1; uten test
''1'' – innholdet for celle1
''2'' – innholdet for celle2
''3'' – innholdet for celle3
''4'' – innholdet for celle4
;Parametre, alt 2; med test
''1'' – test om raden skal skrives ut
''2'' – innholdet for celle1
''3'' – innholdet for celle2
''4'' – innholdet for celle3
''5'' – innholdet for celle4
;Valgfrie parametre
''rclass'' – endrer CSS-klassen for raden
''rstyle'' – valgfri CSS-stil for raden
''class1'' – valgfri CSS-klasse for celle1
''class2'' – valgfri CSS-klasse for celle2
''class3'' – valgfri CSS-klasse for celle3
''class4'' – valgfri CSS-klasse for celle4
''style1'' – valgfri CSS-stil for celle1
''style2'' – valgfri CSS-stil for celle2
''style3'' – valgfri CSS-stil for celle3
''style4'' – valgfri CSS-stil for celle4
''span1'' – hvor mange celler skal celle1 span'es over (colspan)
''span2'' – hvor mange celler skal celle2 span'es over (colspan)
''span3'' – hvor mange celler skal celle3 span'es over (colspan)
''span4'' – hvor mange celler skal celle4 span'es over (colspan)
''rspan1'' – hvor mange rader skal celle1 span'es over (rowspan)
''rspan2'' – hvor mange rader skal celle2 span'es over (rowspan)
''rspan3'' – hvor mange rader skal celle3 span'es over (rowspan)
''rspan4'' – hvor mange radet skal celle4 span'es over (rowspan)
''width1'' – bredde for celle1
''width2'' – bredde for celle2
''width3'' – bredde for celle3
''width4'' – bredde for celle4
;Se også
* {{tl|Infoboks start}}
* {{tl|Infoboks bilde}}
* {{tl|Infoboks rad}}
* {{tl|Infoboks dobbeltrad}}
* {{tl|Infoboks dobbeltbilde}}
* {{tl|Infoboks overskrift}}
* {{tl|Infoboks slutt}}
[[Kategori:Infoboksmaler|4rad]]
</noinclude>