Module:String/doc/en
{{#ifeq:en|doc||{{#ifeq:en |doc
|
{{#ifeq:show |show
| Template:Mbox }}{{#if: | | {{#ifexist:Module:String/doc | [[Category:{{#switch:Module |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}}}{{#switch:
| =
Warning: | {{#ifeq:LPFM Wiki|MediaWiki|This page is shared between multiple wikis. All changes to this page will be automatically copied to all wikis listed in the left side bar. To avoid unnecessary page regeneration and server load, changes should be tested on the page's sandbox.|Do not edit. This page is maintained by an automated tool. All edits should be done at mediawiki.org. (translate this warning)}}{{#if:| Please help [[c:Data:I18n/{{{2}}}.tab|translate]] this page.}} |
{{#switch:
{{#if: | | {{#ifeq:Module|Module | module | other }} }}
| module =
{{#switch: release
| pre-alpha | prealpha | pa = | alpha | a = | beta | b = | release | r | general | g = | protected | protect | p = [[File:{{#if:|Cascade-protection-shackle.svg|{{#ifeq:|sysop|Full-protection-shackle-red.svg|Semi-protection-shackle-no-text.svg}}}}|40x40px|link=]] | semiprotected | semiprotect | semi = | #default =}} | {{#switch: release
| pre-alpha | prealpha | pa = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in pre-alpha development</tvar>|pre-alpha]].</translate> <translate> It is unfinished, and may or may not be in active development.</translate> <translate> It should not be used from article namespace pages.</translate> <translate> Modules remain pre-alpha until the original editor (or someone who takes one over if it is abandoned for some time) is satisfied with the basic structure.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | alpha | a = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in alpha</tvar>|alpha]].</translate> <translate> It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched.</translate> <translate> Suggestions for new features or changes in their input and output mechanisms are welcome.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | beta | b = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in beta</tvar>|beta]], and is ready for widespread use.</translate> <translate> It is still new and should be used with some caution to ensure the results are as expected.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | release | r | general | g = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules for general use</tvar>|ready for general use]].</translate> <translate> It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate.</translate> <translate> It is ready to mention on help pages and other resources as an option for new users to learn.</translate> <translate> To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | protected | protect | p = <translate> This module is [[<tvar name=1>Special:MyLanguage/Category:Modules subject to page protection</tvar>|subject to {{<tvar name=2>#if:</tvar>|cascading|page}} protection]].</translate> <translate> It is a highly visible module in use by a very large number of pages.</translate> <translate> Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[<tvar name=1>Special:MyLanguage/Project:Protected page</tvar>|protected]] from editing.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | #default = Template:Error}} |
| other | #default = Template:Error }} {{#switch:
{{#if: | | {{#ifeq:Module|Module | module | other }} }}
| module =
{{#switch: protected
| pre-alpha | prealpha | pa = | alpha | a = | beta | b = | release | r | general | g = | protected | protect | p = [[File:{{#if:|Cascade-protection-shackle.svg|{{#ifeq:|sysop|Full-protection-shackle-red.svg|Semi-protection-shackle-no-text.svg}}}}|40x40px|link=]] | semiprotected | semiprotect | semi = | #default =}} | {{#switch: protected
| pre-alpha | prealpha | pa = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in pre-alpha development</tvar>|pre-alpha]].</translate> <translate> It is unfinished, and may or may not be in active development.</translate> <translate> It should not be used from article namespace pages.</translate> <translate> Modules remain pre-alpha until the original editor (or someone who takes one over if it is abandoned for some time) is satisfied with the basic structure.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | alpha | a = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in alpha</tvar>|alpha]].</translate> <translate> It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched.</translate> <translate> Suggestions for new features or changes in their input and output mechanisms are welcome.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | beta | b = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in beta</tvar>|beta]], and is ready for widespread use.</translate> <translate> It is still new and should be used with some caution to ensure the results are as expected.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | release | r | general | g = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules for general use</tvar>|ready for general use]].</translate> <translate> It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate.</translate> <translate> It is ready to mention on help pages and other resources as an option for new users to learn.</translate> <translate> To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | protected | protect | p = <translate> This module is [[<tvar name=1>Special:MyLanguage/Category:Modules subject to page protection</tvar>|subject to {{<tvar name=2>#if:</tvar>|cascading|page}} protection]].</translate> <translate> It is a highly visible module in use by a very large number of pages.</translate> <translate> Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[<tvar name=1>Special:MyLanguage/Project:Protected page</tvar>|protected]] from editing.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | #default = Template:Error}} |
| other | #default = Template:Error }} This module is intended to provide access to basic string functions.
Most of the functions provided here can be invoked with named parameters, unnamed parameters, or a mixture. If named parameters are used, MediaWiki will automatically remove any leading or trailing whitespace from the parameter. Depending on the intended use, it may be advantageous to either preserve or remove such whitespace.
Global options
ignore_errors
- If set to {{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|}}<syntaxhighlight inline="1" id="" class="{{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|nowrap}}" style="" lang="php">true</syntaxhighlight> or 1, any error condition will result in an empty string being returned rather than an error message.
error_category
- If an error occurs, specifies the name of a category to include with the error message. The default category is {{#ifeq:Category:Errors reported by Module String|
|
}}[[Special:MyLanguage/Category:Errors reported by Module String|{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:Category|Category:}}Errors reported by Module String/Page display title/en
|{{#if: | |{{ Template:TNTN }} }} |{{#if: |Errors reported by Module String |Category:Errors reported by Module String }}
}}}}]]{{#ifeq:Category:Errors reported by Module String|
|
}}
.no_category
- If set to {{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|}}<syntaxhighlight inline="1" id="" class="{{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|nowrap}}" style="" lang="php">true</syntaxhighlight> or 1, no category will be added if an error is generated.
Unit tests for this module are available at Module:String/testcases.
len
This function returns the length of the target string.
Usage:
{{#invoke:String|len|target_string}}
OR
{{#invoke:String|len|s= target_string }}
Parameters:
s
- The string whose length to report
sub
- This function returns a substring of the target string at specified indices.
Usage:
{{#invoke:String|sub|target_string|start_index|end_index}}
OR
{{#invoke:String|sub
|s= target_string |i= start_index |j= end_index }}
Parameters:
s
- The string to return a subset of
i
- The first index of the substring to return, defaults to 1.
j
- The last index of the string to return, defaults to the last character.
The first character of the string is assigned an index of 1. If either i or j is a negative value, it is interpreted the same as selecting a character by counting from the end of the string. Hence, a value of -1 is the same as selecting the last character of the string.
If the requested indices are out of range for the given string, an error is reported.
match
This function returns a substring from the source string that matches a specified pattern.
Usage:
{{#invoke:String|match|source_string|pattern_string|start_index|match_number|plain_flag|nomatch_output}}
OR
{{#invoke:String|match|s= source_string |pattern= pattern_string |start= start_index |match= match_number |plain= plain_flag |nomatch= nomatch_output }}
Parameters:
s
- The string to search
pattern
- The pattern or string to find within the string
start
- The index within the source string to start the search. The first character of the string has index 1. Defaults to 1.
match
- In some cases it may be possible to make multiple matches on a single string. This specifies which match to return, where the first match is
match = 1
. If a negative number is specified then a match is returned counting from the last match. Hencematch = -1
is the same as requesting the last match. Defaults to 1. plain
- Boolean flag indicating that pattern should be understood as plain text and not as a Lua-style regular expression. Defaults to {{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|}}<syntaxhighlight inline="1" id="" class="{{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|nowrap}}" style="" lang="php">false</syntaxhighlight>.
nomatch
- If no match is found, output the "nomatch" value rather than an error.
If the match
or start
are out of range for the string being queried, then this function generates an error.
An error is also generated if no match is found.
If one adds the parameter ignore_errors=true
, then the error will be suppressed and an empty string will be returned on any failure.
For information on constructing Lua patterns, a form of regular expression, see:
- Lua reference: Patterns - as of version 5.1
- {{#ifeq:Extension:Scribunto/Lua reference manual|
|
}}{{#if:Scribunto patterns|Scribunto patterns|Scribunto patterns}}{{#ifeq:Extension:Scribunto/Lua reference manual|
|
}}
- {{#ifeq:Extension:Scribunto/Lua reference manual|
|
}}{{#if:Scribunto Unicode string patterns|Scribunto Unicode string patterns|Scribunto Unicode string patterns}}{{#ifeq:Extension:Scribunto/Lua reference manual|
|
}}
pos
This function returns a single character from the target string at position pos.
Usage:
{{#invoke:String|pos|target_string|index_value}}
OR
{{#invoke:String|pos|target= target_string |pos= index_value }}
Parameters:
target
- The string to search
pos
- The index for the character to return
The first character has an index value of 1.
If one requests a negative value, this function will select a character by counting backwards from the end of the string.
In other words pos = -1
is the same as asking for the last character.
A requested value of zero, or a value greater than the length of the string returns an error.
find
This function allows one to search for a target string or pattern within another string.
Usage:
{{#invoke:String|find|source_str|target_string|start_index|plain_flag}}
OR
{{#invoke:String|find|source= source_str |target= target_str |start= start_index |plain= plain_flag }}
Parameters:
source
- The string to search
target
- The string or pattern to find within source
start
- The index within the source string to start the search, defaults to 1
plain
- Boolean flag indicating that target should be understood as plain text and not as a Lua-style regular expression, defaults to {{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|}}<syntaxhighlight inline="1" id="" class="{{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|nowrap}}" style="" lang="php">true</syntaxhighlight>
This function returns the first index >= "start" where "target" can be found within "source". Indices are 1-based. If "target" is not found, then this function returns 0. If either "source" or "target" are missing / empty, this function also returns 0.
This function should be safe for UTF-8 strings.
replace
This function allows one to replace a target string or pattern within another string.
Usage:
{{#invoke:String|replace|source_str|pattern_string|replace_string|replacement_count|plain_flag}}
OR
{{#invoke:String|replace|source= source_string |pattern= pattern_string |replace= replace_string |count= replacement_count |plain= plain_flag }}
Parameters:
source
- The string to search
pattern
- The string or pattern to find within source
replace
- The replacement text
count
- The number of occurrences to replace; defaults to all
plain
- Boolean flag indicating that pattern should be understood as plain text and not as a Scribunto ustring pattern (a unicode-friendly Lua-style regular expression); defaults to {{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|}}<syntaxhighlight inline="1" id="" class="{{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|nowrap}}" style="" lang="php">true</syntaxhighlight>
rep
Repeats a string n times.
Usage:
{{#invoke:String|rep|source|count}}
Parameters:
source
- The string to repeat
count
- The number of repetitions.
Example {{#invoke:String|rep|hello|3}}
gives hellohellohello
| #default=
{{#switch:
| = {{#ifeq:|||
{{#if:{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/af | • {{#if:Module:String/doc
|Afrikaans |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/af}} Afrikaans]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/ar | • {{#if:Module:String/doc
|العربية |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/ar}} العربية]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/ast | • {{#if:Module:String/doc
|asturianu |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/ast}} asturianu]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/az | • {{#if:Module:String/doc
|azərbaycanca |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/az}} azərbaycanca]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/bcc | • {{#if:Module:String/doc
|جهلسری بلوچی |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/bcc}} جهلسری بلوچی]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/be | • {{#if:Module:String/doc
|беларуская |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/be}} беларуская]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/be-tarask | • {{#if:Module:String/doc
|беларуская (тарашкевіца) |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/be-tarask}} беларуская (тарашкевіца)]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/bg | • {{#if:Module:String/doc
|български |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/bg}} български]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/br | • {{#if:Module:String/doc
|brezhoneg |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/br}} brezhoneg]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/bn | • {{#if:Module:String/doc
|বাংলা |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/bn}} বাংলা]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/bs | • {{#if:Module:String/doc
|bosanski |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/bs}} bosanski]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/ca | • {{#if:Module:String/doc
|català |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/ca}} català]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/ckb | • {{#if:Module:String/doc
|کوردی |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/ckb}} کوردی]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/cs | • {{#if:Module:String/doc
|čeština |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/cs}} čeština]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/da | • {{#if:Module:String/doc
|dansk |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/da}} dansk]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/de | • {{#if:Module:String/doc
|Deutsch |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/de}} Deutsch]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/diq | • {{#if:Module:String/doc
|Zazaki |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/diq}} Zazaki]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/el | • {{#if:Module:String/doc
|Ελληνικά |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/el}} Ελληνικά]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/eo | • {{#if:Module:String/doc
|Esperanto |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/eo}} Esperanto]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/es | • {{#if:Module:String/doc
|español |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/es}} español]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/fa | • {{#if:Module:String/doc
|فارسی |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/fa}} فارسی]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/fi | • {{#if:Module:String/doc
|suomi |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/fi}} suomi]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/fr | • {{#if:Module:String/doc
|français |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/fr}} français]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/gl | • {{#if:Module:String/doc
|galego |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/gl}} galego]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/gu | • {{#if:Module:String/doc
|ગુજરાતી |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/gu}} ગુજરાતી]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/he | • {{#if:Module:String/doc
|עברית |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/he}} עברית]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/hi | • {{#if:Module:String/doc
|हिन्दी |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/hi}} हिन्दी]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/hr | • {{#if:Module:String/doc
|hrvatski |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/hr}} hrvatski]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/hu | • {{#if:Module:String/doc
|magyar |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/hu}} magyar]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/hy | • {{#if:Module:String/doc
|հայերեն |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/hy}} հայերեն]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/id | • {{#if:Module:String/doc
|Bahasa Indonesia |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/id}} Bahasa Indonesia]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/io | • {{#if:Module:String/doc
|Ido |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/io}} Ido]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/it | • {{#if:Module:String/doc
|italiano |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/it}} italiano]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/ja | • {{#if:Module:String/doc
|日本語 |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/ja}} 日本語]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/jv | • {{#if:Module:String/doc
|Jawa |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/jv}} Jawa]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/ka | • {{#if:Module:String/doc
|ქართული |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/ka}} ქართული]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/kk | • {{#if:Module:String/doc
|қазақша |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/kk}} қазақша]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/km | • {{#if:Module:String/doc
|ភាសាខ្មែរ |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/km}} ភាសាខ្មែរ]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/ko | • {{#if:Module:String/doc
|한국어 |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/ko}} 한국어]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/ko-kp | • {{#if:Module:String/doc
|조선말 |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/ko-kp}} 조선말]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/ksh | • {{#if:Module:String/doc
|Ripoarisch |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/ksh}} Ripoarisch]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/kw | • {{#if:Module:String/doc
|kernowek |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/kw}} kernowek]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/la | • {{#if:Module:String/doc
|Latina |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/la}} Latina]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/map-bms | • {{#if:Module:String/doc
|Basa Banyumasan |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/map-bms}} Basa Banyumasan]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/min | • {{#if:Module:String/doc
|Minangkabau |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/min}} Minangkabau]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/mk | • {{#if:Module:String/doc
|македонски |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/mk}} македонски]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/ml | • {{#if:Module:String/doc
|മലയാളം |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/ml}} മലയാളം]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/mr | • {{#if:Module:String/doc
|मराठी |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/mr}} मराठी]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/ms | • {{#if:Module:String/doc
|Bahasa Melayu |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/ms}} Bahasa Melayu]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/mwl | • {{#if:Module:String/doc
|Mirandés |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/mwl}} Mirandés]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/nl | • {{#if:Module:String/doc
|Nederlands |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/nl}} Nederlands]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/no | • {{#if:Module:String/doc
|norsk |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/no}} norsk]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/oc | • {{#if:Module:String/doc
|occitan |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/oc}} occitan]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/or | • {{#if:Module:String/doc
|ଓଡ଼ିଆ |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/or}} ଓଡ଼ିଆ]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/pl | • {{#if:Module:String/doc
|polski |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/pl}} polski]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/pt | • {{#if:Module:String/doc
|português |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/pt}} português]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/pt-br | • {{#if:Module:String/doc
|português do Brasil |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/pt-br}} português do Brasil]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/ro | • {{#if:Module:String/doc
|română |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/ro}} română]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/ru | • {{#if:Module:String/doc
|русский |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/ru}} русский]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/si | • {{#if:Module:String/doc
|සිංහල |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/si}} සිංහල]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/sk | • {{#if:Module:String/doc
|slovenčina |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/sk}} slovenčina]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/sl | • {{#if:Module:String/doc
|slovenščina |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/sl}} slovenščina]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/so | • {{#if:Module:String/doc
|Soomaaliga |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/so}} Soomaaliga]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/sq | • {{#if:Module:String/doc
|shqip |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/sq}} shqip]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/sr | • {{#if:Module:String/doc
|српски / srpski |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/sr}} српски / srpski]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/sv | • {{#if:Module:String/doc
|svenska |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/sv}} svenska]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/ta | • {{#if:Module:String/doc
|தமிழ் |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/ta}} தமிழ்]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/th | • {{#if:Module:String/doc
|ไทย |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/th}} ไทย]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/tr | • {{#if:Module:String/doc
|Türkçe |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/tr}} Türkçe]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/uk | • {{#if:Module:String/doc
|українська |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/uk}} українська]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/vi | • {{#if:Module:String/doc
|Tiếng Việt |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/vi}} Tiếng Việt]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/yi | • {{#if:Module:String/doc
|ייִדיש |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/yi}} ייִדיש]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/yue | • {{#if:Module:String/doc
|粵語 |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/yue}} 粵語]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/zh | • {{#if:Module:String/doc
|中文 |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/zh}} 中文]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/zh-hans | • {{#if:Module:String/doc
|中文(简体) |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/zh-hans}} 中文(简体)]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/zh-hant | • {{#if:Module:String/doc
|中文(繁體) |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/zh-hant}} 中文(繁體)]
}}
}}{{#ifexist: {{#if:Module:String/doc|Module:String/doc|{{#ifeq:{{#ifeq:en|en |{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}}}/zh-tw | • {{#if:Module:String/doc
|中文(臺灣) |[{{fullurl:{{#ifeq:{{#ifeq:en|en
|{{#ifeq:{{#titleparts:Module:String/doc/en||-1}}|en
|en }}
|en }}| |Module:String/doc/en |Module:String/doc/en
}}/zh-tw}} 中文(臺灣)]
}}
}} ||}}{{#switch:en |en= |ku-latn= |zh-hans|zh-hant= |#default= }}}}
Warning: | {{#ifeq:LPFM Wiki|MediaWiki|This page is shared between multiple wikis. All changes to this page will be automatically copied to all wikis listed in the left side bar. To avoid unnecessary page regeneration and server load, changes should be tested on the page's sandbox.|Do not edit. This page is maintained by an automated tool. All edits should be done at mediawiki.org. (translate this warning)}}{{#if:| Please help [[c:Data:I18n/{{{2}}}.tab|translate]] this page.}} |
{{#switch:
{{#if: | | {{#ifeq:Module|Module | module | other }} }}
| module =
{{#switch: release
| pre-alpha | prealpha | pa = | alpha | a = | beta | b = | release | r | general | g = | protected | protect | p = [[File:{{#if:|Cascade-protection-shackle.svg|{{#ifeq:|sysop|Full-protection-shackle-red.svg|Semi-protection-shackle-no-text.svg}}}}|40x40px|link=]] | semiprotected | semiprotect | semi = | #default =}} | {{#switch: release
| pre-alpha | prealpha | pa = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in pre-alpha development</tvar>|pre-alpha]].</translate> <translate> It is unfinished, and may or may not be in active development.</translate> <translate> It should not be used from article namespace pages.</translate> <translate> Modules remain pre-alpha until the original editor (or someone who takes one over if it is abandoned for some time) is satisfied with the basic structure.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | alpha | a = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in alpha</tvar>|alpha]].</translate> <translate> It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched.</translate> <translate> Suggestions for new features or changes in their input and output mechanisms are welcome.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | beta | b = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in beta</tvar>|beta]], and is ready for widespread use.</translate> <translate> It is still new and should be used with some caution to ensure the results are as expected.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | release | r | general | g = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules for general use</tvar>|ready for general use]].</translate> <translate> It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate.</translate> <translate> It is ready to mention on help pages and other resources as an option for new users to learn.</translate> <translate> To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | protected | protect | p = <translate> This module is [[<tvar name=1>Special:MyLanguage/Category:Modules subject to page protection</tvar>|subject to {{<tvar name=2>#if:</tvar>|cascading|page}} protection]].</translate> <translate> It is a highly visible module in use by a very large number of pages.</translate> <translate> Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[<tvar name=1>Special:MyLanguage/Project:Protected page</tvar>|protected]] from editing.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | #default = Template:Error}} |
| other | #default = Template:Error }} {{#switch:
{{#if: | | {{#ifeq:Module|Module | module | other }} }}
| module =
{{#switch: protected
| pre-alpha | prealpha | pa = | alpha | a = | beta | b = | release | r | general | g = | protected | protect | p = [[File:{{#if:|Cascade-protection-shackle.svg|{{#ifeq:|sysop|Full-protection-shackle-red.svg|Semi-protection-shackle-no-text.svg}}}}|40x40px|link=]] | semiprotected | semiprotect | semi = | #default =}} | {{#switch: protected
| pre-alpha | prealpha | pa = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in pre-alpha development</tvar>|pre-alpha]].</translate> <translate> It is unfinished, and may or may not be in active development.</translate> <translate> It should not be used from article namespace pages.</translate> <translate> Modules remain pre-alpha until the original editor (or someone who takes one over if it is abandoned for some time) is satisfied with the basic structure.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | alpha | a = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in alpha</tvar>|alpha]].</translate> <translate> It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched.</translate> <translate> Suggestions for new features or changes in their input and output mechanisms are welcome.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | beta | b = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules in beta</tvar>|beta]], and is ready for widespread use.</translate> <translate> It is still new and should be used with some caution to ensure the results are as expected.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | release | r | general | g = <translate> This module is rated as [[<tvar name=1>Special:MyLanguage/Category:Modules for general use</tvar>|ready for general use]].</translate> <translate> It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate.</translate> <translate> It is ready to mention on help pages and other resources as an option for new users to learn.</translate> <translate> To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | protected | protect | p = <translate> This module is [[<tvar name=1>Special:MyLanguage/Category:Modules subject to page protection</tvar>|subject to {{<tvar name=2>#if:</tvar>|cascading|page}} protection]].</translate> <translate> It is a highly visible module in use by a very large number of pages.</translate> <translate> Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[<tvar name=1>Special:MyLanguage/Project:Protected page</tvar>|protected]] from editing.</translate>{{#ifexpr: {{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:module:string/doc/en|-1|-2}}|doc|1|0}} and {{#if:/en|1|0}} ) )|1|0}} or {{#ifeq:en|sandbox|1|0}} || {{#ifeq: | true | | }} }} | #default = Template:Error}} |
| other | #default = Template:Error }} This module is intended to provide access to basic string functions.
Most of the functions provided here can be invoked with named parameters, unnamed parameters, or a mixture. If named parameters are used, MediaWiki will automatically remove any leading or trailing whitespace from the parameter. Depending on the intended use, it may be advantageous to either preserve or remove such whitespace.
Global options
ignore_errors
- If set to {{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|}}<syntaxhighlight inline="1" id="" class="{{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|nowrap}}" style="" lang="php">true</syntaxhighlight> or 1, any error condition will result in an empty string being returned rather than an error message.
error_category
- If an error occurs, specifies the name of a category to include with the error message. The default category is {{#ifeq:Category:Errors reported by Module String|
|
}}[[Special:MyLanguage/Category:Errors reported by Module String|{{#if:|{{{2}}}|{{#ifexist:Translations:{{#if:Category|Category:}}Errors reported by Module String/Page display title/en
|{{#if: | |{{ Template:TNTN }} }} |{{#if: |Errors reported by Module String |Category:Errors reported by Module String }}
}}}}]]{{#ifeq:Category:Errors reported by Module String|
|
}}
.no_category
- If set to {{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|}}<syntaxhighlight inline="1" id="" class="{{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|nowrap}}" style="" lang="php">true</syntaxhighlight> or 1, no category will be added if an error is generated.
Unit tests for this module are available at Module:String/testcases.
len
This function returns the length of the target string.
Usage:
{{#invoke:String|len|target_string}}
OR
{{#invoke:String|len|s= target_string }}
Parameters:
s
- The string whose length to report
sub
- This function returns a substring of the target string at specified indices.
Usage:
{{#invoke:String|sub|target_string|start_index|end_index}}
OR
{{#invoke:String|sub
|s= target_string |i= start_index |j= end_index }}
Parameters:
s
- The string to return a subset of
i
- The first index of the substring to return, defaults to 1.
j
- The last index of the string to return, defaults to the last character.
The first character of the string is assigned an index of 1. If either i or j is a negative value, it is interpreted the same as selecting a character by counting from the end of the string. Hence, a value of -1 is the same as selecting the last character of the string.
If the requested indices are out of range for the given string, an error is reported.
match
This function returns a substring from the source string that matches a specified pattern.
Usage:
{{#invoke:String|match|source_string|pattern_string|start_index|match_number|plain_flag|nomatch_output}}
OR
{{#invoke:String|match|s= source_string |pattern= pattern_string |start= start_index |match= match_number |plain= plain_flag |nomatch= nomatch_output }}
Parameters:
s
- The string to search
pattern
- The pattern or string to find within the string
start
- The index within the source string to start the search. The first character of the string has index 1. Defaults to 1.
match
- In some cases it may be possible to make multiple matches on a single string. This specifies which match to return, where the first match is
match = 1
. If a negative number is specified then a match is returned counting from the last match. Hencematch = -1
is the same as requesting the last match. Defaults to 1. plain
- Boolean flag indicating that pattern should be understood as plain text and not as a Lua-style regular expression. Defaults to {{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|}}<syntaxhighlight inline="1" id="" class="{{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|nowrap}}" style="" lang="php">false</syntaxhighlight>.
nomatch
- If no match is found, output the "nomatch" value rather than an error.
If the match
or start
are out of range for the string being queried, then this function generates an error.
An error is also generated if no match is found.
If one adds the parameter ignore_errors=true
, then the error will be suppressed and an empty string will be returned on any failure.
For information on constructing Lua patterns, a form of regular expression, see:
- Lua reference: Patterns - as of version 5.1
- {{#ifeq:Extension:Scribunto/Lua reference manual|
|
}}{{#if:Scribunto patterns|Scribunto patterns|Scribunto patterns}}{{#ifeq:Extension:Scribunto/Lua reference manual|
|
}}
- {{#ifeq:Extension:Scribunto/Lua reference manual|
|
}}{{#if:Scribunto Unicode string patterns|Scribunto Unicode string patterns|Scribunto Unicode string patterns}}{{#ifeq:Extension:Scribunto/Lua reference manual|
|
}}
pos
This function returns a single character from the target string at position pos.
Usage:
{{#invoke:String|pos|target_string|index_value}}
OR
{{#invoke:String|pos|target= target_string |pos= index_value }}
Parameters:
target
- The string to search
pos
- The index for the character to return
The first character has an index value of 1.
If one requests a negative value, this function will select a character by counting backwards from the end of the string.
In other words pos = -1
is the same as asking for the last character.
A requested value of zero, or a value greater than the length of the string returns an error.
find
This function allows one to search for a target string or pattern within another string.
Usage:
{{#invoke:String|find|source_str|target_string|start_index|plain_flag}}
OR
{{#invoke:String|find|source= source_str |target= target_str |start= start_index |plain= plain_flag }}
Parameters:
source
- The string to search
target
- The string or pattern to find within source
start
- The index within the source string to start the search, defaults to 1
plain
- Boolean flag indicating that target should be understood as plain text and not as a Lua-style regular expression, defaults to {{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|}}<syntaxhighlight inline="1" id="" class="{{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|nowrap}}" style="" lang="php">true</syntaxhighlight>
This function returns the first index >= "start" where "target" can be found within "source". Indices are 1-based. If "target" is not found, then this function returns 0. If either "source" or "target" are missing / empty, this function also returns 0.
This function should be safe for UTF-8 strings.
replace
This function allows one to replace a target string or pattern within another string.
Usage:
{{#invoke:String|replace|source_str|pattern_string|replace_string|replacement_count|plain_flag}}
OR
{{#invoke:String|replace|source= source_string |pattern= pattern_string |replace= replace_string |count= replacement_count |plain= plain_flag }}
Parameters:
source
- The string to search
pattern
- The string or pattern to find within source
replace
- The replacement text
count
- The number of occurrences to replace; defaults to all
plain
- Boolean flag indicating that pattern should be understood as plain text and not as a Scribunto ustring pattern (a unicode-friendly Lua-style regular expression); defaults to {{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|}}<syntaxhighlight inline="1" id="" class="{{#if:{{safesubst:#switch:
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|nowrap}}" style="" lang="php">true</syntaxhighlight>
rep
Repeats a string n times.
Usage:
{{#invoke:String|rep|source|count}}
Parameters:
source
- The string to repeat
count
- The number of repetitions.
Example {{#invoke:String|rep|hello|3}}
gives hellohellohello
{{#if:{{#ifeq:en|sandbox|1}}{{#ifeq:en|doc|1}}||
}}
| #default=
Lua error: expandTemplate: template loop detected.
}} }}
- Pages with script errors
- Documentation subpages without corresponding pages
- Modules in pre-alpha development
- Modules in alpha
- Modules in beta
- Modules for general use
- Modules subject to page protection
- Module documentation pages/en
- Languages pages without translations
- Languages pages
- Languages pages/ku
- Languages pages/zh
- Languages pages/en
- Modules