[Mediawiki-l] template parse problem

judi chen judi_chen at yahoo.com
Fri Nov 18 01:13:30 UTC 2005


Hi,

I am studing this page about template on
meta.mediawiki

http://meta.wikimedia.org/wiki/Help:Template

I try to practice the following on www.allwiki.com,
those line are from
http://meta.wikimedia.org/wiki/Help:Template

Effect of an undefined parameter if no default has
been specified
Some parsing problems in earlier versions of the
software have been fixed; using Template:t2 containing
"start-{{{1}}}-middle-{{{2}}}-end":

{{t2|a|{{{1}}}}} gives start-a-middle-{{{1}}}-end 
{{t2|{{{1}}}|a}} gives start-{{{1}}}-middle-a-end 
{{t2|{{{1}}}|{{{2}}}}} gives
start-{{{1}}}-middle-{{{2}}}-end 


On the http://meta.wikimedia.org/wiki/Help:Template

{{t2|{{{1}}}|a}} gives start-{{{1}}}-middle-a-end 

But on http://wikitravel.org/en/Main_Page and many
other wiki site

{{t2|{{{1}}}|a}} gives start{{1-middle{{2}}end}|a}} 

I would assume that meta.wikimedia.org is the right
answer.

So what is the problem with
http://wikitravel.org/en/Main_Page

How to fix this problem

thanks

jc


	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com



More information about the MediaWiki-l mailing list