Last modified: 2014-09-29 08:32:46 UTC
Hi. I have the following in a table: {{#if:{{{Website|}}}|{{#!: |- ! Website Address | [[Webpage::{{{Website|}}}]]}}}} {{#if:{{{Facebook ID|}}}|{{#!: |- ! Facebook | [[Facebook ID::{{{Facebook ID|}}}]]}}}} {{#if:{{{Twitter ID|}}}|{{#!: |- ! Twitter hashtag | [[Twitter ID::{{{Twitter ID|}}}]]}}}} At the end of each #if block I get a <p><br></p> in the HTML leading to ugly line breaks if one or more if the fields is hidden. Same issue with any of the parser functions #ifeq, #switch etc Thanks.
What's the name of the extension you're using that provides the #! parser function?
Hi. That is the excellent Pipe Escape extension. https://www.mediawiki.org/wiki/Extension:Pipe_Escape However, the superfluous <br> occurs with the #if whether pipe escape is used or not. Thanks.