Help:Tutorial/4: Difference between revisions

From PSwiki
Jump to navigation Jump to search
Daevaorn (talk | contribs)
m placeholder
 
Seytra (talk | contribs)
m typo
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{WTProgress|'''[[Help:Tutorial|PSWiki-Tutorial]]'''||4/7|2=&nbsp; ■ ■ ■ ■ <span style="visibility:hidden;">■ ■ ■</span> &nbsp;}}
{{WTProgress|'''[[Help:Tutorial|PSWiki-Tutorial]]'''||4/7|2=&nbsp; ■ ■ ■ ■ <span style="visibility:hidden;">■ ■ ■</span> &nbsp;}}
{{Navbar|Help:Tutorial/3|Help:Tutorial|Help:Tutorial/5}}
To arrange information clearly or for creating complex layouts you can use '''tables'''. They might look a little frightening at first sight, but don't let that discourage you - it's farily easy once you've tried once or twice.
{|
| align="center" valign="middle" | A table is opened by
|
<nowiki>{|</nowiki>
| align="center" valign="middle" | and closed with
|
&nbsp;<nowiki>|}</nowiki>
| align="center" valign="middle" |, each in a separate line.
|}
In between you can use pipes (<tt>|</tt>) at the beginning of a line to create a new '''table cell''' (column).
A pipe followed by a hyphen (<tt>|-</tt>) triggers a new '''table row'''.
===Example===
{|
|
<nowiki>{|
| A1
| B1
| C1
|-
| A2
| B2
| C2
|-
| A3
| B3
| C3
|}</nowiki>
| align="center" valign="middle" | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;results in&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
{|
| A1
| B1
| C1
|-
| A2
| B2
| C2
|-
| A3
| B3
| C3
|-
|}
|}


[[Help:Tutorial/5|'''Continue''' ...]]
[[Help:Tutorial/5|'''Continue''' ...]]


[[Category:WikiTutorial|4]]
[[Category:WikiTutorial|4]]

Latest revision as of 00:10, 5 June 2010

PSWiki-Tutorial
    ■ ■ ■ ■ ■ ■ ■   4/7  

← Previous | ↑ Top | Next →

To arrange information clearly or for creating complex layouts you can use tables. They might look a little frightening at first sight, but don't let that discourage you - it's farily easy once you've tried once or twice.

A table is opened by
{|
and closed with
 |}
, each in a separate line.

In between you can use pipes (|) at the beginning of a line to create a new table cell (column).

A pipe followed by a hyphen (|-) triggers a new table row.

Example

{|
 | A1
 | B1
 | C1
 |-
 | A2
 | B2
 | C2
 |-
 | A3
 | B3
 | C3
 |}
     results in     
A1 B1 C1
A2 B2 C2
A3 B3 C3


Continue ...