Template:Chop head and tail

From WikiLaw, the free legal repository
Jump to navigation Jump to search

<templatestyles src="Module:Documentation/styles.css"></templatestyles>

Template documentation[view] [edit] [history] [purge]

Usage[edit]

Template:Tlx

This template removes <number-L> characters from the start and <number-R> from the end of <string>:

Template:Xpsoc

A single parameter may be specified if <number-L> = <number-R>:

Template:Xpsoc

Unlinking[edit]

This template can be used to "unlink" a linked parameter.

Template:Tlx results in Einstein.

Because the default value of <number> is 2, this can be shortened to Template:Tlx.


Limitations[edit]

  • Expensive.
  • When used on strings with characters that carry a meaning in wiki-layout, this template will interpret the character as a layout instruction (bugzilla:12974). For example, Template:Tlx renders as
    123;456
  • Supports the character set as defined by Template:Tl, so that e.g. Template:Tlx renders correctly as Nürnberg. However, not all characters are in this set.

See also[edit]


Template:Navbox with collapsible groups

Template:Sandbox other