Template talk:Peer reviewed/Failed

From Wikinews, the free news source you can write!
Jump to navigation Jump to search

Edit request - parameter[edit]

{{edit protected}} Please replace

{{{#if:{{{comments}}}|{{{comments}}}|None added.}}}

with

{{#if:{{{comments|}}}|{{{comments}}}|None added.}}

Currently, if no comments are added, an empty "{{{comments}}}" is displayed, instead of the intended "None added." See Template:Peer reviewed/Passed for how it should appear - the missing pipe causes the difference.

Thanks, --DannyS712 (talk) 03:21, 27 October 2019 (UTC)[reply]

It's just weird that such a bug would be here all this time without someone at least noticing and remarking (which hadn't happened till now afaics). Well, anyway, the extra set of braces clearly isn't right, so I fixed it, and in the process added a tracking category. --Pi zero (talk) 03:55, 27 October 2019 (UTC)[reply]
Dang, overlooked the missing pipe... --Pi zero (talk) 03:57, 27 October 2019 (UTC)[reply]
Pipe added. --Pi zero (talk) 04:00, 27 October 2019 (UTC)[reply]
Hm, interesting. The pipe doesn't usually matter, because the gadget adds an empty parameter, |comments=|. If that parameter is omitted, a different message is generated by the parent template. --Pi zero (talk) 04:06, 27 October 2019 (UTC)[reply]