[Mediawiki-l] Maintaining newline as first line of a template

Jack D. Pond jack.pond at psitex.com
Fri Jan 22 21:25:38 UTC 2010


Using SMW for invocation.  See full details at:

http://wiki.montcopa.org/TestWiki/index.php?title=JDPTestPage

 

> -----Original Message-----
> From: mediawiki-l-bounces at lists.wikimedia.org 
> [mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of 
> Tim Starling
> Sent: Thursday, January 21, 2010 10:11 PM
> To: mediawiki-l at lists.wikimedia.org
> Subject: Re: [Mediawiki-l] Maintaining newline as first line 
> of a template
> 
> Jack D. Pond wrote:
> > MW 1.15.1 (and before)
> > 
> > Does anyone know what causes this and how to remedy?
> > 
> > Wiki code only recognizes table commands ("{|", "|-", "|}") 
> when they 
> > begin on a new line.  Therefore if your template is using these 
> > commands, the first line of your template MUST be a newline - 
> > otherwise the wiki code is likely to be continued on the 
> line in which it is referenced.
> 
> The bug 529 hack should make this unnecessary, if the 
> template starts with {|. The bug report is a bit vague, but 
> search Parser.php for "bug 529" to see what I mean.
> 
> What is the template invocation code?
> 
> -- Tim Starling
> 
> 
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> 




More information about the MediaWiki-l mailing list