Last modified: 2014-09-29 08:32:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68027, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66027 - Unwanted line breaks in if statements
Unwanted line breaks in if statements
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
master
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-02 13:19 UTC by Neill Mitchell
Modified: 2014-09-29 08:32 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Neill Mitchell 2014-06-02 13:19:28 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.
Comment 1 Jackmcbarn 2014-09-28 22:07:22 UTC
What's the name of the extension you're using that provides the #! parser function?
Comment 2 Neill Mitchell 2014-09-29 08:32:46 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links