Talk:Blinker fuse: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:


: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)
: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)
:Got it. Apple Bottom vs. MediaWiki --- 1:0. [[User:Apple Bottom|Apple Bottom]] ([[User talk:Apple Bottom|talk]]) 20:55, 3 November 2018 (UTC)

Revision as of 20:55, 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)
Got it. Apple Bottom vs. MediaWiki --- 1:0. Apple Bottom (talk) 20:55, 3 November 2018 (UTC)