From EncyclopAtys
CeNobiteElf (talk | contribs) (Created page with '{{Help navbar header}} {| cellspacing="7" style="width: 100%; background: #FFF8DC; border: 1px solid silver;" | colspan="2" style="background: #EED6AF; border: 1px solid silver; …') |
|||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| + | <noinclude>{{Trad|DE=Hilfe:Tabellen|EN=Help:Table editing|palette= |H=1}}</noinclude> | ||
{{Help navbar header}} | {{Help navbar header}} | ||
{| cellspacing="7" style="width: 100%; background: #FFF8DC; border: 1px solid silver;" | {| cellspacing="7" style="width: 100%; background: #FFF8DC; border: 1px solid silver;" | ||
| Line 174: | Line 175: | ||
|} | |} | ||
| − | [[Category:Help]] | + | [[Category:Help|Table editing]] |
Latest revision as of 07:34, 2 August 2023
Help center: Help:Contents •
Editing help, Writing Guide •
Table editing help •
Archiving help •
Categorize Image •
Guild page help
Ask any wiki related question on RC
| What is a table? | |
|
A table is a method for organizing data by arranging it in columns and rows. It provides a compact way to view data, while also allowing comparisons and sorting. | |
How to use a table | |||||||||||||||||||||||||||||||
|
Here is an example of a basic table.
{|
|-
! header 1
! header 2
! header 3
|-
| row 1, cell 1
| row 1, cell 2
| row 1, cell 3
|-
| row 2, cell 1
| row 2, cell 2
| row 2, cell 3
|}
The above example gives you a table that looks like this:
The entire table is encased with curly brackets and a vertical bar character (a pipe). So use {| table code goes here |} Every new row of a table must begin with a pipe and a hyphen There are two ways to add a cell to each row. Either make a new line and start it with a pipe {|
|-
|Cell 1 || Cell 2 || Cell 3
|-
|Cell A
|Cell B
|Cell C
|}
Creates:
Formatting There are three ways to add formatting to a table: apply it to a whole table, apply it to a single row, or apply it to a single cell. Table formatting requires a little html knowledge. Whole table On the first line of your table, after the {| border = "1"
|-
|data1 || data2
|-
|data3
|data4
|}
Creates:
Single row On the line declaring each new row {|
|-
|data1 || data2
|- style="background:red"
|data3
|data4
|}
Creates:
Single cell For each cell of a table, you can specify additional properties that only apply to that cell. To do that you need to add {|
|-
| style="background:red" | data1 || style="background:blue" | data2
|-
|data3
|style="background:yellow" |data4
|}
Creates:
Notice that if you use the double pipes Ryzom standard formatting In many cases you will want your tables to look consistent with other tables on URW. A template has been provided that will apply the styles to the whole table. {| {{STDT}}
|-
|data1 || data2
|-
|data3
|data4
|}
Creates:
For more information on how to use the template, go to {{STDT}}. |