Difference between revisions of "Talk:Blinker fuse"

From LifeWiki
Jump to navigation Jump to search
Line 4: Line 4:


:Urgh. I hate MediaWiki parser errors. Let me take a look. [[User:Apple Bottom|Apple Bottom]] ([[User talk:Apple Bottom|talk]]) 20:36, 3 November 2018 (UTC)
:Urgh. I hate MediaWiki parser errors. Let me take a look. [[User:Apple Bottom|Apple Bottom]] ([[User talk:Apple Bottom|talk]]) 20:36, 3 November 2018 (UTC)
:The problem's due to the fact that this passes <tt>synthesisRLE=</tt> but not <tt>synthesis=</tt>. As a result, a few calls to <tt>#ifexpr:</tt> in [[Template:PatternDownload]] end up breaking, because while e.g. "42 &gt; 35" is a valid parsable expression, "&gt; 35" is not.
:Defaulting to 0 for <tt>synthesis</tt> in those places doesn't work; I'm not sure why not. My best guess is that MediaWiki distinguishes between parameters that weren't passed, and parameters that were but happen to be the empty string, and doesn't use default values in the latter case. Which, frankly, sucks. I'll see what I can do to handle this. [[User:Apple Bottom|Apple Bottom]] ([[User talk:Apple Bottom|talk]]) 20:46, 3 November 2018 (UTC)

Revision as of 20:46, 3 November 2018

"Expression error: Unexpected > operator."

Anyone know how to fix this? Ian07 (talk) 01:49, 2 November 2018 (UTC)

Urgh. I hate MediaWiki parser errors. Let me take a look. Apple Bottom (talk) 20:36, 3 November 2018 (UTC)
The problem's due to the fact that this passes synthesisRLE= but not synthesis=. As a result, a few calls to #ifexpr: in Template:PatternDownload end up breaking, because while e.g. "42 > 35" is a valid parsable expression, "> 35" is not.
Defaulting to 0 for synthesis in those places doesn't work; I'm not sure why not. My best guess is that MediaWiki distinguishes between parameters that weren't passed, and parameters that were but happen to be the empty string, and doesn't use default values in the latter case. Which, frankly, sucks. I'll see what I can do to handle this. Apple Bottom (talk) 20:46, 3 November 2018 (UTC)