Difference between revisions of "Template:Str rightmost"

From Emulation General Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{{{{|safesubst:}}}Str sub long|nocategory={{{nocategory|}}}|{{{1}}}|{{{2}}}|{{{{{|safesubst:}}}#expr:{{{{{|safesubst:}}}Str len|nocategory={{{nocategory|}}}|{{{1...")
 
m
Line 1: Line 1:
<includeonly>{{{{{|safesubst:}}}Str sub long|nocategory={{{nocategory|}}}|{{{1}}}|{{{2}}}|{{{{{|safesubst:}}}#expr:{{{{{|safesubst:}}}Str len|nocategory={{{nocategory|}}}|{{{1}}}}}-{{{2}}}}}}}</includeonly><noinclude>
+
<includeonly>{{#iferror: {{#invoke:String | sub | s={{{1}}} | -{{{2}}} }} | {{{1}}} }}</includeonly><noinclude>
{{Documentation}}
+
 
 +
{{documentation}}
 +
 
 
</noinclude>
 
</noinclude>

Revision as of 01:55, 30 January 2024


Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Str_rightmost/doc to edit this documentation. (How does this work?)

Contents

This page uses Creative Commons Licensed content from Wikipedia (view authors).

Usage

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

Gives the rightmost <offset> characters of the string.