Template:Str crop: Difference between revisions

From Linguifex
Jump to navigation Jump to search
(Created page with "<includeonly>{{safesubst:#invoke:String | sub | s={{{1|}}} | 1 | {{safesubst:#expr: -{{{2|1}}} - 1}} | ignore_errors=true }}</includeonly><noinclude> {{documentation}}</noincl...")
(No difference)

Revision as of 15:36, 27 August 2020




Usage

Use to remove the right-most {{{2}}} characters of a string {{{1}}}.

Example

code
{{str crop |Example |3}}
result
Exam