Ero sivun ”Malline:Navigointilaatikko” versioiden välillä

Mummilan wikistä
Ei muokkausyhteenvetoa
Ei muokkausyhteenvetoa
Rivi 2: Rivi 2:
{| style="width: 100%;"
{| style="width: 100%;"
|+ <span style="display: block; background-color: {{{tausta|#eee}}}; margin: 0 2px;">{{{otsikko}}}</span>
|+ <span style="display: block; background-color: {{{tausta|#eee}}}; margin: 0 2px;">{{{otsikko}}}</span>
{{ #if: {{ #if: {{{ryhmä1|}}} | true |{{{lista1|}}} }} ||-
{{ #if: {{ #if: {{{ryhmä1|}}} | true |{{{lista1|}}} }} |{{!}}-
   !style="width: 18%; background-color: {{{tausta|#eee}}};" {{!}} {{{ryhmä1|&nbsp;}}}
   !style="width: 18%; background-color: {{{tausta|#eee}}};" {{!}} {{{ryhmä1|&nbsp;}}}
   | {{{lista1|&nbsp;}}} }}
   {{!}} {{{lista1|&nbsp;}}} }}
{{ #if: {{ #if: {{{ryhmä2|}}} | true |{{{lista2|}}} }} ||-
{{ #if: {{ #if: {{{ryhmä2|}}} | true |{{{lista2|}}} }} |{{!}}-
   !style="width: 18%; background-color: {{{tausta|#eee}}};" {{!}} {{{ryhmä2|&nbsp;}}}
   !style="width: 18%; background-color: {{{tausta|#eee}}};" {{!}} {{{ryhmä2|&nbsp;}}}
   | {{{lista2|&nbsp;}}} }}
   {{!}} {{{lista2|&nbsp;}}} }}
{{ #if: {{ #if: {{{ryhmä3|}}} | true |{{{lista3|}}} }} |{{!}}-
{{ #if: {{ #if: {{{ryhmä3|}}} | true |{{{lista3|}}} }} |{{!}}-
   !style="width: 18%; background-color: {{{tausta|#eee}}};" {{!}} {{{ryhmä3|&nbsp;}}}
   !style="width: 18%; background-color: {{{tausta|#eee}}};" {{!}} {{{ryhmä3|&nbsp;}}}

Versio 6. helmikuuta 2009 kello 19.20

{{{otsikko}}}
{{{ryhmä1}}} {{{lista1}}}
{{{ryhmä2}}} {{{lista2}}}
{{{ryhmä3}}} {{{lista3}}}

Tätä laatikkomallinetta käytetään kopioimalla seuraava pätkä ja täyttämällä parametrit:

{{navigointilaatikko
|otsikko=
|ryhmä1=
|lista1=
|ryhmä2=
|lista2=
|ryhmä3=
|lista3=
|leveys=
}}

Leveys kannattaa antaa prosentteina (esim. 80%) mallineen sisältävän palstan leveydestä. Oletusleveys on 90 prosenttia.