User:Addyrielle/Conditional tables

Here's some more notes from the wiki!

ParserFunctions allow for the conditional display of table rows, columns or cells.

Basic use for #if
^ This gets checked to see if the foo variable is blank. Eg:

---

--

Positional parameters etc. work like named parameters:

--

Note: The pipe symbol in the link works as is, it's not quite that easy within Wiki tables - it messes up. Use the method below to remedy this.

---

This method of hiding rows in tables (or other structures within tables) uses HTML directly. In general, there are only a few HTML tags you need to be aware of:


 * - this tag creates a new row (similar to |- in MediaWiki table syntax).
 * - this tag creates a new header cell within a row (similar to ! in MediaWiki table syntax).
 * - this tag creates a new cell within a row (similar to | in MediaWiki table syntax).
 * - this tag creates a caption (similar to |+ in MediaWiki table syntax).