I'm having a problem where I'm trying to hack a system message 'affirmation' into a form (specifically, the upload form in SpecialUpload.php), following a new checkbox (the checkbox is required to upload). I'm currently using this:
... <tr> <td></td> <td align='left'> <input tabindex='9' type='checkbox' name="wpUploadAffirm" value="1" id="wpUploadAffirm" onchange="change_form();" onclick="change_form();" /> ");
$wgOut->addWikiText( wfMsgForContent( 'affirmation' ) ); $wgOut->addHtml( " </td> ...
However, when I do this, there's a linefeed output in front of the 'affirmation' message, so the message does not appear on the same line as the checkbox, but the next one. I looked at the Mediawiki:Affirmation page and there is no extra linefeed at the start.
Is there another method to correctly parse a message like this that doesn't include the extra linefeed?
-Jeff
On 25/09/2007, Jeff Lane jeffl@valvesoftware.com wrote:
Is there another method to correctly parse a message like this that doesn't include the extra linefeed?
$wgOut->addHtml( wfMsgExt( 'affirmation', 'parseinline' ) );
Rob Church
Rob Church wrote:
On 25/09/2007, Jeff Lane jeffl@valvesoftware.com wrote:
Is there another method to correctly parse a message like this that doesn't include the extra linefeed?
$wgOut->addHtml( wfMsgExt( 'affirmation', 'parseinline' ) );
That worked great, thanks very much Rob.
-Jeff
mediawiki-l@lists.wikimedia.org