Help:Tutorial/4: Difference between revisions
Jump to navigation
Jump to search
m placeholder |
m typo |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{WTProgress|'''[[Help:Tutorial|PSWiki-Tutorial]]'''||4/7|2= ■ ■ ■ ■ <span style="visibility:hidden;">■ ■ ■</span> }} | {{WTProgress|'''[[Help:Tutorial|PSWiki-Tutorial]]'''||4/7|2= ■ ■ ■ ■ <span style="visibility:hidden;">■ ■ ■</span> }} | ||
{{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 | |||
| | |||
<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" | results in | |||
| | |||
{| | |||
| 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
![]() |
|
![]() |
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 |
|