Template:Str sub long/doc: Difference between revisions
Template page
More actions
m remove sentance that is now incorrect. |
use {{TemplateBox}}, uses Lua |
||
| Line 1: | Line 1: | ||
{{ | {{Lua|Module:String}} | ||
<!-- | {{TemplateBox | ||
|1 = 1 | |||
|1label-en= text | |||
|1d-en = The text to get the substring from. | |||
|1aliases = <!-- List of aliases, separated by / (a slash) --> | |||
|1type = <!-- number, string, string/wiki-user-name, string/wiki-page-name, string/line; unknown --> | |||
|1def = <!-- default value for the parameter --> | |||
|1stat = required | |||
= | |2 = 2 | ||
|2label-en= start | |||
|2d-en = Zero-based index of the first character returned. | |||
|2aliases = | |||
|2type = number | |||
|2def = 0 | |||
|2stat = optional | |||
=== | |3 = 3 | ||
|3label-en= length | |||
|3d-en = The number of returned characters. | |||
|3aliases = | |||
|3type = number | |||
|3def = 0 | |||
|3stat = optional | |||
|name = Str sub long | |||
|desc = This template returns the substring of <text> starting at <start> and containing <length> characters. Base 0: the first character is numbered 0, and so on, e.g. <nowiki>{{str sub long|20090624130510|8|2}}</nowiki> returns the 2 characters starting at the 9th, i.e. "{{str_sub|20090624130510|8|2}}". | |||
|usage-notes = | |||
|namespace = template | |||
|usergroup = | |||
|shorthand = | |||
|mustbesubst = | |||
|setscats = | |||
|placement = | |||
|example = | |||
|example-value = | |||
|relieson = | |||
|seealso = | |||
* {{Tl|Str sub}} | * {{Tl|Str sub}} | ||
{{String templates see also}} | |||
|print = | |||
<includeonly> | |type = | ||
|i18n-method = - | |||
|i18n-desc = | |||
|i18n-subpage = | |||
|i18n-mediawiki-msg = | |||
|useTemplateData = only | |||
}}<includeonly> | |||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
[[Category:String manipulation templates]] | [[Category:String manipulation templates]] | ||
[[id:Templat:Str sub long]] | [[id:Templat:Str sub long]] | ||
[[ja:Template:Str sub long]] | [[ja:Template:Str sub long]] | ||
</includeonly> | </includeonly> | ||