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.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a2587c9359c15cd4

Jump to content

Template talk:Str sub old/doc

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 17 years ago by Pol098 in topic Zero-based?

Zero-based?

[edit]

At the time of writing str_sub seems to be zero-based. E.g.{{str_sub|{{REVISIONTIMESTAMP}}|8|2}}:{{str_sub|{{REVISIONTIMESTAMP}}|10|2}} returns "21:24" from "20090623212433", starting at the 9th and 11th character. This could do with documenting. I won't edit the doc myself as I'm not familiar with the template; maybe this is actually a temporary error? Pol098 (talk) 21:29, 23 June 2009 (UTC)Reply

(Later) this template does indeed use base 0, though it may not have done so consistently in the past. I've added a note to the brief doc. Pol098 (talk) 13:15, 24 June 2009 (UTC)Reply