Here's an example of an offending template:
{{cite journal |title=Mrs. Obama goes to Washington |author=Slevin,
Peter |date=March 18, 2009
|journal=[[Princeton Alumni Weekly]] |volume=109 |number=10 |pages=18–22}}
From Special:ExpandTemplates, this renders as
Slevin, Peter (March 18, 2009). [Expression error: Missing operand for
"Mrs. Obama goes to Washington"]. Princeton
Alumni Weekly 109 (10):
18–22.
The error goes away if I remove "|title=Mrs. Obama goes to Washington".
The error remains if I change it to anything else, such as "|title=Obama".
I thought it might be a problem with the Cite extension, but updating
with the latest trunk version of Cite didn't help.
The full XML output & result from Special:ExpandTemplates is below. How odd...
<root><template><title>cite journal
</title><part><name>title</name>=<value>Mrs. Obama goes to
Washington
</value></part><part><name>author</name>=<value>Slevin,
Peter
</value></part><part><name>date</name>=<value>March
18, 2009
</value></part><part><name>journal</name>=<value>[[Princeton
Alumni
Weekly]]
</value></part><part><name>volume</name>=<value>109
</value></part><part><name>number</name>=<value>10
</value></part><part><name>pages</name>=<value>18–22</value></part></template></root>
<span class="citation Journal"
Slevin, Peter (March 18,
2009). [<strong class="error">Expression error: Missing operand
for ></strong> "Mrs. Obama goes to
Washington"]. ''<nowiki />[[Princeton Alumni Weekly]]<nowiki
/>'' '''<nowiki />109<nowiki
/>''' (10)<nowiki>: </nowiki>
18–22.</span><span
class="Z3988"
title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=Mrs.+Obama+goes+to+Washington&rft.jtitle=%5B%5BPrinceton+Alumni+Weekly%5D%5D&rft.aulast=Slevin%2C+Peter&rft.au=Slevin%2C+Peter&rft.date=March+18%2C+2009&rft.volume=109&rft.issue=10&rft.pages=18%E2%80%9322&rfr_id=info:sid/en.wikipedia.org:Special:ExpandTemplates"><span
style="display: none;"> </span></span>
On Wed, Feb 17, 2010 at 10:06 AM, Aryeh Gregor
<Simetrical+wikilist(a)gmail.com> wrote:
On Tue, Feb 16, 2010 at 10:42 PM, Eric Sun
<esun(a)cs.stanford.edu> wrote:
Even after setting $wgUseTidy = true, many of my
pages show an error
"Expression error: Missing operand for >" at the bottom in the
References section.
This is a ParserFunctions-related problem.
It looks like an error message produced by the
ParserFunctions
package. I've never seen this on
en.wikipedia.org so I wonder if some
customization or other cleanup has been done.
I'm running MediaWiki 1.15.1 and the versions of Cite and
ParserFunctions that correspond to 1.15.x.
Is this something easily fixable?
Wikipedia uses the latest alpha versions, in this case 1.16alpha.
It's possible that some feature was added in more recent
ParserFunctions versions that's incompatible. But I can't actually
see any changes to Expr.php since the 1.15 branch, or any relevant
ParserFunctions changes at all.
Do you have links to pages on your site that show the error? It
should be possible to track down exactly what's causing it using
Special:ExpandTemplates, if no one has any ideas.
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l