Author: flamurai
Description:
In templates that consist of tables, every transclusion after the first inserts
excess whitespace in the form of <p><br /></p> above the transclusion.
Reduced test case: [[User:Flamurai/Transclusion]]
Real world example: [[Names of God in Judaism]]. The code is:
... use God's name in a similar fashion.
{{listen|filename=He-El.ogg|title=El|description=|format=[[Ogg]]}}
This produces the HTML:
use God's name in a similar fashion.</p>
<p><br /></p>
<table cellspacing="0" border="0" align="left" style="
margin-left: 0.5em; color: inherit; background-color: transparent; position:
relative; left: -8px;">
<tr style="vertical-align: top;">
<td rowspan="3" style="width: 30px; padding-right: 3px; padding-top: 4px;
vertical-align: top;">
...
That <p><br /></p> is producing excess whitespace.
However, the first time the template's included there's no problem with the code:
... sometimes used to refer to a distinguished person.
{{listen|filename=He-Adonai.ogg|title=Adonai|description=}}
Which results in:
... is sometimes used to refer to a distinguished person.</p>
<table cellspacing="0" border="0" align="left" style="
margin-left: 0.5em; color: inherit; background-color: transparent; position:
relative; left: -8px;">
<tr style="vertical-align: top;">
<td rowspan="3" style="width: 30px; padding-right: 3px; padding-top: 4px;
vertical-align: top;">
That extra paragraph is not there. This problem is also on [[History of music]].
Version: 1.4.x
Severity: normal
URL: http://en.wikipedia.org/wiki/User:Flamurai/Transclusion