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

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Update.)
Line 3: Line 3:
  
 
=== Usage ===
 
=== Usage ===
<nowiki> {{Str right|<string>|<offest>}} </nowiki>
 
  
Gives the characters from offset to the end of the string.
+
<nowiki>{{Str right|<string>|<offest>}}</nowiki>
  
===Limitations===
+
Gives the characters from <offset> to the end of the string.
Caveat emptor.
 
  
50 char strings. Limited set of characters,perhaps
+
=== Examples ===
  
Expensive.
+
*<tt><nowiki>{{Str right| lorem ipsum dolor sit amet | 10 }}</nowiki></tt> &rarr; {{Str left| lorem ipsum dolor sit amet | 10 }}
 +
*<tt><nowiki>{{Str right| lorem ipsum dolor sit amet | 1 }}</nowiki></tt> &rarr; {{Str left| lorem ipsum dolor sit amet | 1 }}
 +
*<tt><nowiki>{{Str right| lorem ipsum dolor sit amet | foo }}</nowiki></tt> &rarr; {{Str left| lorem ipsum dolor sit amet | foo }}
 +
*<tt><nowiki>{{Str right| lorem ipsum dolor sit amet | }}</nowiki></tt> &rarr; {{Str left| lorem ipsum dolor sit amet | }}
 +
*<tt><nowiki>{{Str right| lorem ipsum dolor sit amet }}</nowiki></tt> &rarr; {{Str left| lorem ipsum dolor sit amet }}
 +
 
 +
=== Limitations ===
 +
 
 +
* 50 char strings. Limited set of characters,perhaps
 +
* Expensive.
  
 
=== See also ===
 
=== See also ===
 +
* {{Tl|Trunc}}
 
* {{Tl|Str left}}
 
* {{Tl|Str left}}
 
* {{Tl|Str rightc}}
 
* {{Tl|Str rightc}}
 +
 
<includeonly>
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:String manipulation templates]]
 
[[Category:String manipulation templates]]
 
</includeonly>
 
</includeonly>

Revision as of 19:13, 7 October 2009

Usage

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

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

Examples

  • {{Str right| lorem ipsum dolor sit amet | 10 }}
  • {{Str right| lorem ipsum dolor sit amet | 1 }}
  • {{Str right| lorem ipsum dolor sit amet | foo }}
  • {{Str right| lorem ipsum dolor sit amet | }}
  • {{Str right| lorem ipsum dolor sit amet }}

Limitations

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

See also