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: a224dba99fdc3e6e

Jump to content

Module:Str rightc/doc

From Wikipedia, the free encyclopedia


This implements: {{str rightc}} but if |notemplate= is set to a non-empty string, arguments from the invocation can be used.

Usage

[edit]
{{#invoke:str rightc|rightc|notemplate=1|string|count}}
{{#invoke:str rightc|rightc|notemplate=1|string|count|result if empty}}

Gives a substring of length count characters from the right-side end of the string, or, if provided, returns result if empty when string is empty.

Examples

[edit]
  • {{#invoke:str rightc|rightc|notemplate=1 |Lorem ipsum dolor sit amet |10}} → r sit amet
  • {{#invoke:str rightc|rightc|notemplate=1 |Lorem ipsum dolor sit amet |1}} → t
  • {{#invoke:str rightc|rightc|notemplate=1 |Lorem ipsum dolor sit amet |0}}
  • {{#invoke:str rightc|rightc|notemplate=1 | |1 |string is empty}} → string is empty
  • {{#invoke:str rightc|rightc|notemplate=1 |123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-1 |99}} → 3456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-1