Template:Str rightmost: Difference between revisions

From Linguifex
Jump to navigation Jump to search
(Created page with "<includeonly>{{#iferror: {{#invoke:String | sub | s={{{1}}} | -{{{2}}} }} | {{{1}}} }}</includeonly><noinclude> {{documentation}} </noinclude>")
 
No edit summary
 
Line 1: Line 1:
<includeonly>{{#iferror: {{#invoke:String | sub | s={{{1}}} | -{{{2}}} }} | {{{1}}} }}</includeonly><noinclude>
<includeonly>{{#iferror: {{#invoke:string|sub|s={{{1}}}|-{{{2}}}}}|{{{1}}}}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 15:46, 27 August 2020




Usage

{{str rightmost|<string>|<offset>}}

Gives the rightmost <offset> characters of the string.

Example

{{str rightmost|example|2}} → le