Sjabloon:Infobox generiek: verschil tussen versies

Uit Wiki Raamsdonks Historie
k (1 versie geïmporteerd)
k (1 versie geïmporteerd)
 
(10 tussenliggende versies door 6 gebruikers niet weergegeven)
Regel 233: Regel 233:
{{!}}-}}
{{!}}-}}
{{#If:{{{kop5|}}}|
{{#If:{{{kop5|}}}|
{{#If:{{{breed5|}}}{{{links5|}}}{{{item5_1|}}}{{{item5_2|}}}{{{item5_3|}}}{{{item5_4|}}}{{{item5_5|}}}{{{item5_6|}}}{{{item5_7|}}}{{{item5_8|}}}{{{item5_9|}}}{{{item5_10|}}}{{{item5_11|}}}{{{item5_12|}}}{{{toonkop5|}}}|
{{#If:{{{breed5|}}}{{{links5|}}}{{{item5_1|}}}{{{item5_2|}}}{{{item5_3|}}}{{{item5_4|}}}{{{item5_5|}}}{{{item5_6|}}}{{{item5_7|}}}{{{item5_8|}}}{{{item5_9|}}}{{{item5_10|}}}{{{item5_11|}}}{{{item5_12|}}}{{{item5_13|}}}{{{toonkop5|}}}|
! class="infobox-kop" {{#if:{{{bgcolor|}}}|style="background-color:{{{bgcolor}}}; {{#if:{{{color|}}}|color:{{{color}}};}}"}} colspan="3" {{!}} {{#IfEq:{{{kop5}}}|----||{{{kop5}}}}}
! class="infobox-kop" {{#if:{{{bgcolor|}}}|style="background-color:{{{bgcolor}}}; {{#if:{{{color|}}}|color:{{{color}}};}}"}} colspan="3" {{!}} {{#IfEq:{{{kop5}}}|----||{{{kop5}}}}}
{{!}}-}}}}
{{!}}-}}}}
Regel 276: Regel 276:
{{!}} colspan="2" {{!}} {{{item5_12}}}
{{!}} colspan="2" {{!}} {{{item5_12}}}
{{!}}-}}
{{!}}-}}
{{#If:{{{head5_13|}}}{{{item5_13|}}}{{{head5_14|}}}{{{item5_14|}}}| {{!}} colspan="3" style="text-align: center; color: red;" {{!}} '''Infoboxfout''': parameters <kbd>head5_#</kbd> en <kbd>item5_#</kbd> gaan t/m '''12'''. Meer informatie onder deze kop toevoegen kan met <kbd>head6_1</kbd> en <kbd>item6_1</kbd>.
{{#If:{{{item5_13|}}}| ! {{{head5_13|}}}
{{!}} colspan="2" {{!}} {{{item5_13}}}
{{!}}-}}
{{#If:{{{head5_14|}}}{{{item5_14|}}}{{{head5_15|}}}{{{item5_15|}}}| {{!}} colspan="3" style="text-align: center; color: red;" {{!}} '''Infoboxfout''': parameters <kbd>head5_#</kbd> en <kbd>item5_#</kbd> gaan t/m '''13'''. Meer informatie onder deze kop toevoegen kan met <kbd>head6_1</kbd> en <kbd>item6_1</kbd>.
{{!}}-}}
{{!}}-}}
{{#If:{{{kop6|}}}|
{{#If:{{{kop6|}}}|
Regel 705: Regel 708:
{{{!}} class="ta-center" style="width:100%" cellspacing="0" cellpadding="0"
{{{!}} class="ta-center" style="width:100%" cellspacing="0" cellpadding="0"
{{!}} style="width:33%" {{!}} {{{drie7_1|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drie7_2|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drie7_3|}}}
{{!}} style="width:33%" {{!}} {{{drie7_1|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drie7_2|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drie7_3|}}}
{{!}}}
{{!}}-}}}}
{{#If:{{{driekop8|}}}{{{hidedriekop8|}}}|
{{#If:{{{drie8_1|}}}{{{drie8_3|}}}|
{{#If:{{{hidedriekop8|}}}||
! class="infobox-kop" {{#if:{{{bgcolor|}}}|style="background-color:{{{bgcolor}}}; {{#if:{{{color|}}}|color:{{{color}}};}}"}} colspan="3" {{!}} {{{driekop8}}}}}
{{!}}-
{{!}} colspan="3" {{!}}
{{{!}} class="ta-center" style="width:100%" cellspacing="0" cellpadding="0"
{{!}} style="width:33%" {{!}} {{{drie8_1|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drie8_2|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drie8_3|}}}
{{!}}}
{{!}}-}}}}
{{#If:{{{driekop9|}}}{{{hidedriekop9|}}}|
{{#If:{{{drie9_1|}}}{{{drie9_3|}}}|
{{#If:{{{hidedriekop9|}}}||
! class="infobox-kop" {{#if:{{{bgcolor|}}}|style="background-color:{{{bgcolor}}}; {{#if:{{{color|}}}|color:{{{color}}};}}"}} colspan="3" {{!}} {{{driekop9}}}}}
{{!}}-
{{!}} colspan="3" {{!}}
{{{!}} class="ta-center" style="width:100%" cellspacing="0" cellpadding="0"
{{!}} style="width:33%" {{!}} {{{drie9_1|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drie9_2|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drie9_3|}}}
{{!}}}
{{!}}-}}}}
{{#If:{{{driekopA|}}}{{{hidedriekopA|}}}|
{{#If:{{{drieA_1|}}}{{{drieA_3|}}}|
{{#If:{{{hidedriekopA|}}}||
! class="infobox-kop" {{#if:{{{bgcolor|}}}|style="background-color:{{{bgcolor}}}; {{#if:{{{color|}}}|color:{{{color}}};}}"}} colspan="3" {{!}} {{{driekopA}}}}}
{{!}}-
{{!}} colspan="3" {{!}}
{{{!}} class="ta-center" style="width:100%" cellspacing="0" cellpadding="0"
{{!}} style="width:33%" {{!}} {{{drieA_1|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drieA_2|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drieA_3|}}}
{{!}}}
{{!}}-}}}}
{{#If:{{{driekopB|}}}{{{hidedriekopB|}}}|
{{#If:{{{drieB_1|}}}{{{drieB_3|}}}|
{{#If:{{{hidedriekopB|}}}||
! class="infobox-kop" {{#if:{{{bgcolor|}}}|style="background-color:{{{bgcolor}}}; {{#if:{{{color|}}}|color:{{{color}}};}}"}} colspan="3" {{!}} {{{driekopB}}}}}
{{!}}-
{{!}} colspan="3" {{!}}
{{{!}} class="ta-center" style="width:100%" cellspacing="0" cellpadding="0"
{{!}} style="width:33%" {{!}} {{{drieB_1|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drieB_2|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drieB_3|}}}
{{!}}}
{{!}}-}}}}
{{#If:{{{driekopC|}}}{{{hidedriekopC|}}}|
{{#If:{{{drieC_1|}}}{{{drieC_3|}}}|
{{#If:{{{hidedriekopC|}}}||
! class="infobox-kop" {{#if:{{{bgcolor|}}}|style="background-color:{{{bgcolor}}}; {{#if:{{{color|}}}|color:{{{color}}};}}"}} colspan="3" {{!}} {{{driekopC}}}}}
{{!}}-
{{!}} colspan="3" {{!}}
{{{!}} class="ta-center" style="width:100%" cellspacing="0" cellpadding="0"
{{!}} style="width:33%" {{!}} {{{drieC_1|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drieC_2|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drieC_3|}}}
{{!}}}
{{!}}-}}}}
{{#If:{{{driekopD|}}}{{{hidedriekopD|}}}|
{{#If:{{{drieD_1|}}}{{{drieD_3|}}}|
{{#If:{{{hidedriekopD|}}}||
! class="infobox-kop" {{#if:{{{bgcolor|}}}|style="background-color:{{{bgcolor}}}; {{#if:{{{color|}}}|color:{{{color}}};}}"}} colspan="3" {{!}} {{{driekopD}}}}}
{{!}}-
{{!}} colspan="3" {{!}}
{{{!}} class="ta-center" style="width:100%" cellspacing="0" cellpadding="0"
{{!}} style="width:33%" {{!}} {{{drieD_1|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drieD_2|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drieD_3|}}}
{{!}}}
{{!}}-}}}}
{{#If:{{{driekopE|}}}{{{hidedriekopE|}}}|
{{#If:{{{drieE_1|}}}{{{drieE_3|}}}|
{{#If:{{{hidedriekopE|}}}||
! class="infobox-kop" {{#if:{{{bgcolor|}}}|style="background-color:{{{bgcolor}}}; {{#if:{{{color|}}}|color:{{{color}}};}}"}} colspan="3" {{!}} {{{driekopE}}}}}
{{!}}-
{{!}} colspan="3" {{!}}
{{{!}} class="ta-center" style="width:100%" cellspacing="0" cellpadding="0"
{{!}} style="width:33%" {{!}} {{{drieE_1|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drieE_2|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drieE_3|}}}
{{!}}}
{{!}}-}}}}
{{#If:{{{driekopF|}}}{{{hidedriekopF|}}}|
{{#If:{{{drieF_1|}}}{{{drieF_3|}}}|
{{#If:{{{hidedriekopF|}}}||
! class="infobox-kop" {{#if:{{{bgcolor|}}}|style="background-color:{{{bgcolor}}}; {{#if:{{{color|}}}|color:{{{color}}};}}"}} colspan="3" {{!}} {{{driekopF}}}}}
{{!}}-
{{!}} colspan="3" {{!}}
{{{!}} class="ta-center" style="width:100%" cellspacing="0" cellpadding="0"
{{!}} style="width:33%" {{!}} {{{drieF_1|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drieF_2|}}} {{!!}}&nbsp;{{!!}} style="width:33%" {{!}} {{{drieF_3|}}}
{{!}}}
{{!}}}
{{!}}-}}}}
{{!}}-}}}}
Regel 728: Regel 811:
{{{!}} cellspacing="0" cellpadding="0"
{{{!}} cellspacing="0" cellpadding="0"
{{!}} style="vertical-align:middle;" {{!}} '''Portaal'''&nbsp; [[Bestand:Portal.svg|22px|class=noviewer|Portaalicoon]] &nbsp;
{{!}} style="vertical-align:middle;" {{!}} '''Portaal'''&nbsp; [[Bestand:Portal.svg|22px|class=noviewer|Portaalicoon]] &nbsp;
{{!}} class="ta-left" {{!}} '''[[Portaal:{{{portaal}}}|{{{portaal}}}]] {{#If:{{{portaal2|}}}|<br />[[Portaal:{{{portaal2}}}|{{{portaal2}}}]]}} {{#If:{{{portaal3|}}}|<br />[[Portaal:{{{portaal3}}}|{{{portaal3}}}]]}}'''
{{!}} class="ta-left" {{!}} '''[[Portaal:{{{portaal}}}|{{#If:{{{color|}}}|<span style="color:{{{color}}}">{{{portaal}}}</span>|{{{portaal}}}}}]] {{#If:{{{portaal2|}}}|<br />[[Portaal:{{{portaal2}}}|{{#If:{{{color|}}}|<span style="color:{{{color}}}">{{{portaal2}}}</span>|{{{portaal2}}}}}]]}} {{#If:{{{portaal3|}}}|<br />[[Portaal:{{{portaal3}}}|{{#If:{{{color|}}}|<span style="color:{{{color}}}">{{{portaal3}}}</span>|{{{portaal3}}}}}]]}}'''
{{!}}}
{{!}}}
{{!}}-}}
{{!}}-}}
{{#If:{{{portaalZ|}}} | {{!}} class="infobox-kop" {{#if:{{{bgcolor|}}}|style="background-color:{{{bgcolor}}}; {{#if:{{{color|}}}|color:{{{color}}};}}"}} colspan="3" {{!}}
{{#If:{{{portaalZ|}}} | {{!}} class="infobox-kop" {{#if:{{{bgcolor|}}}|style="background-color:{{{bgcolor}}}; {{#if:{{{color|}}}|color:{{{color}}};}}"}} colspan="3" {{!}}
<div style="vertical-align:middle;">'''Portaal&nbsp; [[Bestand:Portal.svg|22px|class=noviewer|Portaalpictogram]]&nbsp; [[Portaal:{{{portaalZ}}}|{{{portaalZ}}}]]'''</div>
<div style="vertical-align:middle;">'''Portaal&nbsp; [[Bestand:Portal.svg|22px|class=noviewer|Portaalpictogram]]&nbsp; [[Portaal:{{{portaalZ}}}|{{#If:{{{color|}}}|<span style="color:{{{color}}}">{{{portaalZ}}}</span>|{{{portaalZ}}}}}]]'''</div>
{{!}}-}}
{{!}}-}}
|}<includeonly>{{Wikidata afbeelding|1={{{image|}}}{{{image0|}}}{{{image1|}}}{{{otherimage|}}}{{{afbeelding|}}}|2={{{mainimage|}}} }}</includeonly><noinclude>
|}<includeonly>{{Wikidata afbeelding|1={{{image|}}}{{{image0|}}}{{{image1|}}}{{{otherimage|}}}{{{afbeelding|}}}|2={{{mainimage|}}} }}</includeonly><noinclude>
Regel 770: Regel 853:
| links31  = LINKS31
| links31  = LINKS31
| driekop1 = DRIEKOP1
| driekop1 = DRIEKOP1
| drie1_1  = DRIE1_1  | drie1_2 = DRIE1_2  | drie1_3 = DRIE1_3  
| drie1_1  = DRIE1_1  | drie1_2 = DRIE1_2  | drie1_3 = DRIE1_3
| driekop2 = ...
| drie2_1  = ...      | drie2_2 = ...      | drie2_3 = ...
| driekopF = DRIEKOPF
| drieF_1  = DRIEF_1  | drieF_2 = DRIEF_2  | drieF_3 = DRIEF_3
| kop99    = KOP99
| kop99    = KOP99
| portaal  = PORTAAL
| portaal  = PORTAAL
Regel 781: Regel 868:


== Gebruik ==
== Gebruik ==
Onderstaand een voorbeeld met rechts het resultaat. De '''[[Overleg sjabloon:Infobox generiek|volledige lijst van parameters]]''', die naar behoefte gekopieerd kunnen worden, staat op de overlegpagina.
Onderstaand een voorbeeld met rechts het resultaat. De '''[[Overleg sjabloon:Infobox generiek|volledige lijst van parameters]]''', die naar behoefte gekopieerd kan worden, staat op de overlegpagina.
<pre>{{Infobox generiek
<pre>{{Infobox generiek
| kop      = KOP
| kop      = KOP
Regel 815: Regel 902:
| links31  = LINKS31
| links31  = LINKS31
| driekop1 = DRIEKOP1
| driekop1 = DRIEKOP1
| drie1_1  = DRIE1_1  | drie1_2 = DRIE1_2  | drie1_3 = DRIE1_3  
| drie1_1  = DRIE1_1  | drie1_2 = DRIE1_2  | drie1_3 = DRIE1_3
| driekop2 = ...
| drie2_1  = ...      | drie2_2 = ...      | drie2_3 = ...
| driekopF = DRIEKOPF
| drieF_1  = DRIEF_1  | drieF_2 = DRIEF_2  | drieF_3 = DRIEF_3
| kop99    = KOP99
| kop99    = KOP99
| portaal  = PORTAAL
| portaal  = PORTAAL

Huidige versie van 2 nov 2023 om 11:20

Infobox generiek
Sjabloondocumentatie​
KOP
BREED
SOORT
KOP0
BREED0
KOP1
HEAD1_1 ITEM1_1
HEAD1_2 ITEM1_2
HEAD1_3 ITEM1_3
... ...
HEAD1_9 ITEM1_9
HEAD1_10 ITEM1_10
HEAD1_11 ITEM1_11
HEAD1_12 ITEM1_12
KOP2
BREED2
LINKS2
HEAD2_1 ITEM2_1 ITEM2_1r
... ...
HEAD2_12 ITEM2_12
HEAD4_1 ITEM4_1
HEAD4_6 ITEM4_6
OTHERKOP
OTHER1
LINKS31
DRIEKOP1
DRIE1_1   DRIE1_2   DRIE1_3
...
...   ...   ...
DRIEKOPF
DRIEF_1   DRIEF_2   DRIEF_3
KOP99
Portaal  Portaalicoon   PORTAAL
PORTAAL2

Het sjabloon Infobox generiek is gemaakt om eenvoudig functioneel gelijksoortige sjablonen te maken en niet bedoeld om direct in een artikel te gebruiken.

Let op: Gebruik deze infobox alleen op infoboxsjablonen en nooit direct op artikelen.

Gebruik

Onderstaand een voorbeeld met rechts het resultaat. De volledige lijst van parameters, die naar behoefte gekopieerd kan 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  = ...       | item1_4  = ...
| head1_9  = HEAD1_9   | item1_9  = ITEM1_9
| head1_10 = HEAD1_10  | item1_10 = ITEM1_10
| head1_11 = HEAD1_11  | item1_11 = ITEM1_11
| head1_12 = HEAD1_12  | item1_12 = ITEM1_12
| kop2     = KOP2
| breed2   = BREED2
| links2   = LINKS2
| head2_1  = HEAD2_1   | item2_1  = ITEM2_1   | item2_1r = ITEM2_1r
| head2_2  = ...       | item2_2  = ...
| head2_12 = HEAD2_12  | item2_12 = ITEM2_12
| 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
| driekop2 = ...
| drie2_1  = ...       | drie2_2 = ...       | drie2_3 = ...
| driekopF = DRIEKOPF
| drieF_1  = DRIEF_1   | drieF_2 = DRIEF_2   | drieF_3 = DRIEF_3
| kop99    = KOP99
| portaal  = PORTAAL
| portaal2 = PORTAAL2
}}