Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template talk:Zero

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 18 years ago by RockMFR in topic ?

?

[edit]

Have I missed something, or is using a template, complete with ParserFunctions, to output "0" rather pointless? – Qxz 09:55, 28 February 2007 (UTC)Reply

It seems to be a ABS()-like statistical function. But I'm no ParserFunctions expert, and the negative 0 in the code seems odd. This, that and the other [talk] 07:16, 26 June 2007 (UTC)Reply
The second "-0" in the code is odd ... useless actually ... but the first is what the template is all about. The code goes "if you give me one of these, '-0', I'll give you one of these, '0' otherwise I'll give you back whatever you gave me unless you gave me nothing in which case I'll give you '0'." So the first "-0" is meant to be there since that what the template is looking for. "-0" is an odd thing & is not what you usually want (though there are some uses for it) turning them into plain "0" is what this template is all about. JЇѦρ 02:32, 3 April 2008 (UTC)Reply
I've changed the behavior in regards to what it gives if nothing is given. Nothing is using this right now, so I don't feel bad changing it's default behavior :) --- RockMFR 02:23, 13 June 2008 (UTC)Reply