Care must be taken, when parsing tables, to never treat the pipe characters included in links, images and nowiki spans as cell separators:

{{{
| table cell | table cell | table cell |
| ~{{{table|cell~}}} | ~{{table|cell~}} | [[table|cell]] |
}}}

| table cell | table cell | table cell 
| ~{{{table~|cell~}}} | ~{{table~|cell~}} | ~[[table~|cell~]] 

----
Huh? What is going on with this pre block? Why are the insides of it parsed? %)