Sjabloon:Infobox generiek: verschil tussen versies
Uit Wiki Sports Hall of Fame Suriname
(streep als alternatief voor kop) |
|||
Regel 7: | Regel 7: | ||
{{!-}}}} | {{!-}}}} | ||
{{#if:{{{kop0|}}}| | {{#if:{{{kop0|}}}| | ||
− | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''{{{kop0}}}'''</center> | + | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''<font color={{{color|}}}>{{{kop0}}}</font>'''</center> |
{{!-}}}} | {{!-}}}} | ||
{{#if:{{{main0|}}}| {{!}} align="center" colspan="2" {{!}} {{{main0}}} | {{#if:{{{main0|}}}| {{!}} align="center" colspan="2" {{!}} {{{main0}}} | ||
Regel 32: | Regel 32: | ||
{{#if:{{{item1_1|}}}{{{item1_2|}}}{{{item1_3|}}}{{{item1_4|}}}{{{item1_5|}}}{{{item1_6|}}}{{{item1_7|}}}{{{item1_8|}}}{{{item1_9|}}}| | {{#if:{{{item1_1|}}}{{{item1_2|}}}{{{item1_3|}}}{{{item1_4|}}}{{{item1_5|}}}{{{item1_6|}}}{{{item1_7|}}}{{{item1_8|}}}{{{item1_9|}}}| | ||
{{#ifeq:{{{kop1}}}|----| {{!}} style="border-bottom:1px solid #aaa" colspan="2" {{!}} | | {{#ifeq:{{{kop1}}}|----| {{!}} style="border-bottom:1px solid #aaa" colspan="2" {{!}} | | ||
− | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''{{{kop1}}}'''</center>}} | + | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''<font color={{{color|}}}>{{{kop1}}}</font>'''</center>}} |
{{!-}}}}}} | {{!-}}}}}} | ||
{{#if:{{{item1_1|}}} | {{!}} {{{head1_1|}}} {{!!}} {{{item1_1}}} | {{#if:{{{item1_1|}}} | {{!}} {{{head1_1|}}} {{!!}} {{{item1_1}}} | ||
Regel 55: | Regel 55: | ||
{{#if:{{{item2_1|}}}{{{item2_2|}}}{{{item2_3|}}}{{{item2_4|}}}{{{item2_5|}}}{{{item2_6|}}}{{{item2_7|}}}{{{item2_8|}}}{{{item2_9|}}}| | {{#if:{{{item2_1|}}}{{{item2_2|}}}{{{item2_3|}}}{{{item2_4|}}}{{{item2_5|}}}{{{item2_6|}}}{{{item2_7|}}}{{{item2_8|}}}{{{item2_9|}}}| | ||
{{#ifeq:{{{kop2}}}|----| {{!}} style="border-bottom:1px solid #aaa" colspan="2" {{!}} | | {{#ifeq:{{{kop2}}}|----| {{!}} style="border-bottom:1px solid #aaa" colspan="2" {{!}} | | ||
− | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''{{{kop2}}}'''</center>}} | + | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''<font color={{{color|}}}>{{{kop2}}}</font>'''</center>}} |
{{!-}}}}}} | {{!-}}}}}} | ||
{{#if:{{{item2_1|}}} | {{!}} {{{head2_1|}}} {{!!}} {{{item2_1}}} | {{#if:{{{item2_1|}}} | {{!}} {{{head2_1|}}} {{!!}} {{{item2_1}}} | ||
Regel 78: | Regel 78: | ||
{{#if:{{{item3_1|}}}{{{item3_2|}}}{{{item3_3|}}}{{{item3_4|}}}{{{item3_5|}}}{{{item3_6|}}}{{{item3_7|}}}{{{item3_8|}}}{{{item3_9|}}}| | {{#if:{{{item3_1|}}}{{{item3_2|}}}{{{item3_3|}}}{{{item3_4|}}}{{{item3_5|}}}{{{item3_6|}}}{{{item3_7|}}}{{{item3_8|}}}{{{item3_9|}}}| | ||
{{#ifeq:{{{kop3}}}|----| {{!}} style="border-bottom:1px solid #aaa" colspan="2" {{!}} | | {{#ifeq:{{{kop3}}}|----| {{!}} style="border-bottom:1px solid #aaa" colspan="2" {{!}} | | ||
− | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''{{{kop3}}}'''</center>}} | + | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''<font color={{{color|}}}>{{{kop3}}}</font>'''</center>}} |
{{!-}}}}}} | {{!-}}}}}} | ||
{{#if:{{{item3_1|}}} | {{!}} {{{head3_1|}}} {{!!}} {{{item3_1}}} | {{#if:{{{item3_1|}}} | {{!}} {{{head3_1|}}} {{!!}} {{{item3_1}}} | ||
Regel 101: | Regel 101: | ||
{{#if:{{{item4_1|}}}{{{item4_2|}}}{{{item4_3|}}}{{{item4_4|}}}{{{item4_5|}}}{{{item4_6|}}}| | {{#if:{{{item4_1|}}}{{{item4_2|}}}{{{item4_3|}}}{{{item4_4|}}}{{{item4_5|}}}{{{item4_6|}}}| | ||
{{#ifeq:{{{kop4}}}|----| {{!}} style="border-bottom:1px solid #aaa" colspan="2" {{!}} | | {{#ifeq:{{{kop4}}}|----| {{!}} style="border-bottom:1px solid #aaa" colspan="2" {{!}} | | ||
− | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''{{{kop4}}}'''</center>}} | + | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''<font color={{{color|}}}>{{{kop4}}}</font>'''</center>}} |
{{!-}}}}}} | {{!-}}}}}} | ||
{{#if:{{{item4_1|}}} | {{!}} {{{head4_1|}}} {{!!}} {{{item4_1}}} | {{#if:{{{item4_1|}}} | {{!}} {{{head4_1|}}} {{!!}} {{{item4_1}}} | ||
Regel 118: | Regel 118: | ||
{{#if:{{{item5_1|}}}{{{item5_2|}}}{{{item5_3|}}}{{{item5_4|}}}{{{item5_5|}}}{{{item5_6|}}}| | {{#if:{{{item5_1|}}}{{{item5_2|}}}{{{item5_3|}}}{{{item5_4|}}}{{{item5_5|}}}{{{item5_6|}}}| | ||
{{#ifeq:{{{kop5}}}|----| {{!}} style="border-bottom:1px solid #aaa" colspan="2" {{!}} | | {{#ifeq:{{{kop5}}}|----| {{!}} style="border-bottom:1px solid #aaa" colspan="2" {{!}} | | ||
− | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''{{{kop5}}}'''</center>}} | + | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''<font color={{{color|}}}>{{{kop5}}}</font>'''</center>}} |
{{!-}}}}}} | {{!-}}}}}} | ||
{{#if:{{{item5_1|}}} | {{!}} {{{head5_1|}}} {{!!}} {{{item5_1}}} | {{#if:{{{item5_1|}}} | {{!}} {{{head5_1|}}} {{!!}} {{{item5_1}}} | ||
Regel 135: | Regel 135: | ||
{{#if:{{{item6_1|}}}{{{item6_2|}}}{{{item6_3|}}}{{{item6_4|}}}| | {{#if:{{{item6_1|}}}{{{item6_2|}}}{{{item6_3|}}}{{{item6_4|}}}| | ||
{{#ifeq:{{{kop6}}}|----| {{!}} style="border-bottom:1px solid #aaa" colspan="2" {{!}} | | {{#ifeq:{{{kop6}}}|----| {{!}} style="border-bottom:1px solid #aaa" colspan="2" {{!}} | | ||
− | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''{{{kop6}}}'''</center>}} | + | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''<font color={{{color|}}}>{{{kop6}}}</font>'''</center>}} |
{{!-}}}}}} | {{!-}}}}}} | ||
{{#if:{{{item6_1|}}} | {{!}} {{{head6_1|}}} {{!!}} {{{item6_1}}} | {{#if:{{{item6_1|}}} | {{!}} {{{head6_1|}}} {{!!}} {{{item6_1}}} | ||
Regel 148: | Regel 148: | ||
{{#if:{{{item7_1|}}}{{{item7_2|}}}{{{item7_3|}}}{{{item7_4|}}}| | {{#if:{{{item7_1|}}}{{{item7_2|}}}{{{item7_3|}}}{{{item7_4|}}}| | ||
{{#ifeq:{{{kop7}}}|----| {{!}} style="border-bottom:1px solid #aaa" colspan="2" {{!}} | | {{#ifeq:{{{kop7}}}|----| {{!}} style="border-bottom:1px solid #aaa" colspan="2" {{!}} | | ||
− | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''{{{kop7}}}'''</center>}} | + | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''<font color={{{color|}}}>{{{kop7}}}</font>'''</center>}} |
{{!-}}}}}} | {{!-}}}}}} | ||
{{#if:{{{item7_1|}}} | {{!}} {{{head7_1|}}} {{!!}} {{{item7_1}}} | {{#if:{{{item7_1|}}} | {{!}} {{{head7_1|}}} {{!!}} {{{item7_1}}} | ||
Regel 161: | Regel 161: | ||
{{#if:{{{item8_1|}}}{{{item8_2|}}}{{{item8_3|}}}{{{item8_4|}}}| | {{#if:{{{item8_1|}}}{{{item8_2|}}}{{{item8_3|}}}{{{item8_4|}}}| | ||
{{#ifeq:{{{kop8}}}|----| {{!}} style="border-bottom:1px solid #aaa" colspan="2" {{!}} | | {{#ifeq:{{{kop8}}}|----| {{!}} style="border-bottom:1px solid #aaa" colspan="2" {{!}} | | ||
− | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''{{{kop8}}}'''</center>}} | + | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''<font color={{{color|}}}>{{{kop8}}}</font>'''</center>}} |
{{!-}}}}}} | {{!-}}}}}} | ||
{{#if:{{{item8_1|}}} | {{!}} {{{head8_1|}}} {{!!}} {{{item8_1}}} | {{#if:{{{item8_1|}}} | {{!}} {{{head8_1|}}} {{!!}} {{{item8_1}}} | ||
Regel 181: | Regel 181: | ||
{{!-}}}} | {{!-}}}} | ||
{{#if:{{{otherkop|}}}| | {{#if:{{{otherkop|}}}| | ||
− | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''{{{otherkop}}}'''</center> | + | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''<font color={{{color|}}}>{{{otherkop}}}</font>'''</center> |
{{!-}}}} | {{!-}}}} | ||
{{#if:{{{other0|}}}| {{!}} align="center" colspan="2" {{!}} {{{other0}}} | {{#if:{{{other0|}}}| {{!}} align="center" colspan="2" {{!}} {{{other0}}} | ||
Regel 196: | Regel 196: | ||
<center> | <center> | ||
{{{!}} style="background:transparent;border-collapse:collapse;" cellpadding="0" | {{{!}} style="background:transparent;border-collapse:collapse;" cellpadding="0" | ||
− | {{!}} style="vertical-align:middle" {{!}} '''Portaal''' [[Bestand:Portal icon.svg|22px|Portaalicoon]] | + | {{!}} style="vertical-align:middle" {{!}} '''<font color={{{color|}}}>Portaal</font>''' [[Bestand:Portal icon.svg|22px|Portaalicoon]] |
− | {{!}} '''[[Portaal:{{{portaal}}}|{{{portaal}}}]] | + | {{!}} '''<font color={{{color|}}}>[[Portaal:{{{portaal}}}|{{{portaal}}}]]</font> {{#if:{{{portaal2|}}}|<br/><font color={{{color|}}}>[[Portaal:{{{portaal2}}}|{{{portaal2}}}]]</font>}} {{#if:{{{portaal3|}}}|<br/><font color={{{color|}}}>[[Portaal:{{{portaal3}}}|{{{portaal3}}}]]</font>}}''' |
{{!}}}</center> | {{!}}}</center> | ||
{{!-}}}} | {{!-}}}} | ||
{{#if:{{{kop99|}}}| | {{#if:{{{kop99|}}}| | ||
− | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''{{{kop99}}}'''</center>}} | + | {{!}} style="background:{{{bgcolor|#e3e3e3}}};" colspan="2" {{!}} <center>'''<font color={{{color|}}}>{{{kop99}}}</font>'''</center>}} |
|}<noinclude> | |}<noinclude> | ||
{{Sjablooninfo|1= | {{Sjablooninfo|1= | ||
Regel 293: | Regel 293: | ||
}} | }} | ||
</pre> | </pre> | ||
+ | extra parameters: breedte (infobox, 230), bgcolor + color (balken, #a3a3a3), afbeeldingsbreedte (200px). | ||
}} | }} | ||
[[Categorie:sjablonen infobox| Generiek]] | [[Categorie:sjablonen infobox| Generiek]] | ||
</noinclude> | </noinclude> |
Versie van 29 jun 2009 om 16:23
De sjabloonbeschrijving hieronder wordt niet afgebeeld wanneer het sjabloon wordt geplaatst.
Infobox generiek | ||||
SOORT 25x19px | ||||
KOP0 | ||||
maincaption | ||||
maincaption | ||||
[[Afbeelding:main1.svg|250px]] | ||||
[[Afbeelding:main2.svg|250px]] | ||||
main3 | ||||
KOP1 | ||||
HEAD1-1 | ITEM1-1 | |||
HEAD1-2 | ITEM1-2 | |||
HEAD1-3 | ITEM1-3 | |||
HEAD1-4 | ITEM1-4 | |||
KOP2 | ||||
HEAD2-1 | ITEM2-1 | |||
HEAD2-2 | ITEM2-2 | |||
HEAD2-3 | ITEM2-3 | |||
HEAD3-1 | ITEM3-1 | |||
HEAD3-2 | ITEM3-2 | |||
HEAD3-3 | ITEM3-3 | |||
CAPTION1 | ||||
CAPTION1 | ||||
CAPTION2 | ||||
CAPTION2 | ||||
otherkop | ||||
OTHER1 | ||||
OTHER2 | ||||
kop99 (eindkop) | ||||
|
Doel
Het sjabloon Sjabloon:Tl is gemaakt om eenvoudig functioneel gelijksoortige sjablonen te maken en niet bedoeld om direct in een artikel te gebruiken.
Gebruik
De volgende code kan als start worden gebruikt bij het aanmaken van een infobox (meer heads en items mogelijk dan hieronder aangegeven).
{{Infobox generiek | soort = | icon = | naam = | altnaam = | kop0 = | mainimage = | maincaption = | main1 = | kop1 = | head1_1 = | item1_1 = | head1_2 = | item1_2 = | head1_3 = | item1_3 = | head1_4 = | item1_4 = | kop2 = | head2_1 = | item2_1 = | head2_2 = | item2_2 = | head2_3 = | item2_3 = | head2_4 = | item2_4 = | kop3 = ---- | head3_1 = | item3_1 = | head3_2 = | item3_2 = | head3_3 = | item3_3 = | head3_4 = | item3_4 = | image1 = | caption1 = | image2 = | caption2 = | other1 = | other2 = | portaal = | portaal3 = | kop99 = }}
extra parameters: breedte (infobox, 230), bgcolor + color (balken, #a3a3a3), afbeeldingsbreedte (200px).