01.12.2012 Views

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Fig. 5.3<br />

70<br />

��<br />

��<br />

��<br />

wiki. Here, <strong>the</strong> HTML tags are replaced by pipes (|), which results<br />

in a table, evident even in edit mode:<br />

{|<br />

| cell1 || cell2<br />

|-<br />

| cell3 || cell4<br />

|-<br />

| cell5 || cell6<br />

|}<br />

You can see <strong>the</strong> result in Fig. 5.3:<br />

As is <strong>the</strong> case of HTML, <strong>the</strong> table is composed of three nesting levels:<br />

Table level: You should always start a table on a new line. It is<br />

started using {| param and concluded with |}. The term param<br />

stands for optional parameters, such as background color or border<br />

thickness.<br />

Row level: When you initialize a table, <strong>the</strong> first row is created along<br />

with it. Begin <strong>the</strong> subsequent rows with |- param. The row is<br />

automatically closed by starting a new row with |- or ending <strong>the</strong> table<br />

with|}.<br />

Cell level: Cells can be generated in two ways. Ei<strong>the</strong>r you set two<br />

pipes next to each o<strong>the</strong>r:<br />

| cell1 || cell2 || cell3<br />

or you combine a new line with <strong>the</strong> pipe symbol:<br />

| cell1<br />

| cell2<br />

| cell3<br />

5 Formatting

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!