Sjabloon:Str right: verschil tussen versies
(Lua Implementation. This has some quirky rules, 0-based, etc...) |
(Nieuwe pagina aangemaakt met '<includeonly>{{{{{|safesubst:}}}#ifexpr: {{{2|0}}} < 0 |{{{1}}} |{{{{{|safesubst:}}}#ifexpr: {{{2|0}}}+1 > {{{{{|safesubst:}}}#invoke:String|len|s={{{1}}}}} | | {{...') |
(geen verschil)
|
Versie van 18 jul 2013 om 09:05
[bewerken] [ ] Template documentation
Usage
{{Str right|<string>|<offset>}}
Gives the characters from <offset> to the end of the string.
A negative <offset> is treated the same as zero, which simply returns the original string.
If <offset> is longer than <string> then this returns an empty string.
If <offset> is invalid, empty or undefined, this template goes berserk, so don't do that.
Examples
- {{Str right| lorem ipsum dolor sit amet | 10 }} → Fout in uitdrukking: niet herkend leesteken "{".
- {{Str right| lorem ipsum dolor sit amet | 1 }} → Fout in uitdrukking: niet herkend leesteken "{".
- {{Str right| lorem ipsum dolor sit amet | 0 }} → Fout in uitdrukking: niet herkend leesteken "{".
- {{Str right |123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.1 | 99}} → Fout in uitdrukking: niet herkend leesteken "{".
See also
{{#invoke: Navbox | navbox }}
The above documentation is transcluded from Sjabloon:Str right/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |