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

Jump to content

Template:First word/doc

From Wikipedia, the free encyclopedia


This template returns the first word of the first parameter. Use |1= for the first parameter if the string may contain an equals sign (=). By default, words are delimited by spaces, but the optional parameter |sep= can set the separator to any character.

Usage

[edit]

One parameter (space as separator):

  • {{First word|string}}
  • {{First word|1=string}}

Two parameters (user-defined character as separator):

  • {{First word|string|sep=character}}
  • {{First word|1=string|sep=character}}

Examples

[edit]
  • {{First word|Foo bar baz}}Foo
  • {{First word| Foo bar baz}}Foo
  • {{First word|Foo}}Foo
  • {{First word|Foo-bar-baz}}Foo-bar-baz
  • {{First word|Foo-bar-baz|sep=-}}Foo
  • {{First word|34,000,500|sep=,}}34
  • {{First word|Hear ye, users|sep=,}}Hear ye
  • {{First word|1=len = a+b|sep==}}len

See also

[edit]