Tables: Difference between revisions

From UNB Archives and Special Collections
Jump to navigation Jump to search
No edit summary
No edit summary
Line 21: Line 21:
<br/>[[#TableProperties|'''Table Properties''']] will produce the aforementioned box, in which you can change the settings selected upon initiating the table.
<br/>[[#TableProperties|'''Table Properties''']] will produce the aforementioned box, in which you can change the settings selected upon initiating the table.


=  =


= WikiTextEditor =


=  =
=  =


You can create/modify a table using the WikiTextEditor using this string of characters: <br/><nowiki>{| style="border: 1px solid #c6c9ff; border-collapse: collapse;" cellspacing="0" cellpadding="10" border="1"</nowiki>
You can create/modify a table using the WikiTextEditor using this string of characters:
<br/><nowiki>|-</nowiki>
 
<br/><nowiki>| align="center" | <center>'''Heading A'''</center></nowiki>
<nowiki>{| style="border: 1px solid #c6c9ff; border-collapse: collapse;" cellspacing="0" cellpadding="10" border="1"</nowiki><br/><nowiki>|-</nowiki><br/><nowiki>| align="center" | <center>'''Heading A'''</center></nowiki><br/><nowiki>| <center>'''Heading B'''</center></nowiki><br/><nowiki>| <center>'''Heading C'''</center></nowiki><br/><nowiki>|-</nowiki><br/><nowiki>| 1A</nowiki><br/><nowiki>| 1B</nowiki><br/><nowiki>| 1C</nowiki><br/><nowiki>|-</nowiki><br/><nowiki>| 2A</nowiki><br/><nowiki>| 2B</nowiki><br/><nowiki>| 2C</nowiki><br/><nowiki>|}</nowiki>
<br/><nowiki>| <center>'''Heading B'''</center></nowiki>
<br/><nowiki>| <center>'''Heading C'''</center></nowiki>
<br/><nowiki>|-</nowiki>
<br/><nowiki>| 1A</nowiki>
<br/><nowiki>| 1B</nowiki>
<br/><nowiki>| 1C</nowiki>
<br/><nowiki>|-</nowiki>
<br/><nowiki>| 2A</nowiki>
<br/><nowiki>| 2B</nowiki>
<br/><nowiki>| 2C</nowiki>
<br/><nowiki>|}</nowiki>


After the initial string of code, every row is separated by a [[Mark-up Language|pipe/hyphen]] combination ( |- ); in this example, every number represents a row and every letter represents a column. The table can have as many rows and columns as needed.
After the initial string of code, every row is separated by a [[Mark-up Language|pipe/hyphen]] combination ( |- ); in this example, every number represents a row and every letter represents a column. The table can have as many rows and columns as needed.


The function is ended just as it was initiated, with a [[Mark-up Language|pipe/brace]] combination ( |} ).&lt;/nowiki&gt;
The function is ended just as it was initiated, with a [[Mark-up Language|pipe/brace]] combination ( |} ).&lt;/nowiki&gt;

Revision as of 10:06, 20 August 2014

RichTextEditor

Tables can be quickly created using the RichTextEditor icon to initiate the function:

Table Icon.png

The Table Properties box will appear, in which you will have to specify several details. The number of Rows reprents your desired number of horizontal cells, which stack vertically ( = ); the number of Columns represents your desired number of vertical fields ( ll ).

Headers will likely be most useful as the First Row, though circumstances may warrant the other options.

Alignment Left or Center, depending on the nature of the field, will likely be most desirable.

The other fields are optional and do not need to be modified.


Table Properties.png


Modifying the table post-creation is done by "right clicking" (Mac or PC) or control clicking (Mac) the table in the specific spot that you would like to expand the table. You can add/delete Rows or Columns, as well as single Cells.

Table Mod.png


Table Properties will produce the aforementioned box, in which you can change the settings selected upon initiating the table.

WikiTextEditor

You can create/modify a table using the WikiTextEditor using this string of characters:

{| style="border: 1px solid #c6c9ff; border-collapse: collapse;" cellspacing="0" cellpadding="10" border="1"
|-
| align="center" | <center>'''Heading A'''</center>
| <center>'''Heading B'''</center>
| <center>'''Heading C'''</center>
|-
| 1A
| 1B
| 1C
|-
| 2A
| 2B
| 2C
|}

After the initial string of code, every row is separated by a pipe/hyphen combination ( |- ); in this example, every number represents a row and every letter represents a column. The table can have as many rows and columns as needed.

The function is ended just as it was initiated, with a pipe/brace combination ( |} ).</nowiki>