Mal:Infoboks 4rad: Forskjell mellom sideversjoner

Fra Wikisida.no
Hopp til navigering Hopp til søk
m (smått)
m (12 sideversjoner ble importert)
 
(8 mellomliggende versjoner av 4 brukere er ikke vist)
Linje 1: Linje 1:
<includeonly>{{#ifeq:{{{5|x}}}|x|
<includeonly>{{#ifeq:{{{5|x}}}|x|
<tr class="{{#if:{{{rclass|}}}|{{{rclass}}}|rad}}" valign="top">
<tr class="{{#if:{{{rclass|}}}|{{{rclass}}}|rad}}" {{#if:{{{rstyle|}}}| style="{{{rstyle}}}"}}>
{{#ifeq:{{{1|}}}x|x||
{{#ifeq:{{{1|}}}x|x||
<td {{#if:{{{span1|}}}| colspan="{{{span1}}}"}} {{#if:{{{rspan1|}}}| rowspan="{{{rspan1}}}"}} {{#if:{{{width1|}}}| width="{{{width1}}}"}} {{#if:{{{class1|}}}| class="{{{class1}}}"}}>{{{1}}}</td>
<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||
{{#ifeq:{{{2|}}}x|x||
<td {{#if:{{{span2|}}}| colspan="{{{span2}}}"}} {{#if:{{{rspan2|}}}| rowspan="{{{rspan2}}}"}} {{#if:{{{width2|}}}| width="{{{width2}}}"}} {{#if:{{{class2|}}}| class="{{{class2}}}"}}>{{{2}}}</td>
<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||
{{#ifeq:{{{3|}}}x|x||
<td {{#if:{{{span3|}}}| colspan="{{{span3}}}"}} {{#if:{{{rspan3|}}}| rowspan="{{{rspan3}}}"}} {{#if:{{{width3|}}}| width="{{{width3}}}"}} {{#if:{{{class3|}}}| class="{{{class3}}}"}}>{{{3}}}</td>
<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||
{{#ifeq:{{{4|}}}x|x||
<td {{#if:{{{span4|}}}| colspan="{{{span4}}}"}} {{#if:{{{rspan4|}}}| rowspan="{{{rspan4}}}"}} {{#if:{{{width4|}}}| width="{{{width4}}}"}} {{#if:{{{class4|}}}| class="{{{class4}}}"}}>{{{4}}}</td>
<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>
}}
}}
}}
}}
Linje 16: Linje 16:
|
|
{{#ifeq:{{{1|}}}x|x||
{{#ifeq:{{{1|}}}x|x||
<tr class="{{#if:{{{rclass|}}}|{{{rclass}}}|rad}}" valign="top">
<tr class="{{#if:{{{rclass|}}}|{{{rclass}}}|rad}}" {{#if:{{{rstyle|}}}| style="{{{rstyle}}}"}}>
{{#ifeq:{{{2|}}}x|x||
{{#ifeq:{{{2|}}}x|x||
<td {{#if:{{{span1|}}}| colspan="{{{span1}}}"}} {{#if:{{{rspan1|}}}| rowspan="{{{rspan1}}}"}} {{#if:{{{width1|}}}| width="{{{width1}}}"}} {{#if:{{{class1|}}}| class="{{{class1}}}"}}>{{{2}}}</td>
<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||
{{#ifeq:{{{3|}}}x|x||
<td {{#if:{{{span2|}}}| colspan="{{{span2}}}"}} {{#if:{{{rspan2|}}}| rowspan="{{{rspan2}}}"}} {{#if:{{{width2|}}}| width="{{{width2}}}"}} {{#if:{{{class2|}}}| class="{{{class2}}}"}}>{{{3}}}</td>
<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||
{{#ifeq:{{{4|}}}x|x||
<td {{#if:{{{span3|}}}| colspan="{{{span3}}}"}} {{#if:{{{rspan3|}}}| rowspan="{{{rspan3}}}"}} {{#if:{{{width3|}}}| width="{{{width3}}}"}} {{#if:{{{class3|}}}| class="{{{class3}}}"}}>{{{4}}}</td>
<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||
{{#ifeq:{{{5|}}}x|x||
<td {{#if:{{{span4|}}}| colspan="{{{span4}}}"}} {{#if:{{{rspan4|}}}| rowspan="{{{rspan4}}}"}} {{#if:{{{width4|}}}| width="{{{width4}}}"}} {{#if:{{{class4|}}}| class="{{{class4}}}"}}>{{{5}}}</td>
<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>
}}
}}
}}
}}
Linje 50: Linje 50:
;Valgfrie parametre
;Valgfrie parametre
''rclass'' &ndash; endrer CSS-klassen for raden
''rclass'' &ndash; endrer CSS-klassen for raden
''rstyle'' &ndash; valgfri CSS-stil for raden
''class1'' &ndash; valgfri CSS-klasse for celle1
''class1'' &ndash; valgfri CSS-klasse for celle1
''class2'' &ndash; valgfri CSS-klasse for celle2
''class2'' &ndash; valgfri CSS-klasse for celle2
''class3'' &ndash; valgfri CSS-klasse for celle3
''class3'' &ndash; valgfri CSS-klasse for celle3
''class4'' &ndash; valgfri CSS-klasse for celle4
''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)
''span1'' &ndash; hvor mange celler skal celle1 span'es over (colspan)
''span2'' &ndash; hvor mange celler skal celle2 span'es over (colspan)
''span2'' &ndash; hvor mange celler skal celle2 span'es over (colspan)

Siste sideversjon per 21. mar. 2024 kl. 21:05


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å