Difference between revisions of "Template:Str right/doc"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Examples: Fix.)
(Berserk.)
Line 7: Line 7:
  
 
Gives the characters from <offset> to the end of the string.
 
Gives the characters from <offset> to the end of the string.
 +
 +
If <count> is invalid, empty or undefined, this template goes berserk, so don't do that.
  
 
=== Examples ===
 
=== Examples ===
Line 13: Line 15:
 
*<tt><nowiki>{{Str right| lorem ipsum dolor sit amet | 1 }}</nowiki></tt> &rarr; {{Str right| lorem ipsum dolor sit amet | 1 }}
 
*<tt><nowiki>{{Str right| lorem ipsum dolor sit amet | 1 }}</nowiki></tt> &rarr; {{Str right| lorem ipsum dolor sit amet | 1 }}
 
*<tt><nowiki>{{Str right| lorem ipsum dolor sit amet | foo }}</nowiki></tt> &rarr; {{Str right| lorem ipsum dolor sit amet | foo }}
 
*<tt><nowiki>{{Str right| lorem ipsum dolor sit amet | foo }}</nowiki></tt> &rarr; {{Str right| lorem ipsum dolor sit amet | foo }}
*<tt><nowiki>{{Str right| lorem ipsum dolor sit amet | }}</nowiki></tt> &rarr; {{Str right| lorem ipsum dolor sit amet | }}
 
*<tt><nowiki>{{Str right| lorem ipsum dolor sit amet }}</nowiki></tt> &rarr; {{Str right| lorem ipsum dolor sit amet }}
 
  
 
=== Limitations ===  
 
=== Limitations ===  

Revision as of 19:27, 7 October 2009

Usage

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

Gives the characters from <offset> to the end of the string.

If <count> is invalid, empty or undefined, this template goes berserk, so don't do that.

Examples

  • {{Str right| lorem ipsum dolor sit amet | 10 }}Expression error: Unrecognized punctuation character "{".
  • {{Str right| lorem ipsum dolor sit amet | 1 }}Expression error: Unrecognized punctuation character "{".
  • {{Str right| lorem ipsum dolor sit amet | foo }}Expression error: Unrecognized word "foo".

Limitations

  • Up to 50 char strings. Limited set of characters, perhaps.
  • Expensive.

See also