Mal:Infoboks 4rad: Forskjell mellom sideversjoner

Fra Wikisida.no
Hopp til navigering Hopp til søk
(ny)
 
m (+logikk for å fjerne tomme celler)
Linje 1: Linje 1:
<includeonly>{{#ifeq:{{{5|def-value-check5}}}|def-value-check5|
<includeonly>{{#ifeq:{{{5|def-value-check5}}}|def-value-check5|
<tr class="{{#if:{{{rclass|}}}|{{{rclass}}}|rad}}" valign="top">
<tr class="{{#if:{{{rclass|}}}|{{{rclass}}}|rad}}" valign="top"><td {{#if:{{{span1|}}}|colspan="{{{span1}}}"}} {{#if:{{{width1|}}}| width="{{{width1}}}"}}>{{{1|}}}</td><td {{#if:{{{span2|}}}| colspan="{{{span2}}}"}} {{#if:{{{width2|}}}| width="{{{width2}}}"}}>{{{2}}}</td><td {{#if:{{{span3|}}}| colspan="{{{span3}}}"}} {{#if:{{{width3|}}}| width="{{{width3}}}"}}>{{{3}}}</td><td {{#if:{{{span4|}}}| colspan="{{{span4}}}"}} {{#if:{{{width4|}}}| width="{{{width4}}}"}}>{{{4}}}</td>
{{#ifeq:{{{1|}}}def-value-check2|def-value-check2||
<td {{#if:{{{span1|}}}| colspan="{{{span1}}}"}} {{#if:{{{width1|}}}| width="{{{width1}}}"}}>{{{1|}}}</td>
{{#ifeq:{{{2|}}}def-value-check3|def-value-check3||
<td {{#if:{{{span2|}}}| colspan="{{{span2}}}"}} {{#if:{{{width2|}}}| width="{{{width2}}}"}}>{{{2}}}</td>
{{#ifeq:{{{3|}}}def-value-check4|def-value-check4||
<td {{#if:{{{span3|}}}| colspan="{{{span3}}}"}} {{#if:{{{width3|}}}| width="{{{width3}}}"}}>{{{3}}}</td>
{{#ifeq:{{{4|}}}def-value-check5|def-value-check5||
<td {{#if:{{{span4|}}}| colspan="{{{span4}}}"}} t{{#if:{{{width4|}}}| width="{{{width4}}}"}}>{{{4}}}</td>
}}
}}
}}
}}
</tr>
</tr>
|
|
{{#ifeq:{{{1|}}}def-value-check1|def-value-check1||
{{#ifeq:{{{1|}}}def-value-check1|def-value-check1||
<tr class="{{#if:{{{rclass|}}}|{{{rclass}}}|rad}}" valign="top">
<tr class="{{#if:{{{rclass|}}}|{{{rclass}}}|rad}}" valign="top"><td {{#if:{{{span1|}}}| colspan="{{{span1}}}"}} {{#if:{{{width1|}}}| width="{{{width1}}}"}}>{{{2|}}}</td><td {{#if:{{{span2|}}}| colspan="{{{span2}}}"}} {{#if:{{{width2|}}}| width="{{{width2}}}"}}>{{{3}}}</td><td {{#if:{{{span3|}}}| colspan="{{{span3}}}"}} {{#if:{{{width3|}}}| width="{{{width3}}}"}}>{{{4}}}</td><td {{#if:{{{span4|}}}| colspan="{{{span4}}}"}} t{{#if:{{{width4|}}}| width="{{{width4}}}"}}>{{{5}}}</td>
{{#ifeq:{{{2|}}}def-value-check2|def-value-check2||
<td {{#if:{{{span1|}}}| colspan="{{{span1}}}"}} {{#if:{{{width1|}}}| width="{{{width1}}}"}}>{{{2|}}}</td>
{{#ifeq:{{{3|}}}def-value-check3|def-value-check3||
<td {{#if:{{{span2|}}}| colspan="{{{span2}}}"}} {{#if:{{{width2|}}}| width="{{{width2}}}"}}>{{{3}}}</td>
{{#ifeq:{{{4|}}}def-value-check4|def-value-check4||
<td {{#if:{{{span3|}}}| colspan="{{{span3}}}"}} {{#if:{{{width3|}}}| width="{{{width3}}}"}}>{{{4}}}</td>
{{#ifeq:{{{5|}}}def-value-check5|def-value-check5||
<td {{#if:{{{span4|}}}| colspan="{{{span4}}}"}} t{{#if:{{{width4|}}}| width="{{{width4}}}"}}>{{{5}}}</td>
}}
}}
}}
}}
</tr>
</tr>
}}
}}

Sideversjonen fra 27. okt. 2008 kl. 01:19


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
class1 – valgfri CSS-klasse for celle1
class2 – valgfri CSS-klasse for celle2
class3 – valgfri CSS-klasse for celle3
class4 – valgfri CSS-klasse 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)
width1 – bredde for celle1
width2 – bredde for celle2
width3 – bredde for celle3
width4 – bredde for celle4
Se også