Loading…
None
String updated in the repository |
|
None
Source string changed |
|
None
Source string changed |
|
Loading…
None
String updated in the repository |
|
None
Source string changed |
|
None
Source string changed |
|
== Tables ==
=== 1.0 Tables ===
Allows to easily create content in table format.
|=Feature|=XWiki Syntax 1.0|=Result
|Standard table|((({{{
{table}
Title 1 | Title 2
Word 1 | Word 2
{table}
}}})))|(((
|=Title 1|=Title 2
|Word 1|Word 2
)))
|Parametrized table|(((
<table style="background-color:red;text-align:center">
<tbody>
<tr>
<td>Title 1</td>
<td style="background-color:yellow">Title 2</td>
</tr>
<tr>
<td>Word 1</td>
<td>Word 2</td>
</tr>
</tbody>
</table>
)))|(((
(% style="background-color:red;text-align:center" %)
|=Title 1|=(% style="background-color:yellow" %)Title 2
|Word 1|Word 2
)))
|Filterable Sortable table|((({{{
$xwiki.ssfx.use("js/xwiki/table/table.css")
$xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
<table id="table1id" class="grid sortable filterable doOddEven">
<tr class="sortHeader">
<th>Title 1</th>
<th>Title 2</th>
</tr>
<tr>
<td>Cell 11</td>
<td>Cell 12</td>
</tr>
<tr>
<td>Cell 21</td>
<td>Cell 22</td>
</tr>
</table>
}}}
{{info}}For improved features see the [[Livetable Macro>>https://extensions.xwiki.org/xwiki/bin/view/Extension/Livetable+Macro]].{{/info}}
)))|(((
{{velocity}}
$xwiki.ssfx.use("js/xwiki/table/table.css")
$xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
{{/velocity}}
(% class="grid sortable filterable doOddEven" id="table1id" %)
(% class="sortHeader" %)|=Title 1|=Title 2
|Cell 11|Cell 12
|Cell 21|Cell 22
)))
=== 2.0 Tables ===
Allows to easily create content in table format. Parameters for table, row or cell are also supported in XWiki Syntax {{velocity}}$crtSyntaxVer{{/velocity}}.
|=Feature|=XWiki Syntax {{velocity}}$crtSyntaxVer{{/velocity}}|=Result
|Standard table|((({{{
|=Title 1|=Title 2
|Word 1|Word 2
}}}))) or ((({{{
!=Title 1!=Title 2
!!Word 1!!Word 2
}}})))|(((
|=Title 1|=Title 2
|Word 1|Word 2
)))
|Parametrized table|((({{{
(% style="background-color:red;text-align:center" %)
|=Title 1|=(% style="background-color:yellow" %)Title 2
|Word 1|Word 2
}}})))|(((
(% style="background-color:red;text-align:center" %)
|=Title 1|=(% style="background-color:yellow" %)Title 2
|Word 1|Word 2
)))
|Filterable Sortable table|((({{{
{{velocity}}
$xwiki.ssfx.use("js/xwiki/table/table.css")
$xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
{{/velocity}}
(% class="grid sortable filterable doOddEven" id="tableid" %)
(% class="sortHeader" %)|=Title 1|=Title 2
|Cell 11|Cell 12
|Cell 21|Cell 22
}}}
{{info}}For improved features see the [[Livetable Macro>>https://extensions.xwiki.org/xwiki/bin/view/Extension/Livetable+Macro]].{{/info}}
)))|(((
{{velocity}}
$xwiki.ssfx.use("js/xwiki/table/table.css")
$xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
{{/velocity}}
(% class="grid sortable filterable doOddEven" id="tableid" %)
(% class="sortHeader" %)|=Title 1|=Title 2
|Cell 11|Cell 12
|Cell 21|Cell 22
)))
== Tabulas ==
{{comment}}please do not translate the sub headlines{{/comment}}
=== 1.0 Tables ===
Viki tabulas ļauj vienkāršā veidā attēlot saturu tabulas formā.
|=Piemērs|=XWiki 1.0 sintakse|=Rezultāts
|Parasta tabula|{{{(((
{table}
1. Virsraksts | 2. Virsraksts
1. vārds | 2. vārds
{table}
)))}}}|(((
|=1. Virsraksts|=2. Virsraksts
|1. vārds|2. vārds
)))
|Tabula ar parametriem|(((
<table style="background-color:red;text-align:center">
<tbody>
<tr>
<td>1. Virsraksts</td>
<td style="background-color:yellow">2. Virsraksts</td>
</tr>
<tr>
<td>1. vārds</td>
<td>2. vārds</td>
</tr>
</tbody>
</table>
)))|(((
(% style="background-color:red;text-align:center" %)
|=1. Virsraksts|=(% style="background-color:yellow" %)2. Virsraksts
|1. vārds|2. vārds
)))
|Filtrējama un kārtojama tabula|(((
{{{
$xwiki.ssfx.use("js/xwiki/table/table.css")
$xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
<table id="table1id" class="grid sortable filterable doOddEven">
<tr class="sortHeader">
<th>1. virsraksts</th>
<th>2. virsraksts</th>
</tr>
<tr>
<td>Šūna 11</td>
<td>Šūna 12</td>
</tr>
<tr>
<td>Šūna 21</td>
<td>Šūna 22</td>
</tr>
</table>
}}}
)))|(((
{{velocity}}
$xwiki.ssfx.use("js/xwiki/table/table.css")
$xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
{{/velocity}}
{{html}}
<table id="table1id" class="grid sortable filterable doOddEven">
<tr class="sortHeader">
<th>1. virsraksts</th>
<th>2. virsraksts</th>
</tr>
<tr>
<td>Šūna 11</td>
<td>Šūna 12</td>
</tr>
<tr>
<td>Šūna 21</td>
<td>Šūna 22</td>
</tr>
</table>
{{/html}}
)))
=== 2.0 Tables ===
Viki tabulas ļauj vienkāršā veidā attēlot saturu tabulas formā. Tiek atbalstīti arī tabulu parametri, row or cell in XWiki {{velocity}}$crtSyntaxVer{{/velocity}} sintakse.
|=Piemērs|=XWiki {{velocity}}$crtSyntaxVer{{/velocity}} sintakse|=Rezultāts
|Parasta tabula|(((
{{{
|=1. Virsraksts|=2. Virsraksts
|1. vārds|2. vārds
}}}
)))|(((
|=1. Virsraksts|=2. Virsraksts
|1. vārds|2. vārds
)))
|Tabula ar parametriem|(((
{{{
(% style="background-color:red;text-align:center" %)
|=1. Virsraksts|=(% style="background-color:yellow" %)2. Virsraksts
|1. vārds|2. vārds
}}}
)))|(((
(% style="background-color:red;text-align:center" %)
|=1. Virsraksts|=(% style="background-color:yellow" %)2. Virsraksts
|1. vārds|2. vārds
)))
|Filtrējama un kārtojama tabula|(((
{{{
{{velocity}}
$xwiki.ssfx.use("js/xwiki/table/table.css")
$xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
{{/velocity}}
{{html}}
<table id="tableid" class="grid sortable filterable doOddEven">
<tr class="sortHeader">
<th>1. virsraksts</th>
<th>2. virsraksts</th>
</tr>
<tr>
<td>Šūna 11</td>
<td>Šūna 12</td>
</tr>
<tr>
<td>Šūna 21</td>
<td>Šūna 22</td>
</tr>
</table>
{{/html}}
}}}
)))|(((
{{velocity}}
$xwiki.ssfx.use("js/xwiki/table/table.css")
$xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
{{/velocity}}
{{html}}
<table id="tableid" class="grid sortable filterable doOddEven">
<tr class="sortHeader">
<th>1. virsraksts</th>
<th>2. virsraksts</th>
</tr>
<tr>
<td>Šūna 11</td>
<td>Šūna 12</td>
</tr>
<tr>
<td>Šūna 21</td>
<td>Šūna 22</td>
</tr>
</table>
{{/html}}
)))