Jump to content
Toggle menu
  • 3 articles
  • 75 files
  • 7 users
  • 37.9K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Str sub long/doc: Difference between revisions

Template page
m remove sentance that is now incorrect.
use {{TemplateBox}}, uses Lua
Line 1: Line 1:
{{Documentation subpage}}
{{Lua|Module:String}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{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


=== Usage ===
  |2        = 2
<code><nowiki>{{str sub long|</nowiki>''text''|''start''|''length''<nowiki>}}</nowiki></code> = 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}}"
  |2label-en= start
  |2d-en    = Zero-based index of the first character returned.
  |2aliases =
  |2type    = number
  |2def    = 0
  |2stat    = optional


=== See also ===
  |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}}
{{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]]


[[es:Plantilla:Str sub long]]
[[id:Templat:Str sub long]]
[[id:Templat:Str sub long]]
[[ja:Template:Str sub long]]
[[ja:Template:Str sub long]]
</includeonly>
</includeonly>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.