<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>OhjeTaulukoista</title></articleinfo><section><title>Taulukkomerkinnät</title><para>Taulukon luomiseksi käytä rivin sekä alussa että lopussa kahta pystyviivaa &quot;<code>||</code>&quot;. Kyseisten aloitus- ja lopetusmerkkien väliin voi luoda taulukon soluja erottamalla solut toisistaan pystyviivoilla &quot;<code>||</code>&quot;. Jos haluat luoda keskitetyn solun, joka yhdistää useita sarakkeita, käytä useampaa kuin kahta pystyviivaa. Vierekkäiset rivit, jotka on sisennetty samalla tasolle ja sisältävät taulukkomerkintöjä, yhdistetään yhdeksi taulukoksi. </para><para>Lisätietoja merkinnöistä löytyy sivulta <ulink url="http://research.math.uvt.ro/wiki/OhjeTaulukoista/wiki/OhjeMuokkauksesta#">OhjeMuokkauksesta</ulink>. </para><section><title>Taulukoiden määritteet</title><para>... HTML-määritteet tulee asettaa ilman välejä solujen luomiseen käytettyjen pystyviivojen jälkeen kulmasulkeiden sisään, esimerkkinä <code>||&lt;...&gt;||</code>.  </para><para>The wiki-like markup has the following options: </para><itemizedlist><listitem><para><code>&lt;-2&gt;</code>: colspan </para></listitem><listitem><para><code>&lt;|2&gt;</code>: rowspan </para></listitem><listitem><para><code>&lt;style=&quot;...&quot;&gt;</code> will put that style info into cell (td) html </para></listitem><listitem><para><code>&lt;rowstyle=&quot;...&quot;&gt;</code> will put that style info into row (tr) html </para></listitem><listitem><para><code>&lt;tablestyle=&quot;...&quot;&gt;</code> will put that style info into table (table) html </para></listitem><listitem><para><code>&lt;class=&quot;...&quot;&gt;</code> will put that CSS class into cell (td) html </para></listitem><listitem><para><code>&lt;rowclass=&quot;...&quot;&gt;</code> will put that CSS class into row (tr) html </para></listitem><listitem><para><code>&lt;tableclass=&quot;...&quot;&gt;</code> will put that class into table (table) html </para></listitem><listitem><para><code>&lt;id=&quot;...&quot;&gt;</code> will put that CSS id into cell (td) html </para></listitem></itemizedlist><para>The style stuff is <emphasis>all you need</emphasis> for styling your tables. Just use CSS formatted style there and it will be inlined in the generated HTML tag. Alternatively, the admin and the user (the admin in the theme file, the user via UserPreferences can extend moin's CSS by his own definitions, so users can refer to them using class or id. You can use several options at the same time by writing them one after the other within the same angle brackets (e.g. <code>&lt;tablestyle=&quot;...&quot; rowstyle=&quot;...&quot;&gt;</code> on the first cell, to set both the table-wide style and the first-row style). </para><para>We still support the old table markup, but generate the effect by appending additional values to the <code>style</code> parameter: </para><itemizedlist><listitem><para><code>&lt;50%&gt;</code>: cell width (will append <code>width: 50%;</code> to style) </para></listitem><listitem><para><code>&lt;width=&quot;50%&quot;&gt;</code>: does the same </para></listitem><listitem><para><code>&lt;tablewidth=&quot;100%&quot;&gt;</code>: set table width to 100% (only valid in first table row) </para></listitem><listitem><para><code>&lt;(&gt;</code>: left aligned (will append <code>text-align: left;</code> to style) </para></listitem><listitem><para><code>&lt;:&gt;</code>: centered (will append <code>text-align: center;</code> to style) </para></listitem><listitem><para><code>&lt;)&gt;</code>: right aligned (will append <code>text-align: right;</code> to style) </para></listitem><listitem><para><code>&lt;^&gt;</code>: aligned to top (will append <code>vertical-align: top;</code> to style) </para></listitem><listitem><para><code>&lt;v&gt;</code>: aligned to bottom (will append <code>vertical-align: bottom;</code> to style) </para></listitem><listitem><para><code>&lt;#XXXXXX&gt;</code>: background color (will append <code>background-color: #XXXXXX;</code> to style) </para></listitem><listitem><para><code>&lt;bgcolor=&quot;#XXXXXX&quot;&gt;</code> does the same </para></listitem><listitem><para><code>&lt;rowbgcolor=&quot;#XXXXXX&quot;&gt;</code> set row background color (only valid in first cell) </para></listitem><listitem><para><code>&lt;tablebgcolor=&quot;#XXXXXX&quot;&gt;</code> set table background color </para></listitem></itemizedlist><para>If you use several conflicting options like <code>&lt;(:)&gt;</code>, the last option wins. There is no explicit option for vertical centering (<emphasis>middle</emphasis>), since that is always the default. </para><para>To create a table, you start and end a line using the table marker &quot;<code>||</code>&quot;. Between those start and end markers, you can create any number of cells by separating them with &quot;<code>||</code>&quot;. To get a centered cell that spans several columns, you start that cell with more than one cell marker. Adjacent lines of the same indent level containing table markup are combined into one table. </para><para>For more information on the possible markup, see <ulink url="http://research.math.uvt.ro/wiki/OhjeTaulukoista/wiki/HelpOnEditing#">HelpOnEditing</ulink>. </para></section><section><title>Table Attributes</title><para>Apart from the option to repeat cell markers to get columns spanning several other columns, you can directly set many HTML table attributes. Any attributes have to be placed between angle brackets <code>&lt;...&gt;</code> directly after the cell marker. </para><para>The wiki-like markup has the following options: </para><itemizedlist><listitem><para><code>&lt;-2&gt;</code>: colspan </para></listitem><listitem><para><code>&lt;|2&gt;</code>: rowspan </para></listitem><listitem><para><code>&lt;style=&quot;...&quot;&gt;</code> will put that style info into cell (td) html </para></listitem><listitem><para><code>&lt;rowstyle=&quot;...&quot;&gt;</code> will put that style info into row (tr) html </para></listitem><listitem><para><code>&lt;tablestyle=&quot;...&quot;&gt;</code> will put that style info into table (table) html </para></listitem><listitem><para><code>&lt;class=&quot;...&quot;&gt;</code> will put that CSS class into cell (td) html </para></listitem><listitem><para><code>&lt;rowclass=&quot;...&quot;&gt;</code> will put that CSS class into row (tr) html </para></listitem><listitem><para><code>&lt;tableclass=&quot;...&quot;&gt;</code> will put that class into table (table) html </para></listitem><listitem><para><code>&lt;id=&quot;...&quot;&gt;</code> will put that CSS id into cell (td) html </para></listitem></itemizedlist><para>The style stuff is <emphasis>all you need</emphasis> for styling your tables. Just use CSS formatted style there and it will be inlined in the generated HTML tag. Alternatively, the admin and the user (the admin in the theme file, the user via UserPreferences can extend moin's CSS by his own definitions, so users can refer to them using class or id. You can use several options at the same time by writing them one after the other within the same angle brackets (e.g. <code>&lt;tablestyle=&quot;...&quot; rowstyle=&quot;...&quot;&gt;</code> on the first cell, to set both the table-wide style and the first-row style). </para><para>We still support the old table markup, but generate the effect by appending additional values to the <code>style</code> parameter: </para><itemizedlist><listitem><para><code>&lt;50%&gt;</code>: cell width (will append <code>width: 50%;</code> to style) </para></listitem><listitem><para><code>&lt;width=&quot;50%&quot;&gt;</code>: does the same </para></listitem><listitem><para><code>&lt;tablewidth=&quot;100%&quot;&gt;</code>: set table width to 100% (only valid in first table row) </para></listitem><listitem><para><code>&lt;(&gt;</code>: left aligned (will append <code>text-align: left;</code> to style) </para></listitem><listitem><para><code>&lt;:&gt;</code>: centered (will append <code>text-align: center;</code> to style) </para></listitem><listitem><para><code>&lt;)&gt;</code>: right aligned (will append <code>text-align: right;</code> to style) </para></listitem><listitem><para><code>&lt;^&gt;</code>: aligned to top (will append <code>vertical-align: top;</code> to style) </para></listitem><listitem><para><code>&lt;v&gt;</code>: aligned to bottom (will append <code>vertical-align: bottom;</code> to style) </para></listitem><listitem><para><code>&lt;#XXXXXX&gt;</code>: background color (will append <code>background-color: #XXXXXX;</code> to style) </para></listitem><listitem><para><code>&lt;bgcolor=&quot;#XXXXXX&quot;&gt;</code> does the same </para></listitem><listitem><para><code>&lt;rowbgcolor=&quot;#XXXXXX&quot;&gt;</code> set row background color (only valid in first cell) </para></listitem><listitem><para><code>&lt;tablebgcolor=&quot;#XXXXXX&quot;&gt;</code> set table background color </para></listitem></itemizedlist><para>If you use several conflicting options like <code>&lt;(:)&gt;</code>, the last option wins. There is no explicit option for vertical centering (<emphasis>middle</emphasis>), since that is always the default. </para></section><section><title>Merkintä</title><screen><![CDATA[ UUSI TYYLI: Taulukon asettelu ja HTML:n kaltaiset määritteet::
 ||||||<tablestyle="width: 80%">'''Otsikko'''||
 ||solu 1||solu 2||solu 3||
 ||<rowspan=2> yhtenevät rivit||||<style="background-color: #E0E0FF;"> yhtenevät sarakkeet||
 ||<rowstyle="background-color: #FFFFE0;">solu 2||solu 3||
 Solun leveys::
 || kapea ||<style="width: 99%; text-align: center;"> leveä ||
 Yhtenevät rivit ja sarakkeet::
 ||<|2> kaksi riviä || rivi 1 ||
 || rivi 2 ||
 ||<-2> kolmas rivi kahta saraketta käyttäen ||
 Sijoittelu::
 ||<style="text-align: left;">vasemmalle ||<style="vertical-align: top; text-align: center;"|3> ylös ||<style="vertical-align: bottom;"|3> alas ||
 ||<style="text-align: center;"> keskelle ||
 ||<style="text-align: right;"> oikealle ||
 Kirjain::
 || tavallinen ||<style="font-weight: bold;"> lihavoitu ||<style="color: #FF0000;"> punainen ||<style="color: #FF0000; font-weight: bold;"> lihavoitu ja punainen ||
 Värejä::
 ||<style="background-color: red;"> punainen ||<style="background-color: green;"> vihreä ||<style="background-color: blue;"> sininen ||
]]><![CDATA[
 VANHA TYYLI: Taulukon asettelu ja HTML:n kaltaiset määritteet::
 ||||||<tablewidth="80%">'''Otsikko'''||
 ||solu 1||solu 2||solu 3||
 ||<rowspan=2> kaksi riviä yhdessä||||<bgcolor="#E0E0FF"> kaksi saraketta yhdessä||
 ||<rowbgcolor="#FFFFE0">solu 2||solu 3||
 Solun leveys::
 || kapea ||<:99%> leveä ||
 Yhtenevät rivit ja sarakkeet::
 ||<|2> kaksi riviä || rivi 1 ||
 || rivi 2 ||
 ||<-2> kolmas rivi kahta saraketta käyttäen ||
 Sijoittelu::
 ||<(> vasemmalle ||<^|3> ylös ||<v|3> alas ||
 ||<:> keskelle ||
 ||<)> oikealle ||
 Värejä::
 ||<#FF8080> punainen ||<#80FF80> vihreä ||<#8080FF> sininen ||
 Rivivaihdot solun sisällä::
 || rivi 1<<BR>>rivi 2||]]></screen></section><section><title>Esitys</title><glosslist><glossentry><glossterm>UUSI TYYLI: Taulukon asettelu ja HTML:n kaltaiset määritteet</glossterm><glossdef><listitem override="none"><informaltable><tgroup cols="3"><colspec colname="col_0"/><colspec colname="col_1"/><colspec colname="col_2"/><tbody><row rowsep="1"><entry align="center" colsep="1" nameend="col_2" namest="col_0" rowsep="1"><para><emphasis role="strong">Otsikko</emphasis></para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>solu 1</para></entry><entry colsep="1" rowsep="1"><para>solu 2</para></entry><entry colsep="1" rowsep="1"><para>solu 3</para></entry></row><row rowsep="1"><entry colsep="1" morerows="1" rowsep="1"><para> kaksi riviä yhdessä</para></entry><entry align="center" colsep="1" nameend="col_2" namest="col_1" rowsep="1"><para> kaksi saraketta yhdessä</para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>solu 2</para></entry><entry colsep="1" rowsep="1"><para>solu 3</para></entry></row></tbody></tgroup></informaltable></listitem></glossdef></glossentry><glossentry><glossterm>Solun leveys</glossterm><glossdef><listitem override="none"><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1" colwidth="99*"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para> kapea </para></entry><entry align="center" colsep="1" rowsep="1"><para> leveä </para></entry></row></tbody></tgroup></informaltable></listitem></glossdef></glossentry><glossentry><glossterm>Yhtenevät rivit ja sarakkeet</glossterm><glossdef><listitem override="none"><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry align="center" colsep="1" morerows="1" nameend="col_0" namest="col_0" rowsep="1"><para> kaksi riviä </para></entry><entry colsep="1" rowsep="1"><para> rivi 1 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> rivi 2 </para></entry></row><row rowsep="1"><entry colsep="1" nameend="col_1" namest="col_0" rowsep="1"><para> kolmas rivi käyttäen kahta saraketta </para></entry></row></tbody></tgroup></informaltable></listitem></glossdef></glossentry><glossentry><glossterm>Sijoittelu</glossterm><glossdef><listitem override="none"><informaltable><tgroup cols="3"><colspec colname="col_0"/><colspec colname="col_1"/><colspec colname="col_2"/><tbody><row rowsep="1"><entry align="left" colsep="1" rowsep="1"><para>vasemmalle </para></entry><entry align="center" colsep="1" morerows="2" nameend="col_1" namest="col_1" rowsep="1" valign="top"><para> ylös </para></entry><entry align="center" colsep="1" morerows="2" nameend="col_2" namest="col_2" rowsep="1" valign="bottom"><para> alas </para></entry></row><row rowsep="1"><entry align="center" colsep="1" rowsep="1"><para> keskelle </para></entry></row><row rowsep="1"><entry align="right" colsep="1" rowsep="1"><para> oikealle </para></entry></row></tbody></tgroup></informaltable></listitem></glossdef></glossentry><glossentry><glossterm>Kirjain</glossterm><glossdef><listitem override="none"><informaltable><tgroup cols="4"><colspec colname="col_0"/><colspec colname="col_1"/><colspec colname="col_2"/><colspec colname="col_3"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para> tavallinen </para></entry><entry colsep="1" rowsep="1"><para> lihavoitu </para></entry><entry colsep="1" rowsep="1"><para> punainen </para></entry><entry colsep="1" rowsep="1"><para> lihavoitu ja punainen </para></entry></row></tbody></tgroup></informaltable></listitem></glossdef></glossentry><glossentry><glossterm>Värejä</glossterm><glossdef><listitem override="none"><informaltable><tgroup cols="3"><colspec colname="col_0"/><colspec colname="col_1"/><colspec colname="col_2"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para> punainen </para></entry><entry colsep="1" rowsep="1"><para> vihreä </para></entry><entry colsep="1" rowsep="1"><para> sininen </para></entry></row></tbody></tgroup></informaltable></listitem></glossdef></glossentry><glossentry><glossterm>VANHA TYYLI: Taulukon asettelu ja HTML:n kaltaiset määritteet</glossterm><glossdef><listitem override="none"><informaltable><tgroup cols="3"><colspec colname="col_0"/><colspec colname="col_1"/><colspec colname="col_2"/><tbody><row rowsep="1"><entry align="center" colsep="1" nameend="col_2" namest="col_0" rowsep="1"><para><emphasis role="strong">Otsikko</emphasis></para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>solu 1</para></entry><entry colsep="1" rowsep="1"><para>solu 2</para></entry><entry colsep="1" rowsep="1"><para>solu 3</para></entry></row><row rowsep="1"><entry colsep="1" morerows="1" rowsep="1"><para> kaksi riviä yhdessä</para></entry><entry align="center" colsep="1" nameend="col_2" namest="col_1" rowsep="1"><para> kaksi saraketta yhdessä</para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>solu 2</para></entry><entry colsep="1" rowsep="1"><para>solu 3</para></entry></row></tbody></tgroup></informaltable></listitem></glossdef></glossentry><glossentry><glossterm>Solun leveys</glossterm><glossdef><listitem override="none"><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1" colwidth="99*"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para> kapea </para></entry><entry align="center" colsep="1" rowsep="1"><para> leveä </para></entry></row></tbody></tgroup></informaltable></listitem></glossdef></glossentry><glossentry><glossterm>Yhtenevät rivit ja sarakkeet</glossterm><glossdef><listitem override="none"><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry align="center" colsep="1" morerows="1" nameend="col_0" namest="col_0" rowsep="1"><para> kaksi riviä </para></entry><entry colsep="1" rowsep="1"><para> rivi 1 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> rivi 2 </para></entry></row><row rowsep="1"><entry colsep="1" nameend="col_1" namest="col_0" rowsep="1"><para> kolmas rivi kahta saraketta yhdistäen </para></entry></row></tbody></tgroup></informaltable></listitem></glossdef></glossentry><glossentry><glossterm>Sijoittelu</glossterm><glossdef><listitem override="none"><informaltable><tgroup cols="3"><colspec colname="col_0"/><colspec colname="col_1"/><colspec colname="col_2"/><tbody><row rowsep="1"><entry align="left" colsep="1" rowsep="1"><para> vasemmalle </para></entry><entry align="center" colsep="1" morerows="2" nameend="col_1" namest="col_1" rowsep="1" valign="top"><para> ylös </para></entry><entry align="center" colsep="1" morerows="2" nameend="col_2" namest="col_2" rowsep="1" valign="bottom"><para> alas </para></entry></row><row rowsep="1"><entry align="center" colsep="1" rowsep="1"><para> keskelle </para></entry></row><row rowsep="1"><entry align="right" colsep="1" rowsep="1"><para> oikealle </para></entry></row></tbody></tgroup></informaltable></listitem></glossdef></glossentry><glossentry><glossterm>Värejä</glossterm><glossdef><listitem override="none"><informaltable><tgroup cols="3"><colspec colname="col_0"/><colspec colname="col_1"/><colspec colname="col_2"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para> punainen </para></entry><entry colsep="1" rowsep="1"><para> vihreä </para></entry><entry colsep="1" rowsep="1"><para> sininen </para></entry></row></tbody></tgroup></informaltable></listitem></glossdef></glossentry><glossentry><glossterm>Rivivaihdot solun sisällä</glossterm><glossdef><listitem override="none"><informaltable><tgroup cols="1"><colspec colname="col_0"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para> rivi 1</para><para>rivi 2</para></entry></row></tbody></tgroup></informaltable></listitem></glossdef></glossentry></glosslist></section><section><title>Hae taulukon sisältö muista lähteistä</title><itemizedlist><listitem><para>Pilkulla erotetut arvot, lisätietoja sivulla <ulink url="http://research.math.uvt.ro/wiki/OhjeTaulukoista/wiki/HelpOnParsers#csvparser">HelpOnParsers#csvparser</ulink> </para></listitem><listitem><para>Sivujen sisällyttäminen, lisätietoja sivulla <ulink url="http://research.math.uvt.ro/wiki/OhjeTaulukoista/wiki/HelpOnMacros/Include#">Include</ulink> </para></listitem></itemizedlist></section><section><title>Numeroidut luettelot ja muu monimutkaisempi solujen sisältö</title><para><inlinemediaobject><imageobject><imagedata fileref="http://research.math.uvt.ro/wiki//wiki/OhjeTaulukoista?action=AttachFile&amp;do=get&amp;target=MiniPage.png"/></imageobject><textobject><phrase>MiniPage.png</phrase></textobject></inlinemediaobject> </para><itemizedlist><listitem><para>Lisätietoja sivulla <ulink url="http://moinmoin.wikiwikiweb.de/MacroMarket/MiniPage">MiniPage macro</ulink> </para></listitem></itemizedlist></section></section></article>