Template:Str right/doc: Difference between revisions
Template page
More actions
{{SandboxDocumentation}} |
Fix language-code links to use Wikipedia interwiki prefixes |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 3: | Line 3: | ||
{{SandboxDocumentation}} | {{SandboxDocumentation}} | ||
{{Lua|Module:String}} | |||
=== Usage === | === Usage === | ||
| Line 17: | Line 18: | ||
=== Limitations === | === Limitations === | ||
* Up to 100 chararacters in the input string. If possible, first check length of input string using {{Tl|Str len|<string>}}. Using strings longer than 100 characters may result in the error '''''"< | * Up to 100 chararacters in the input string. If possible, first check length of input string using {{Tl|Str len|<string>}}. Using strings longer than 100 characters may result in the error '''''"<span style="color:#CC1100">max index is 100 for str_sub</span>"'''''. | ||
* Limited set of characters. | * Limited set of characters. | ||
* Expensive. | * Expensive. | ||
| Line 23: | Line 24: | ||
=== Examples === | === Examples === | ||
*< | *<code><nowiki>{{Str right| lorem ipsum dolor sit amet | 10 }}</nowiki></code> → {{Str right| lorem ipsum dolor sit amet | 10 }} | ||
*< | *<code><nowiki>{{Str right| lorem ipsum dolor sit amet | 1 }}</nowiki></code> → {{Str right| lorem ipsum dolor sit amet | 1 }} | ||
*< | *<code><nowiki>{{Str right| lorem ipsum dolor sit amet | 0 }}</nowiki></code> → {{Str right| lorem ipsum dolor sit amet | 0 }} | ||
*< | *<code><nowiki>{{Str right |123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.1 | 99}}</nowiki></code> → {{Str rightc |nocategory=true |123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.1 | 99}} | ||
=== See also === | === See also === | ||
| Line 34: | Line 35: | ||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
[[Category:String manipulation templates]] | [[Category:String manipulation templates]] | ||
[[ar:قالب:Str right]] | [[w:ar:قالب:Str right]] | ||
[[cy:Nodyn:Str right]] | [[w:cy:Nodyn:Str right]] | ||
[[es:Plantilla:Str right]] | [[w:es:Plantilla:Str right]] | ||
[[id:Templat:Str right]] | [[w:id:Templat:Str right]] | ||
[[ja:Template:Str right]] | [[w:ja:Template:Str right]] | ||
[[ru:Шаблон:Str right]] | [[w:ru:Шаблон:Str right]] | ||
[[ur:Template:Str right]] | [[w:ur:Template:Str right]] | ||
</includeonly> | </includeonly> | ||