<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://gw1wiki.ezgame.cc/index.php?action=history&amp;feed=atom&amp;title=Help%3ATable_editing</id>
	<title>Help:Table editing - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://gw1wiki.ezgame.cc/index.php?action=history&amp;feed=atom&amp;title=Help%3ATable_editing"/>
	<link rel="alternate" type="text/html" href="https://gw1wiki.ezgame.cc/index.php?title=Help:Table_editing&amp;action=history"/>
	<updated>2026-10-17T17:24:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://gw1wiki.ezgame.cc/index.php?title=Help:Table_editing&amp;diff=7946&amp;oldid=prev</id>
		<title>gww&gt;TikkaLeFem: /Gave the redlink a Link</title>
		<link rel="alternate" type="text/html" href="https://gw1wiki.ezgame.cc/index.php?title=Help:Table_editing&amp;diff=7946&amp;oldid=prev"/>
		<updated>2022-02-12T01:48:49Z</updated>

		<summary type="html">&lt;p&gt;/Gave the redlink a Link&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Help navbar header}}&lt;br /&gt;
{| cellspacing=&amp;quot;7&amp;quot; style=&amp;quot;width: 100%; background: #EFFBF5; border: 1px solid silver;&amp;quot;&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; style=&amp;quot;background: #A1C2CF; border: 1px solid silver; padding: 0.2em 0.4em; font-size: 120%; font-weight: bold;&amp;quot; | What is a table?&lt;br /&gt;
|- style=&amp;quot;vertical-align: top;&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
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. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;7&amp;quot; style=&amp;quot;width: 100%; background: #EFFBF5; border: 1px solid silver; margin-top: 10px;&amp;quot;&lt;br /&gt;
| style=&amp;quot;background: #A1C2CF; border: 1px solid silver; padding: 0.2em 0.4em;&amp;quot; | &amp;lt;h4 style=&amp;quot;margin: 0px; padding: 0px;&amp;quot;&amp;gt;How to use a table&amp;lt;/h4&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
Here is an example of a basic table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
! header 1&lt;br /&gt;
! header 2&lt;br /&gt;
! header 3&lt;br /&gt;
|-&lt;br /&gt;
| row 1, cell 1&lt;br /&gt;
| row 1, cell 2&lt;br /&gt;
| row 1, cell 3&lt;br /&gt;
|-&lt;br /&gt;
| row 2, cell 1&lt;br /&gt;
| row 2, cell 2&lt;br /&gt;
| row 2, cell 3&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above example gives you a table that looks like this:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
! header 1&lt;br /&gt;
! header 2&lt;br /&gt;
! header 3&lt;br /&gt;
|-&lt;br /&gt;
| row 1, cell 1&lt;br /&gt;
| row 1, cell 2&lt;br /&gt;
| row 1, cell 3&lt;br /&gt;
|-&lt;br /&gt;
| row 2, cell 1&lt;br /&gt;
| row 2, cell 2&lt;br /&gt;
| row 2, cell 3&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Rows and columns'''&lt;br /&gt;
&lt;br /&gt;
The entire table is encased with curly brackets and a vertical bar character (a pipe).  So use &amp;lt;code&amp;gt;'''{|'''&amp;lt;/code&amp;gt; to begin a table, and &amp;lt;code&amp;gt;'''|}'''&amp;lt;/code&amp;gt; to end it.  Each one needs to be on its own line: &lt;br /&gt;
 &amp;lt;span style=&amp;quot;font-weight:bold; color:red&amp;quot;&amp;gt;&amp;lt;nowiki&amp;gt;{|&amp;lt;/nowiki&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
   ''table code goes here''&lt;br /&gt;
 &amp;lt;span style=&amp;quot;font-weight:bold; color:red&amp;quot;&amp;gt;&amp;lt;nowiki&amp;gt;|}&amp;lt;/nowiki&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Every new row of a table must begin with a pipe and a hyphen &amp;lt;code&amp;gt;|-&amp;lt;/code&amp;gt; on its own line.&lt;br /&gt;
&lt;br /&gt;
There are two ways to add a cell to each row. Either make a new line and start it with a pipe &amp;lt;code&amp;gt;|&amp;lt;/code&amp;gt; or put two pipes &amp;lt;code&amp;gt;||&amp;lt;/code&amp;gt; between each cell. The following example shows how both are used for the same result. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{|&lt;br /&gt;
|-&lt;br /&gt;
|Cell 1 || Cell 2 || Cell 3&lt;br /&gt;
|-&lt;br /&gt;
|Cell A &lt;br /&gt;
|Cell B&lt;br /&gt;
|Cell C&lt;br /&gt;
|}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Creates:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
|Cell 1 || Cell 2 || Cell 3&lt;br /&gt;
|-&lt;br /&gt;
|Cell A &lt;br /&gt;
|Cell B&lt;br /&gt;
|Cell C&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Formatting'''&lt;br /&gt;
&lt;br /&gt;
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. &lt;br /&gt;
&lt;br /&gt;
''Whole table''&lt;br /&gt;
&lt;br /&gt;
On the first line of your table, after the &amp;lt;code&amp;gt;{|&amp;lt;/code&amp;gt; you can specify some properties of your table. For example, add a border to your table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{| border = &amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|data1 || data2&lt;br /&gt;
|-&lt;br /&gt;
|data3&lt;br /&gt;
|data4&lt;br /&gt;
|}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Creates:&lt;br /&gt;
{| border = &amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|data1 || data2&lt;br /&gt;
|-&lt;br /&gt;
|data3&lt;br /&gt;
|data4&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
''Single row''&lt;br /&gt;
&lt;br /&gt;
On the line declaring each new row &amp;lt;code&amp;gt;|-&amp;lt;/code&amp;gt; you can specify properties of that line. For example, to change the background color of a row.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{|&lt;br /&gt;
|-&lt;br /&gt;
|data1 || data2&lt;br /&gt;
|- style=&amp;quot;background:red&amp;quot;&lt;br /&gt;
|data3&lt;br /&gt;
|data4&lt;br /&gt;
|}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Creates:&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
|data1 || data2&lt;br /&gt;
|- style=&amp;quot;background:red&amp;quot;&lt;br /&gt;
|data3&lt;br /&gt;
|data4&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
''Single cell''&lt;br /&gt;
&lt;br /&gt;
For each cell of a table, you can specify additional properties that only apply to that cell. To do that you need to add &amp;lt;code&amp;gt;formatting |&amp;lt;/code&amp;gt; to the front of each cell you want to change.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background:red&amp;quot; | data1 || style=&amp;quot;background:blue&amp;quot; | data2&lt;br /&gt;
|- &lt;br /&gt;
|data3&lt;br /&gt;
|style=&amp;quot;background:yellow&amp;quot; |data4&lt;br /&gt;
|}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Creates:&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background:red&amp;quot; | data1 || style=&amp;quot;background:blue&amp;quot;| data2&lt;br /&gt;
|- &lt;br /&gt;
|data3&lt;br /&gt;
|style=&amp;quot;background:yellow&amp;quot; |data4&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Notice that if you use the double pipes &amp;lt;code&amp;gt;||&amp;lt;/code&amp;gt; to separate your cells, the additional cell formatting comes after the double pipe and does not replace it. &lt;br /&gt;
&lt;br /&gt;
'''GWW standard formatting'''&lt;br /&gt;
&lt;br /&gt;
In many cases you will want your tables to look consistent with other tables on GWW. A template has been provided that will apply the styles to the whole table. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{| {{STDT}}&lt;br /&gt;
|-&lt;br /&gt;
|data1 || data2&lt;br /&gt;
|-&lt;br /&gt;
|data3&lt;br /&gt;
|data4&lt;br /&gt;
|}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Creates:&lt;br /&gt;
{| {{STDT}}&lt;br /&gt;
|-&lt;br /&gt;
|data1 || data2&lt;br /&gt;
|-&lt;br /&gt;
|data3&lt;br /&gt;
|data4&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
For more information on how to use the template, go to {{tl|STDT}}. &lt;br /&gt;
&lt;br /&gt;
'''Advanced'''&lt;br /&gt;
&lt;br /&gt;
For more information on how to use tables, go to the [https://www.mediawiki.org/wiki/Help:Tables HelpTable] at wikimedia. &lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>gww&gt;TikkaLeFem</name></author>
	</entry>
</feed>