|
|
Linje 24: |
Linje 24: |
| {{chart | | | | | | | MEG |MEG='''Probanten'''}} | | {{chart | | | | | | | MEG |MEG='''Probanten'''}} |
| {{chart/end}} | | {{chart/end}} |
|
| |
| ==Parametere==
| |
| Denne malen aksepterer opptil 50 ikke navngitte parametere, hver av disse angir en '''flis''' eller '''boks'''.
| |
| * '''Bokser''' kan i tillegg til tekst inneholde linker til andre sider og innholdet i hver boks er angitt ved å bruke ekstra navneparametere knyttet til malens formål. Hver boks er '''tre fliser bred''' og har normalt en svart marg som er to piksler bred. Bokser kan ha hvilket som helst navn, så lenge de er gyldige mal parameter navn, disse skal minimum ha to bokstaver.
| |
| * '''Fliser''' er linjefigurer som sammen brukes for å knytte sammen boksene. De inneholder varierende typer av horisontale og vertikale linjer, samt hjørner og kryss som behøves. Disse flisene er spesifisert ved å bruke en kode på en eller to symboler. Denne koden er mer eller mindre sammenlignbart med figuren på flisen som skal brukes. Det finnes også tomme fliser, som brukes for å lage mellomrom og koden er da et tomt mellomrom, en oversikt over tilgjengelige fliser sees under:
| |
|
| |
| {| style="float: left; margin-left: 1em;"
| |
| |+ '''Heltrukne linjer:'''
| |
| |-
| |
| | {{big|<code>!</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|!}}{{chart/end}} ||
| |
| | {{big|<code>,</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|,}}{{chart/end}} ||
| |
| | {{big|<code>v</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|v}}{{chart/end}} ||
| |
| | {{big|<code>.</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|.}}{{chart/end}} ||
| |
| |-
| |
| | {{big|<code>-</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|-}}{{chart/end}} ||
| |
| | {{big|<code>)</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|)}}{{chart/end}} ||
| |
| | {{big|<code>+</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|+}}{{chart/end}} ||
| |
| | {{big|<code>(</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|(}}{{chart/end}} ||
| |
| |-
| |
| | || ||
| |
| | {{big|<code>`</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|`}}{{chart/end}} ||
| |
| | {{big|<code>^</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|^}}{{chart/end}} ||
| |
| | {{big|<code>'</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|'}}{{chart/end}} ||
| |
| |}
| |
| {| style="float: left; margin-left: 1em;"
| |
| |+ '''Stiplede linjer:'''
| |
| |-
| |
| | {{big|<code>:</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|:}}{{chart/end}} ||
| |
| | {{big|<code>F</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|F}}{{chart/end}} ||
| |
| | {{big|<code>V</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|V}}{{chart/end}} ||
| |
| | {{big|<code>7</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|7}}{{chart/end}} ||
| |
| |-
| |
| | {{big|<code>~</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|~}}{{chart/end}} ||
| |
| | {{big|<code>D</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|D}}{{chart/end}} ||
| |
| | {{big|<code>%</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|%}}{{chart/end}} ||
| |
| | {{big|<code>C</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|C}}{{chart/end}} ||
| |
| |-
| |
| | || ||
| |
| | {{big|<code>L</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|L}}{{chart/end}} ||
| |
| | {{big|<code>A</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|A}}{{chart/end}} ||
| |
| | {{big|<code>J</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|J}}{{chart/end}} ||
| |
| |}
| |
| {| style="float: left; margin-left: 1em;"
| |
| |+ '''Prikkede linjer:'''
| |
| |-
| |
| | {{big|<code>Q</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|Q}}{{chart/end}} ||
| |
| | {{big|<code>S</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|S}}{{chart/end}} ||
| |
| | {{big|<code>M</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|M}}{{chart/end}} ||
| |
| | {{big|<code>T</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|T}}{{chart/end}} ||
| |
| |-
| |
| | {{big|<code>P</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|P}}{{chart/end}} ||
| |
| | {{big|<code>H</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|H}}{{chart/end}} ||
| |
| | {{big|<code>R</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|R}}{{chart/end}} ||
| |
| | {{big|<code>G</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|G}}{{chart/end}} ||
| |
| |-
| |
| | || ||
| |
| | {{big|<code>Y</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|Y}}{{chart/end}} ||
| |
| | {{big|<code>W</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|W}}{{chart/end}} ||
| |
| | {{big|<code>Z</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|Z}}{{chart/end}} ||
| |
| |}
| |
| {| style="float: left; margin-left: 1em;"
| |
| |+ '''Kombinert:'''
| |
| |-
| |
| | || ||
| |
| | {{big|<code>j</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|j}}{{chart/end}} ||
| |
| | || ||
| |
| | || ||
| |
| | {{big|<code>y</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|y}}{{chart/end}} ||
| |
| | || ||
| |
| | || ||
| |
| | || ||
| |
| | {{big|<code>r</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|r}}{{chart/end}} ||
| |
| | || ||
| |
| | || ||
| |
| | {{big|<code>m</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|m}}{{chart/end}} ||
| |
| | || ||
| |
| | || ||
| |
| | || ||
| |
| | {{big|<code>r2</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|r2}}{{chart/end}} ||
| |
| | || ||
| |
| | || ||
| |
| | {{big|<code>m2</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|m2}}{{chart/end}} ||
| |
| | || ||
| |
| |-
| |
| | {{big|<code>d</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|d}}{{chart/end}} ||
| |
| | {{big|<code>*</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|*}}{{chart/end}} ||
| |
| | {{big|<code>c</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|c}}{{chart/end}} ||
| |
| | {{big|<code>f</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|f}}{{chart/end}} ||
| |
| | {{big|<code>t</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|t}}{{chart/end}} ||
| |
| | {{big|<code>e</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|e}}{{chart/end}} ||
| |
| | || ||
| |
| | {{big|<code>k</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|k}}{{chart/end}} ||
| |
| | {{big|<code>a</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|a}}{{chart/end}} ||
| |
| | {{big|<code>l</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|l}}{{chart/end}} ||
| |
| | {{big|<code>o</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|o}}{{chart/end}} ||
| |
| | {{big|<code>b</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|b}}{{chart/end}} ||
| |
| | {{big|<code>p</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|p}}{{chart/end}} ||
| |
| | || ||
| |
| | {{big|<code>k2</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|k2}}{{chart/end}} ||
| |
| | {{big|<code>a2</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|a2}}{{chart/end}} ||
| |
| | {{big|<code>l2</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|l2}}{{chart/end}} ||
| |
| | {{big|<code>o2</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|o2}}{{chart/end}} ||
| |
| | {{big|<code>b2</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|b2}}{{chart/end}} ||
| |
| | {{big|<code>p2</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|p2}}{{chart/end}} ||
| |
| |-
| |
| | || ||
| |
| | {{big|<code>i</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|i}}{{chart/end}} ||
| |
| | || ||
| |
| | || ||
| |
| | {{big|<code>h</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|h}}{{chart/end}} ||
| |
| | || ||
| |
| | || ||
| |
| | || ||
| |
| | {{big|<code>q</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|q}}{{chart/end}} ||
| |
| | || ||
| |
| | || ||
| |
| | {{big|<code>n</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|n}}{{chart/end}} ||
| |
| | || ||
| |
| | || ||
| |
| | || ||
| |
| | {{big|<code>q2</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|q2}}{{chart/end}} ||
| |
| | || ||
| |
| | || ||
| |
| | {{big|<code>n2</code>}} || style="border: 1px solid gray;" | {{chart/start}}{{chart|n2}}{{chart/end}} ||
| |
| | || ||
| |
| |}
| |
| <br clear="both" />
| |
|
| |
| ==Utseende attributer==
| |
| Utseende til boksene på en rad kan styres ved hjelp av følgende valgfrie mal parametere:
| |
| * '''border''' beskriver bredden av boksens marg i piksler.
| |
| * '''boxstyle''' kan brukes for å knytte andre CSS koder direkte til boksens utseende, eksempelvis denne koden:
| |
|
| |
| <pre><nowiki>
| |
| {{chart/start}}
| |
| {{chart|border=1|boxstyle=background:green; | | FOO |y| BAR | |FOO=Box 1|BAR=Box 2}}
| |
| {{chart | | |,|-|^|-|.| | }}
| |
| {{chart|border=3|boxstyle=background:yellow; | | FOO | | BAR | |FOO=Box 3|BAR=Box 4}}
| |
| {{chart/end}}
| |
| </nowiki></pre>
| |
|
| |
| gir dette resultatet:
| |
|
| |
| {{chart/start}}
| |
| {{chart|border=1|boxstyle=background:green; | | FOO |y| BAR | |FOO=Box 1|BAR=Box 2}}
| |
| {{chart | | |,|-|^|-|.| | }}
| |
| {{chart|border=3|boxstyle=background:yellow; | | FOO | | BAR | |FOO=Box 3|BAR=Box 4}}
| |
| {{chart/end}}
| |
|
| |
| Utseende attributer kan også brukes for å bestemme utseende av individuelle bokser innenfor en linje, som i eksempelet under:
| |
|
| |
| <pre><nowiki>
| |
| {{chart/start}}
| |
| {{chart| | | | |CLEAR| | | | |CLEAR=Clear box}}
| |
| {{chart| |,|-|-|'|!|`|-|-|.| }}
| |
| {{chart|RED |~|GREEN|~|BLUE |RED=Red box|GREEN=Green box|BLUE=Blue box
| |
| |boxstyle_RED =background-color: red;
| |
| |boxstyle_GREEN=background-color: green;
| |
| |boxstyle_BLUE =background-color: blue;
| |
| }}
| |
| {{chart/end}}
| |
| </nowiki></pre>
| |
|
| |
| som gir dette resultatet:
| |
|
| |
| {{chart/start}}
| |
| {{chart| | | | |CLEAR| | | | |CLEAR=Clear box}}
| |
| {{chart| |,|-|-|'|!|`|-|-|.| }}
| |
| {{chart|RED |~|GREEN|~|BLUE |RED=Red box|GREEN=Green box|BLUE=Blue box
| |
| |boxstyle_RED =background-color: red;
| |
| |boxstyle_GREEN=background-color: green;
| |
| |boxstyle_BLUE =background-color: blue;
| |
| }}
| |
| {{chart/end}}
| |
|
| |
| {{Warnsign|'''Advarsel:'''}} Ved å spesifisere utseende attributer for individuelle navngitte bokser, må boksens navn være plassert til '''venstre''' i området reservert for dette i malen (som i "<code>|RED |</code>" isteden for "<code>| RED |</code>" i eksempelet over), ellers vil malen se etter utseende parametere med mellomrom i navnet.
| |
|
| |
| {{tl|chart/start}} malen aksepterer også en valgfri '''utseende''' parameter som kan bli brukt til å bestemme CSS utseende for hele diagrammet.
| |
|
| |
| ==Feilmeldinger==
| |
| * "{{red|Mal:Chart/cellb}}" Forårsakes ved å bytte <code>|}}</code> - til <code>| }}</code>.
| |
| * "{{red|Mal:Chart/celltMal:Chart/cellb}}" Forårsakes ved å bytte <code>||</code> - til <code>| |</code>, eller <code>|}}</code> - til <code>| }}</code>.
| |
| * "{{red|Mal:Chart/celly tMal:Chart/celly b}}" Forårsakes ved å bytte <code>|y |</code> - til <code>|y|</code>.
| |
|
| |
|
| |
|
| [[Kategori:Anetavlemaler]] | | [[Kategori:Anetavlemaler]] |