Sjabloon:Infobox generiek: verschil tussen versies
Uit Wiki Sports Hall of Fame Suriname
(+driekop4-6) |
(Update infobox ivm problemen afbeeldingen en kop) |
||
| Regel 1: | Regel 1: | ||
{| class="toccolours vatop" cellpadding="1" cellspacing="1" style="float:right; clear:right; width:{{{breedte|{{Infobox/breedte}}}}}px; padding:0px; margin:0px 0px 1em 1em; font-size:85%;" | {| class="toccolours vatop" cellpadding="1" cellspacing="1" style="float:right; clear:right; width:{{{breedte|{{Infobox/breedte}}}}}px; padding:0px; margin:0px 0px 1em 1em; font-size:85%;" | ||
| − | + | {{!}} style="background-color:{{{bgcolor|#e3e3e3}}}; color:{{{color|#000}}}" align="center" colspan="3" {{!}} '''<big>{{#If:{{{kop|}}}|{{#If:{{{color|}}}|{{#If:{{{linkcolor|}}}|{{{kop}}}|<font color={{{color}}}>{{{kop}}}</font>}}|{{{kop}}}}}|{{PAGENAME}}}}</big>''' | |
| − | {{!}} style="background-color:{{{bgcolor|#e3e3e3}}}; color:{{{color|#000}}}" align="center" colspan="3" {{!}} {{# | + | {{!}}- |
| − | {{!}}- | + | |
{{#If:{{{breed|}}}|{{#IfEq:{{{breed}}}|''''''|| {{!}} align="center" colspan="3" {{!}} {{{breed}}} | {{#If:{{{breed|}}}|{{#IfEq:{{{breed}}}|''''''|| {{!}} align="center" colspan="3" {{!}} {{{breed}}} | ||
{{!}}-}}}} | {{!}}-}}}} | ||
| Regel 21: | Regel 20: | ||
{{#If:{{{kolom1|}}}{{{kolom2|}}}{{{kolom3|}}}| {{!}} width="{{{kolom1|}}}" {{!}} {{!!}} width="{{{kolom2|}}}" {{!}} {{!!}} width="{{{kolom3|}}}" {{!}} | {{#If:{{{kolom1|}}}{{{kolom2|}}}{{{kolom3|}}}| {{!}} width="{{{kolom1|}}}" {{!}} {{!!}} width="{{{kolom2|}}}" {{!}} {{!!}} width="{{{kolom3|}}}" {{!}} | ||
{{!}}-}} | {{!}}-}} | ||
| − | {{#If:{{{image|}}}| {{!}} align="center" colspan="3" {{!}} [[Bestand:{{{image}}}|{{{ | + | {{#If:{{{image|}}}| {{!}} align="center" colspan="3" {{!}} [[Bestand:{{{image}}}|{{#If:{{{imagewidth|}}}|{{{imagewidth|}}}px|{{#expr:{{{breedte|{{Infobox/breedte}}}}}-6}}px}}|{{{caption|{{PAGENAME}}}}}]] |
{{!}}-}} | {{!}}-}} | ||
| − | {{#If:{{{image|}}}|{{#If:{{{caption|}}}| {{!}} align="center" colspan="3" {{!}} {{{caption}}} | + | {{#If:{{{image|}}}|{{#If:{{{caption|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{caption}}}</small> |
{{!}}-}}}} | {{!}}-}}}} | ||
| − | {{#If:{{{mainimage|}}}| {{!}} align="center" colspan="3" {{!}} [[Bestand:{{{mainimage}}}|{{{ | + | {{#If:{{{image|}}}||{{#If:{{{noimage|}}}|{{!}} align="center" colspan="3" {{!}} {{{noimage|}}} |
| + | {{!}}-}}}} | ||
| + | {{#If:{{{mainimage|}}}| {{!}} align="center" colspan="3" {{!}} [[Bestand:{{{mainimage}}}|{{#If:{{{mainimagewidth|}}}|{{{mainimagewidth|}}}px|{{#expr:{{{breedte|{{Infobox/breedte}}}}}-6}}px}}|{{{maincaption|{{PAGENAME}}}}}]] | ||
{{!}}-}} | {{!}}-}} | ||
| − | {{#If:{{{maincaption|}}}| {{!}} align="center" colspan="3" {{!}} {{{maincaption}}} | + | {{#If:{{{mainimage|}}}|{{#If:{{{maincaption|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{maincaption}}}</small> |
| − | {{!}}-}} | + | {{!}}-}}}} |
| − | {{#If:{{{ | + | {{#If:{{{mainimage|}}}||{{#If:{{{nomainimage|}}}|{{!}} align="center" colspan="3" {{!}} {{{nomainimage|}}} |
| − | {{ | + | {{!}}-}}}} |
| − | {{# | + | {{#If:{{{otherimage|}}}| {{!}} align="center" colspan="3" {{!}} [[Bestand:{{{otherimage}}}|{{#If:{{{otherimagewidth|}}}|{{{otherimagewidth|}}}px|{{#expr:{{{breedte|{{Infobox/breedte}}}}}-6}}px}}|{{{othercaption|{{PAGENAME}}}}}]] |
{{!}}-}} | {{!}}-}} | ||
| + | {{#If:{{{otherimage|}}}|{{#If:{{{othercaption|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{othercaption}}}</small> | ||
| + | {{!}}-}}}} | ||
| + | {{#If:{{{otherimage|}}}||{{#If:{{{nootherimage|}}}|{{!}} align="center" colspan="3" {{!}} {{{nootherimage|}}} | ||
| + | {{!}}-}}}} | ||
{{#If:{{{main1|}}}| {{!}} align="center" colspan="3" {{!}} {{{main1}}} | {{#If:{{{main1|}}}| {{!}} align="center" colspan="3" {{!}} {{{main1}}} | ||
{{!}}-}} | {{!}}-}} | ||
| Regel 343: | Regel 348: | ||
{{#If:{{{itemB_6|}}}| {{!}} style="font-weight:bold;" {{!}} {{{headB_6|}}} {{!!}} colspan="2" {{!}} {{{itemB_6}}} | {{#If:{{{itemB_6|}}}| {{!}} style="font-weight:bold;" {{!}} {{{headB_6|}}} {{!!}} colspan="2" {{!}} {{{itemB_6}}} | ||
{{!}}-}} | {{!}}-}} | ||
| − | {{#If:{{{image0|}}}| {{!}} align="center" colspan="3" {{!}} [[Bestand:{{{image0|}}}|{{{ | + | {{#If:{{{image0|}}}| {{!}} align="center" colspan="3" {{!}} [[Bestand:{{{image0|}}}|{{#If:{{{imagewidth0|}}}|{{{imagewidth0|}}}px|{{#expr:{{{breedte|{{Infobox/breedte}}}}}-6}}px}}|{{{caption0|{{PAGENAME}}}}}]] |
{{!}}-}} | {{!}}-}} | ||
| − | {{#If:{{{caption0|}}}| {{!}} align="center" colspan="3" {{!}} {{{caption0}}} | + | {{#If:{{{image0|}}}|{{#If:{{{caption0|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{caption0}}}</small> |
| + | {{!}}-}}}} | ||
| + | {{#If:{{{image0|}}}||{{#If:{{{noimage0|}}}|{{!}} align="center" colspan="3" {{!}} {{{noimage0|}}} | ||
| + | {{!}}-}}}} | ||
| + | {{#If:{{{image1|}}}| {{!}} align="center" colspan="3" {{!}} [[Bestand:{{{image1|}}}|{{#If:{{{imagewidth1|}}}|{{{imagewidth1|}}}px|{{#expr:{{{breedte|{{Infobox/breedte}}}}}-6}}px}}|{{{caption1|{{PAGENAME}}}}}]] | ||
{{!}}-}} | {{!}}-}} | ||
| − | {{#If:{{{image1|}}}| {{!}} align="center" colspan="3" {{!}} [[Bestand:{{{ | + | {{#If:{{{image1|}}}|{{#If:{{{caption1|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{caption1}}}</small> |
| + | {{!}}-}}}} | ||
| + | {{#If:{{{image1|}}}||{{#If:{{{noimage1|}}}|{{!}} align="center" colspan="3" {{!}} {{{noimage1|}}} | ||
| + | {{!}}-}}}} | ||
| + | {{#If:{{{image2|}}}| {{!}} align="center" colspan="3" {{!}} [[Bestand:{{{image2|}}}|{{#If:{{{imagewidth2|}}}|{{{imagewidth2|}}}px|{{#expr:{{{breedte|{{Infobox/breedte}}}}}-6}}px}}|{{{caption2|{{PAGENAME}}}}}]] | ||
{{!}}-}} | {{!}}-}} | ||
| − | {{#If:{{{ | + | {{#If:{{{image2|}}}|{{#If:{{{caption2|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{caption2}}}</small> |
| − | + | {{!}}-}}}} | |
| − | {{#If:{{{ | + | {{#If:{{{image3|}}}| {{!}} align="center" colspan="3" {{!}} [[Bestand:{{{image3|}}}|{{#If:{{{imagewidth3|}}}|{{{imagewidth3|}}}px|{{#expr:{{{breedte|{{Infobox/breedte}}}}}-6}}px}}|{{{caption3|{{PAGENAME}}}}}]] |
| − | {{!}}-}} | + | |
| − | {{#If:{{{ | + | |
| − | + | ||
| − | {{#If:{{{ | + | |
| − | {{ | + | |
| − | + | ||
{{!}}-}} | {{!}}-}} | ||
| + | {{#If:{{{image3|}}}|{{#If:{{{caption3|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{caption3}}}</small> | ||
| + | {{!}}-}}}} | ||
{{#If:{{{otherkop|}}}| | {{#If:{{{otherkop|}}}| | ||
{{!}} style="background-color:{{{bgcolor|#e3e3e3}}}; color:{{{color|#000}}}" align="center" colspan="3" {{!}} {{#IfEq:{{{otherkop}}}|----||'''{{#If:{{{color|}}}|{{#If:{{{linkcolor|}}}|{{{otherkop}}}|<font color={{{color}}}>{{{otherkop}}}</font>}}|{{{otherkop}}}}}'''}} | {{!}} style="background-color:{{{bgcolor|#e3e3e3}}}; color:{{{color|#000}}}" align="center" colspan="3" {{!}} {{#IfEq:{{{otherkop}}}|----||'''{{#If:{{{color|}}}|{{#If:{{{linkcolor|}}}|{{{otherkop}}}|<font color={{{color}}}>{{{otherkop}}}</font>}}|{{{otherkop}}}}}'''}} | ||
Versie van 31 jul 2010 om 11:47
| Infobox generiek |
De sjabloonbeschrijving hieronder wordt niet afgebeeld wanneer het sjabloon wordt geplaatst.
| KOP | |||||||
| BREED | |||||||
| SOORT 25x19px | |||||||
| KOP0 | |||||||
| BREED0 | |||||||
| CAPTION | |||||||
| CAPTION | |||||||
| Sjabloon:Infobox/afbeeldingbreedtepx | |||||||
| KOP1 | |||||||
| HEAD1_1 | ITEM1_1 | ||||||
| HEAD1_2 | ITEM1_2 | ||||||
| HEAD1_3 | ITEM1_3 | ||||||
| HEAD1_9 | ITEM1_9 | ||||||
| KOP2 | |||||||
| BREED2 | |||||||
| LINKS2 | |||||||
| HEAD2_1 | ITEM2_1 | ITEM2_1r | |||||
| HEAD2_9 | ITEM2_9 | ||||||
| HEAD4_1 | ITEM4_1 | ||||||
| HEAD4_6 | ITEM4_6 | ||||||
| CAPTION1 | |||||||
| CAPTION1 | |||||||
| OTHERKOP | |||||||
| OTHER1 | |||||||
| LINKS31 | |||||||
| DRIEKOP1 | |||||||
| |||||||
| KOP99 | |||||||
| |||||||
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
Onderstaand een voorbeeld met rechts het resultaat. De volledige lijst van parameters, die naar behoefte gekopieerd kunnen worden, staat op de overlegpagina.
{{Infobox generiek
| kop = KOP
| breed = BREED
| soort = SOORT | icon = icon.svg
| kop0 = KOP0
| breed0 = BREED0
| image = plaatje.svg
| caption = CAPTION
| main1 = [[Bestand:main1.svg|{{Infobox/afbeeldingbreedte}}px]]
| kop1 = KOP1
| head1_1 = HEAD1_1 | item1_1 = ITEM1_1
| head1_2 = HEAD1_2 | item1_2 = ITEM1_2
| head1_3 = HEAD1_3 | item1_3 = ITEM1_3
| head1_4 = HEAD1_4 | item1_4 = ITEM1_4
| head1_5 = HEAD1_5 | item1_5 = ITEM1_5
| head1_6 = HEAD1_6 | item1_6 = ITEM1_6
| head1_7 = HEAD1_7 | item1_7 = ITEM1_7
| head1_8 = HEAD1_8 | item1_8 = ITEM1_8
| head1_9 = HEAD1_9 | item1_9 = ITEM1_9
| kop2 = KOP2
| breed2 = BREED2
| links2 = LINKS2
| head2_1 = HEAD2_1 | item2_1 = ITEM2_1 | item2_1r = ITEM2_1r
| head2_2 = HEAD2_2 | item2_2 = ITEM2_2
| head2_3 = HEAD2_3 | item2_3 = ITEM2_3
| head2_4 = HEAD2_4 | item2_4 = ITEM2_4
| head2_5 = HEAD2_5 | item2_5 = ITEM2_5
| head2_6 = HEAD2_6 | item2_6 = ITEM2_6
| head2_7 = HEAD2_7 | item2_7 = ITEM2_7
| head2_8 = HEAD2_8 | item2_8 = ITEM2_8
| head2_9 = HEAD2_9 | item2_9 = ITEM2_9
| kop4 = ----
| head4_1 = HEAD4_1 | item4_1 = ITEM4_1
| head4_6 = HEAD4_6 | item4_6 = ITEM4_6
| image1 = image1.svg
| caption1 = CAPTION1
| otherkop = OTHERKOP
| other1 = OTHER1
| links31 = LINKS31
| driekop1 = DRIEKOP1
| drie1_1 = DRIE1_1 | drie1_2 = DRIE1_2 | drie1_3 = DRIE1_3
| portaal = PORTAAL
| portaal3 = PORTAAL3
| kop99 = KOP99
}}