Wikisage, the free encyclopedia of the second generation, is digital heritage
Template:Infobox generic: Difference between revisions
Jump to navigation
Jump to search
m (Guido den Broeder moved page Infobox generic to Template:Infobox generic without leaving a redirect: is template) |
(File:, Infobox/width, Infobox/imagewidth) |
||
Line 1: | Line 1: | ||
{| class="toccolours vatop infobox plainlinks" cellpadding="1" cellspacing="1" style="float:right; clear:right; width:{{{breedte|{{Infobox/ | {| class="toccolours vatop infobox plainlinks" cellpadding="1" cellspacing="1" style="float:right; clear:right; width:{{{breedte|{{Infobox/width}}}}}px; padding:0px; margin:0px 0px 1em 1em; font-size:85%;" | ||
{{!}} style="background-color:{{{bgcolor|#e3e3e3}}}; color:{{{color|#000000}}}" 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|#000000}}}" align="center" colspan="3" {{!}} '''<big>{{#If:{{{kop|}}}|{{#If:{{{color|}}}|{{#If:{{{linkcolor|}}}|{{{kop}}}|<font color={{{color}}}>{{{kop}}}</font>}}|{{{kop}}}}}|{{PAGENAME}}}}</big>''' | ||
{{!}}- | {{!}}- | ||
Line 5: | Line 5: | ||
{{!}}-}}}} | {{!}}-}}}} | ||
{{#If:{{{soort|}}}{{{icon|}}}| | {{#If:{{{soort|}}}{{{icon|}}}| | ||
{{!}} style="background-color:{{{bgcolor|#e3e3e3}}};color:{{{color|#000000}}}" align="center" colspan="3" {{!}} {{#If:{{{soort|}}}|'''{{#If:{{{color|}}}|{{#If:{{{linkcolor|}}}|{{{soort}}}|<font color={{{color}}}>{{{soort}}}</font>}}|{{{soort}}}}}'''}}{{#If:{{{icon|}}}| [[ | {{!}} style="background-color:{{{bgcolor|#e3e3e3}}};color:{{{color|#000000}}}" align="center" colspan="3" {{!}} {{#If:{{{soort|}}}|'''{{#If:{{{color|}}}|{{#If:{{{linkcolor|}}}|{{{soort}}}|<font color={{{color}}}>{{{soort}}}</font>}}|{{{soort}}}}}'''}}{{#If:{{{icon|}}}| [[File:{{{icon}}}|25x19px]]}} | ||
{{!}}-}} | {{!}}-}} | ||
{{#If:{{{kop0|}}}| | {{#If:{{{kop0|}}}| | ||
Line 20: | Line 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" {{!}} [[ | {{#If:{{{image|}}}| {{!}} align="center" colspan="3" {{!}} [[File:{{{image}}}|{{#If:{{{imagewidth|}}}|{{{imagewidth|}}}px|{{#expr:{{{breedte|{{Infobox/width}}}}}-6}}px}}|{{{caption|{{PAGENAME}}}}}]] | ||
{{!}}-}} | {{!}}-}} | ||
{{#If:{{{image|}}}|{{#If:{{{caption|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{caption}}}</small> | {{#If:{{{image|}}}|{{#If:{{{caption|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{caption}}}</small> | ||
Line 26: | Line 26: | ||
{{#If:{{{image|}}}||{{#If:{{{noimage|}}}|{{!}} align="center" colspan="3" {{!}} {{{noimage|}}} | {{#If:{{{image|}}}||{{#If:{{{noimage|}}}|{{!}} align="center" colspan="3" {{!}} {{{noimage|}}} | ||
{{!}}-}}}} | {{!}}-}}}} | ||
{{#If:{{{mainimage|}}}| {{!}} align="center" colspan="3" {{!}} [[ | {{#If:{{{mainimage|}}}| {{!}} align="center" colspan="3" {{!}} [[File:{{{mainimage}}}|{{#If:{{{mainimagewidth|}}}|{{{mainimagewidth|}}}px|{{#expr:{{{breedte|{{Infobox/width}}}}}-6}}px}}|{{{maincaption|{{PAGENAME}}}}}]] | ||
{{!}}-}} | {{!}}-}} | ||
{{#If:{{{mainimage|}}}|{{#If:{{{maincaption|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{maincaption}}}</small> | {{#If:{{{mainimage|}}}|{{#If:{{{maincaption|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{maincaption}}}</small> | ||
Line 32: | Line 32: | ||
{{#If:{{{mainimage|}}}||{{#If:{{{nomainimage|}}}|{{!}} align="center" colspan="3" {{!}} {{{nomainimage|}}} | {{#If:{{{mainimage|}}}||{{#If:{{{nomainimage|}}}|{{!}} align="center" colspan="3" {{!}} {{{nomainimage|}}} | ||
{{!}}-}}}} | {{!}}-}}}} | ||
{{#If:{{{otherimage|}}}| {{!}} align="center" colspan="3" {{!}} [[ | {{#If:{{{otherimage|}}}| {{!}} align="center" colspan="3" {{!}} [[File:{{{otherimage}}}|{{#If:{{{otherimagewidth|}}}|{{{otherimagewidth|}}}px|{{#expr:{{{breedte|{{Infobox/width}}}}}-6}}px}}|{{{othercaption|{{PAGENAME}}}}}]] | ||
{{!}}-}} | {{!}}-}} | ||
{{#If:{{{otherimage|}}}|{{#If:{{{othercaption|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{othercaption}}}</small> | {{#If:{{{otherimage|}}}|{{#If:{{{othercaption|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{othercaption}}}</small> | ||
Line 348: | Line 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" {{!}} [[ | {{#If:{{{image0|}}}| {{!}} align="center" colspan="3" {{!}} [[File:{{{image0|}}}|{{#If:{{{imagewidth0|}}}|{{{imagewidth0|}}}px|{{#expr:{{{breedte|{{Infobox/width}}}}}-6}}px}}|{{{caption0|{{PAGENAME}}}}}]] | ||
{{!}}-}} | {{!}}-}} | ||
{{#If:{{{image0|}}}|{{#If:{{{caption0|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{caption0}}}</small> | {{#If:{{{image0|}}}|{{#If:{{{caption0|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{caption0}}}</small> | ||
Line 354: | Line 354: | ||
{{#If:{{{image0|}}}||{{#If:{{{noimage0|}}}|{{!}} align="center" colspan="3" {{!}} {{{noimage0|}}} | {{#If:{{{image0|}}}||{{#If:{{{noimage0|}}}|{{!}} align="center" colspan="3" {{!}} {{{noimage0|}}} | ||
{{!}}-}}}} | {{!}}-}}}} | ||
{{#If:{{{image1|}}}| {{!}} align="center" colspan="3" {{!}} [[ | {{#If:{{{image1|}}}| {{!}} align="center" colspan="3" {{!}} [[File:{{{image1|}}}|{{#If:{{{imagewidth1|}}}|{{{imagewidth1|}}}px|{{#expr:{{{breedte|{{Infobox/width}}}}}-6}}px}}|{{{caption1|{{PAGENAME}}}}}]] | ||
{{!}}-}} | {{!}}-}} | ||
{{#If:{{{image1|}}}|{{#If:{{{caption1|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{caption1}}}</small> | {{#If:{{{image1|}}}|{{#If:{{{caption1|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{caption1}}}</small> | ||
Line 360: | Line 360: | ||
{{#If:{{{image1|}}}||{{#If:{{{noimage1|}}}|{{!}} align="center" colspan="3" {{!}} {{{noimage1|}}} | {{#If:{{{image1|}}}||{{#If:{{{noimage1|}}}|{{!}} align="center" colspan="3" {{!}} {{{noimage1|}}} | ||
{{!}}-}}}} | {{!}}-}}}} | ||
{{#If:{{{image2|}}}| {{!}} align="center" colspan="3" {{!}} [[ | {{#If:{{{image2|}}}| {{!}} align="center" colspan="3" {{!}} [[File:{{{image2|}}}|{{#If:{{{imagewidth2|}}}|{{{imagewidth2|}}}px|{{#expr:{{{breedte|{{Infobox/width}}}}}-6}}px}}|{{{caption2|{{PAGENAME}}}}}]] | ||
{{!}}-}} | {{!}}-}} | ||
{{#If:{{{image2|}}}|{{#If:{{{caption2|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{caption2}}}</small> | {{#If:{{{image2|}}}|{{#If:{{{caption2|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{caption2}}}</small> | ||
{{!}}-}}}} | {{!}}-}}}} | ||
{{#If:{{{image3|}}}| {{!}} align="center" colspan="3" {{!}} [[ | {{#If:{{{image3|}}}| {{!}} align="center" colspan="3" {{!}} [[File:{{{image3|}}}|{{#If:{{{imagewidth3|}}}|{{{imagewidth3|}}}px|{{#expr:{{{breedte|{{Infobox/width}}}}}-6}}px}}|{{{caption3|{{PAGENAME}}}}}]] | ||
{{!}}-}} | {{!}}-}} | ||
{{#If:{{{image3|}}}|{{#If:{{{caption3|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{caption3}}}</small> | {{#If:{{{image3|}}}|{{#If:{{{caption3|}}}| {{!}} align="center" colspan="3" {{!}} <small>{{{caption3}}}</small> | ||
Line 472: | Line 472: | ||
| image = plaatje.png | | image = plaatje.png | ||
| caption = CAPTION | | caption = CAPTION | ||
| main1 = [[File:main1.png|{{Infobox/ | | main1 = [[File:main1.png|{{Infobox/imagewidth}}px]] | ||
| kop1 = KOP1 | | kop1 = KOP1 | ||
| head1_1 = HEAD1_1 | item1_1 = ITEM1_1 | | head1_1 = HEAD1_1 | item1_1 = ITEM1_1 | ||
Line 510: | Line 510: | ||
| image = plaatje.png | | image = plaatje.png | ||
| caption = CAPTION | | caption = CAPTION | ||
| main1 = [[File:main1.png|{{Infobox/ | | main1 = [[File:main1.png|{{Infobox/imagewidth}}px]] | ||
| kop1 = KOP1 | | kop1 = KOP1 | ||
| head1_1 = HEAD1_1 | item1_1 = ITEM1_1 | | head1_1 = HEAD1_1 | item1_1 = ITEM1_1 |
Revision as of 01:09, 31 October 2015
Infobox generic |
Template description
KOP | |||||||
BREED | |||||||
SOORT File:Icon.png | |||||||
KOP0 | |||||||
BREED0 | |||||||
CAPTION | |||||||
CAPTION | |||||||
File:Main1.png | |||||||
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 |
Purpose
Het sjabloon {{Infobox generic}} is gemaakt om eenvoudig functioneel gelijksoortige sjablonen te maken en niet bedoeld om direct in een artikel te gebruiken.
Use
Onderstaand een voorbeeld met rechts het resultaat. De volledige lijst van parameters, die naar behoefte gekopieerd kunnen worden, staat op de overlegpagina.
{{Infobox generic | kop = KOP | breed = BREED | soort = SOORT | icon = icon.png | kop0 = KOP0 | breed0 = BREED0 | image = plaatje.png | caption = CAPTION | main1 = [[File:main1.png|{{Infobox/imagewidth}}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.png | 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 }}