Endringer

Hopp til navigering Hopp til søk

Mal:Infoboks 4rad

5 066 byte lagt til, 16. mai 2016 kl. 12:36
m
\Én revisjon er importert: ABB med alle maler
<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'' &ndash; innholdet for celle1
''2'' &ndash; innholdet for celle2
''3'' &ndash; innholdet for celle3
''4'' &ndash; innholdet for celle4

;Parametre, alt 2; med test
''1'' &ndash; test om raden skal skrives ut
''2'' &ndash; innholdet for celle1
''3'' &ndash; innholdet for celle2
''4'' &ndash; innholdet for celle3
''5'' &ndash; innholdet for celle4

;Valgfrie parametre
''rclass'' &ndash; endrer CSS-klassen for raden
''rstyle'' &ndash; valgfri CSS-stil for raden
''class1'' &ndash; valgfri CSS-klasse for celle1
''class2'' &ndash; valgfri CSS-klasse for celle2
''class3'' &ndash; valgfri CSS-klasse for celle3
''class4'' &ndash; valgfri CSS-klasse for celle4
''style1'' &ndash; valgfri CSS-stil for celle1
''style2'' &ndash; valgfri CSS-stil for celle2
''style3'' &ndash; valgfri CSS-stil for celle3
''style4'' &ndash; valgfri CSS-stil for celle4
''span1'' &ndash; hvor mange celler skal celle1 span'es over (colspan)
''span2'' &ndash; hvor mange celler skal celle2 span'es over (colspan)
''span3'' &ndash; hvor mange celler skal celle3 span'es over (colspan)
''span4'' &ndash; hvor mange celler skal celle4 span'es over (colspan)
''rspan1'' &ndash; hvor mange rader skal celle1 span'es over (rowspan)
''rspan2'' &ndash; hvor mange rader skal celle2 span'es over (rowspan)
''rspan3'' &ndash; hvor mange rader skal celle3 span'es over (rowspan)
''rspan4'' &ndash; hvor mange radet skal celle4 span'es over (rowspan)
''width1'' &ndash; bredde for celle1
''width2'' &ndash; bredde for celle2
''width3'' &ndash; bredde for celle3
''width4'' &ndash; 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>

Navigasjonsmeny