Template:Strip
Jump to navigation
Jump to search
Strip
This documentation is transcluded from Template:Strip/doc.
Returns the input string after stripping characters left and/or right
In addition it can be completed with a header and/or a trailer string
Usage
{{Strip |1= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | string | Input string (often the result of a template) | pagename | required |
2 | decimal number | number of positions for stripping left | 0 | optional |
3 | decimal number | number of positions for stripping right | 0 | optional |
h | string | header string, to prefix the result | empty | optional |
t | string | trailer string, to postfix the result | empty | optional |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Relies on:
Module:Dsize
Examples
See also
Template:F with function code "M"
Str right, Str left
Localization
This template is not intended to be localized.
Examples
- {{Strip|Text example}} → Text example
- {{Strip|Text example|5}} → example
- {{Strip|Text example||2}} → Text examp
- {{Ucfirst|{{Strip|Text example|5}}{{Strip|Text example|3=8}}}} → ExampleText
- {{Strip|Text example|t= 1}} → Text example 1
- {{Strip|Church floor map|6|3|h=Cathedral|t=plan}} → Cathedral floor plan