<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pub.solar/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=FuzzyBot</id>
	<title>pub.solar wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pub.solar/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=FuzzyBot"/>
	<link rel="alternate" type="text/html" href="https://wiki.pub.solar/index.php/Special:Contributions/FuzzyBot"/>
	<updated>2026-04-04T19:31:45Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.pub.solar/index.php?title=Module:String/doc/en&amp;diff=317</id>
		<title>Module:String/doc/en</title>
		<link rel="alternate" type="text/html" href="https://wiki.pub.solar/index.php?title=Module:String/doc/en&amp;diff=317"/>
		<updated>2025-10-19T02:46:34Z</updated>

		<summary type="html">&lt;p&gt;FuzzyBot: Updating to match new version of source page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#ifeq:{{SUBPAGENAME}}|doc||{{Documentation subpage}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;&amp;lt;languages/&amp;gt;&amp;lt;!--&lt;br /&gt;
--&amp;gt;&amp;lt;/noinclude&amp;gt;{{#switch:&lt;br /&gt;
| =&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Languages|Module:String/doc}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
{{Magic words|general=1}}&lt;br /&gt;
{{Module rating|release}}&lt;br /&gt;
{{Module rating|protected}}&lt;br /&gt;
This module is intended to provide access to basic string functions.&lt;br /&gt;
&lt;br /&gt;
Most of the functions provided here can be invoked with named parameters, unnamed parameters, or a mixture.&lt;br /&gt;
If named parameters are used, MediaWiki will automatically remove any leading or trailing whitespace from the parameter.&lt;br /&gt;
Depending on the intended use, it may be advantageous to either preserve or remove such whitespace.&lt;br /&gt;
&lt;br /&gt;
== Global options ==&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;code&amp;gt;ignore_errors&amp;lt;/code&amp;gt;&lt;br /&gt;
: If set to {{phpi|true}} or 1, any error condition will result in an empty string being returned rather than an error message.&lt;br /&gt;
; &amp;lt;code&amp;gt;error_category&amp;lt;/code&amp;gt;&lt;br /&gt;
: If an error occurs, specifies the name of a category to include with the error message. The default category is {{ll|Category:Errors reported by Module String}}.&lt;br /&gt;
; &amp;lt;code&amp;gt;no_category&amp;lt;/code&amp;gt;&lt;br /&gt;
: If set to {{phpi|true}} or 1, no category will be added if an error is generated.&lt;br /&gt;
&lt;br /&gt;
Unit tests for this module are available at [[Module:String/testcases]].&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;len&amp;lt;/code&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
This function returns the length of the target string.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
: {{tmpl|0=&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:&amp;lt;/nowiki&amp;gt;String{{!}}len{{!}}&#039;&#039;$1&#039;&#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|1=target_string&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
: {{tmpl|0=&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:&amp;lt;/nowiki&amp;gt;String{{!}}len{{!}}s= &#039;&#039;$1&#039;&#039; &amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|1=target_string&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;code&amp;gt;s&amp;lt;/code&amp;gt;&lt;br /&gt;
: The string whose length to report&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;sub&amp;lt;/code&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
: This function returns a substring of the target string at specified indices.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
: {{tmpl|0=&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:&amp;lt;/nowiki&amp;gt;String{{!}}sub{{!}}&#039;&#039;$1&#039;&#039;{{!}}&#039;&#039;$2&#039;&#039;{{!}}&#039;&#039;$3&#039;&#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|1=target_string&lt;br /&gt;
|2=start_index&lt;br /&gt;
|3=end_index&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
: {{tmpl|0=&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:&amp;lt;/nowiki&amp;gt;String{{!}}sub&amp;lt;wbr/&amp;gt;{{!}}s= &#039;&#039;$1&#039;&#039; {{!}}i= &#039;&#039;$2&#039;&#039; {{!}}j= &#039;&#039;$3&#039;&#039; &amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|1=target_string&lt;br /&gt;
|2=start_index&lt;br /&gt;
|3=end_index&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;code&amp;gt;s&amp;lt;/code&amp;gt;&lt;br /&gt;
: The string to return a subset of&lt;br /&gt;
; &amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt;&lt;br /&gt;
: The first index of the substring to return, defaults to 1.&lt;br /&gt;
; &amp;lt;code&amp;gt;j&amp;lt;/code&amp;gt;&lt;br /&gt;
: The last index of the string to return, defaults to the last character.&lt;br /&gt;
&lt;br /&gt;
The first character of the string is assigned an index of 1.&lt;br /&gt;
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.&lt;br /&gt;
Hence, a value of -1 is the same as selecting the last character of the string.&lt;br /&gt;
&lt;br /&gt;
If the requested indices are out of range for the given string, an error is reported.&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;match&amp;lt;/code&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
This function returns a substring from the source string that matches a specified pattern.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
: {{tmpl|0=&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:&amp;lt;/nowiki&amp;gt;String{{!}}match{{!}}&#039;&#039;$1&#039;&#039;{{!}}&#039;&#039;$2&#039;&#039;{{!}}&#039;&#039;$3&#039;&#039;{{!}}&#039;&#039;$4&#039;&#039;{{!}}&#039;&#039;$5&#039;&#039;{{!}}&#039;&#039;$6&#039;&#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|1=source_string&lt;br /&gt;
|2=pattern_string&lt;br /&gt;
|3=start_index&lt;br /&gt;
|4=match_number&lt;br /&gt;
|5=plain_flag&lt;br /&gt;
|6=nomatch_output&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
: {{tmpl|0=&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:&amp;lt;/nowiki&amp;gt;String{{!}}match{{!}}s= &#039;&#039;$1&#039;&#039; {{!}}pattern= &#039;&#039;$2&#039;&#039; {{!}}start= &#039;&#039;$3&#039;&#039; {{!}}match= &#039;&#039;$4&#039;&#039; {{!}}plain= &#039;&#039;$5&#039;&#039; {{!}}nomatch= &#039;&#039;$6&#039;&#039; &amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|1=source_string&lt;br /&gt;
|2=pattern_string&lt;br /&gt;
|3=start_index&lt;br /&gt;
|4=match_number&lt;br /&gt;
|5=plain_flag&lt;br /&gt;
|6=nomatch_output&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;code&amp;gt;s&amp;lt;/code&amp;gt;&lt;br /&gt;
: The string to search&lt;br /&gt;
; &amp;lt;code&amp;gt;pattern&amp;lt;/code&amp;gt;&lt;br /&gt;
: The pattern or string to find within the string&lt;br /&gt;
; &amp;lt;code&amp;gt;start&amp;lt;/code&amp;gt;&lt;br /&gt;
: The index within the source string to start the search. The first character of the string has index 1. Defaults to 1.&lt;br /&gt;
; &amp;lt;code&amp;gt;match&amp;lt;/code&amp;gt;&lt;br /&gt;
: 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 &amp;lt;code&amp;gt;match = 1&amp;lt;/code&amp;gt;. If a negative number is specified then a match is returned counting from the last match. Hence &amp;lt;code&amp;gt;match = -1&amp;lt;/code&amp;gt; is the same as requesting the last match. Defaults to 1.&lt;br /&gt;
; &amp;lt;code&amp;gt;plain&amp;lt;/code&amp;gt;&lt;br /&gt;
: Boolean flag indicating that pattern should be understood as plain text and not as a [[w:Lua (programming language)|Lua]]-style [[w:Regular expression|regular expression]]. Defaults to {{phpi|false}}.&lt;br /&gt;
; &amp;lt;code&amp;gt;nomatch&amp;lt;/code&amp;gt;&lt;br /&gt;
: If no match is found, output the &amp;quot;nomatch&amp;quot; value rather than an error.&lt;br /&gt;
&lt;br /&gt;
If the &amp;lt;code&amp;gt;match&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;start&amp;lt;/code&amp;gt; are out of range for the string being queried, then this function generates an error.&lt;br /&gt;
An error is also generated if no match is found.&lt;br /&gt;
If one adds the parameter &amp;lt;code&amp;gt;ignore_errors=true&amp;lt;/code&amp;gt;, then the error will be suppressed and an empty string will be returned on any failure.&lt;br /&gt;
&lt;br /&gt;
For information on constructing [[w:Lua (programming language)|Lua]] patterns, a form of [[w:Regular expression|regular expression]], see:&lt;br /&gt;
&lt;br /&gt;
* [https://www.lua.org/manual/5.1/manual.html#5.4.1 Lua reference: Patterns] - as of version 5.1&lt;br /&gt;
* {{ll|Extension:Scribunto/Lua reference manual#Patterns|2=Scribunto patterns}}&lt;br /&gt;
* {{ll|Extension:Scribunto/Lua reference manual#Ustring patterns|2=Scribunto Unicode string patterns}}&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;pos&amp;lt;/code&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
This function returns a single character from the target string at position pos.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
: {{tmpl|0=&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:&amp;lt;/nowiki&amp;gt;String{{!}}pos{{!}}&#039;&#039;$1&#039;&#039;{{!}}&#039;&#039;$2&#039;&#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|1=target_string&lt;br /&gt;
|2=index_value&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
: {{tmpl|0=&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:&amp;lt;/nowiki&amp;gt;String{{!}}pos{{!}}target= &#039;&#039;$1&#039;&#039; {{!}}pos= &#039;&#039;$2&#039;&#039; &amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|1=target_string&lt;br /&gt;
|2=index_value&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;code&amp;gt;target&amp;lt;/code&amp;gt;&lt;br /&gt;
: The string to search&lt;br /&gt;
; &amp;lt;code&amp;gt;pos&amp;lt;/code&amp;gt;&lt;br /&gt;
: The index for the character to return&lt;br /&gt;
&lt;br /&gt;
The first character has an index value of 1.&lt;br /&gt;
&lt;br /&gt;
If one requests a negative value, this function will select a character by counting backwards from the end of the string.&lt;br /&gt;
In other words &amp;lt;code&amp;gt;pos = -1&amp;lt;/code&amp;gt; is the same as asking for the last character.&lt;br /&gt;
&lt;br /&gt;
A requested value of zero, or a value greater than the length of the string returns an error.&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;find&amp;lt;/code&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
This function allows one to search for a target string or pattern within another string.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
: {{tmpl|0=&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:&amp;lt;/nowiki&amp;gt;String{{!}}find{{!}}&#039;&#039;$1&#039;&#039;{{!}}&#039;&#039;$2&#039;&#039;{{!}}&#039;&#039;$3&#039;&#039;{{!}}&#039;&#039;$4&#039;&#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|1=source_str&lt;br /&gt;
|2=target_string&lt;br /&gt;
|3=start_index&lt;br /&gt;
|4=plain_flag&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
: {{tmpl|0=&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:&amp;lt;/nowiki&amp;gt;String{{!}}find{{!}}source= &#039;&#039;$1&#039;&#039; {{!}}target= &#039;&#039;$2&#039;&#039; {{!}}start= &#039;&#039;$3&#039;&#039; {{!}}plain= &#039;&#039;$4&#039;&#039; &amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|1=source_str&lt;br /&gt;
|2=target_str&lt;br /&gt;
|3=start_index&lt;br /&gt;
|4=plain_flag&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;code&amp;gt;source&amp;lt;/code&amp;gt;&lt;br /&gt;
: The string to search&lt;br /&gt;
; &amp;lt;code&amp;gt;target&amp;lt;/code&amp;gt;&lt;br /&gt;
: The string or pattern to find within source&lt;br /&gt;
; &amp;lt;code&amp;gt;start&amp;lt;/code&amp;gt;&lt;br /&gt;
: The index within the source string to start the search, defaults to 1&lt;br /&gt;
; &amp;lt;code&amp;gt;plain&amp;lt;/code&amp;gt;&lt;br /&gt;
: Boolean flag indicating that target should be understood as plain text and not as a [[w:Lua (programming language)|Lua]]-style [[w:Regular expression|regular expression]], defaults to {{phpi|true}}&lt;br /&gt;
&lt;br /&gt;
This function returns the first index &amp;gt;= &amp;quot;start&amp;quot; where &amp;quot;target&amp;quot; can be found within &amp;quot;source&amp;quot;.&lt;br /&gt;
Indices are 1-based.&lt;br /&gt;
If &amp;quot;target&amp;quot; is not found, then this function returns 0.&lt;br /&gt;
If either &amp;quot;source&amp;quot; or &amp;quot;target&amp;quot; are missing / empty, this function also returns 0.&lt;br /&gt;
&lt;br /&gt;
This function should be safe for UTF-8 strings.&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;replace&amp;lt;/code&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
This function allows one to replace a target string or pattern within another string.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
: {{tmpl|0=&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:&amp;lt;/nowiki&amp;gt;String{{!}}replace{{!}}&#039;&#039;$1&#039;&#039;{{!}}&#039;&#039;$2&#039;&#039;{{!}}&#039;&#039;$3&#039;&#039;{{!}}&#039;&#039;$4&#039;&#039;{{!}}&#039;&#039;$5&#039;&#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|1=source_str&lt;br /&gt;
|2=pattern_string&lt;br /&gt;
|3=replace_string&lt;br /&gt;
|4=replacement_count&lt;br /&gt;
|5=plain_flag&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
: {{tmpl|0=&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:&amp;lt;/nowiki&amp;gt;String{{!}}replace{{!}}source= &#039;&#039;$1&#039;&#039; {{!}}pattern= &#039;&#039;$2&#039;&#039; {{!}}replace= &#039;&#039;$3&#039;&#039; {{!}}count= &#039;&#039;$4&#039;&#039; {{!}}plain= &#039;&#039;$5&#039;&#039; &amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|1=source_string&lt;br /&gt;
|2=pattern_string&lt;br /&gt;
|3=replace_string&lt;br /&gt;
|4=replacement_count&lt;br /&gt;
|5=plain_flag&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;code&amp;gt;source&amp;lt;/code&amp;gt;&lt;br /&gt;
: The string to search&lt;br /&gt;
; &amp;lt;code&amp;gt;pattern&amp;lt;/code&amp;gt;&lt;br /&gt;
: The string or pattern to find within source&lt;br /&gt;
; &amp;lt;code&amp;gt;replace&amp;lt;/code&amp;gt;&lt;br /&gt;
: The replacement text&lt;br /&gt;
; &amp;lt;code&amp;gt;count&amp;lt;/code&amp;gt;&lt;br /&gt;
: The number of occurrences to replace; defaults to all&lt;br /&gt;
; &amp;lt;code&amp;gt;plain&amp;lt;/code&amp;gt;&lt;br /&gt;
: Boolean flag indicating that pattern should be understood as plain text and not as a [[Special:MyLanguage/Extension:Scribunto/Lua reference manual#Ustring patterns|Scribunto ustring pattern]] (a unicode-friendly [[w:Lua (programming language)|Lua]]-style [[w:Regular expression|regular expression]]); defaults to {{phpi|true}}&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;rep&amp;lt;/code&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
Repeats a string &#039;&#039;n&#039;&#039; times.&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
: {{tmpl|0=&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:&amp;lt;/nowiki&amp;gt;String{{!}}rep{{!}}&#039;&#039;$1&#039;&#039;{{!}}&#039;&#039;$2&#039;&#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|1=source&lt;br /&gt;
|2=count&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
&lt;br /&gt;
; &amp;lt;code&amp;gt;source&amp;lt;/code&amp;gt;&lt;br /&gt;
: The string to repeat&lt;br /&gt;
; &amp;lt;code&amp;gt;count&amp;lt;/code&amp;gt;&lt;br /&gt;
: The number of repetitions.&lt;br /&gt;
&lt;br /&gt;
Example {{tmpl|0=&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:&amp;lt;/nowiki&amp;gt;String{{!}}rep{{!}}$1{{!}}3&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;|hello}} gives {{tmpl|0={{#invoke:String|rep|$1|3}}|hello}}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Modules]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Module documentation pages{{#translation:}}]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
| #default=&lt;br /&gt;
  {{#invoke:Template translation|renderTranslatedTemplate|template=Module:String/doc|noshift=1|uselang={{int:lang}}}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>FuzzyBot</name></author>
	</entry>
	<entry>
		<id>https://wiki.pub.solar/index.php?title=Template:Mbox_templates/en&amp;diff=297</id>
		<title>Template:Mbox templates/en</title>
		<link rel="alternate" type="text/html" href="https://wiki.pub.solar/index.php?title=Template:Mbox_templates/en&amp;diff=297"/>
		<updated>2025-09-23T21:18:45Z</updated>

		<summary type="html">&lt;p&gt;FuzzyBot: Updating to match new version of source page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages/&amp;gt;&lt;br /&gt;
&amp;lt;onlyinclude&amp;gt;{{nmbox&lt;br /&gt;
| image = [[File:Codex icon puzzle.svg|22px|link=|class=skin-invert]]&lt;br /&gt;
| header = {{ll|Template:Mbox|2=Message box templates}}&lt;br /&gt;
| text = {{flatlist|1=&lt;br /&gt;
* {{tll|ambox}}&lt;br /&gt;
* {{tll|cmbox}}&lt;br /&gt;
* {{tll|fmbox}}&lt;br /&gt;
* {{tll|imbox}}&lt;br /&gt;
* {{tll|nmbox}}&lt;br /&gt;
* {{tll|ombox}}&lt;br /&gt;
* {{tll|tmbox}}&lt;br /&gt;
}}&lt;br /&gt;
}}&amp;lt;/onlyinclude&amp;gt;&lt;br /&gt;
[[Category:Navigation templates{{#translation:}}]]&lt;/div&gt;</summary>
		<author><name>FuzzyBot</name></author>
	</entry>
	<entry>
		<id>https://wiki.pub.solar/index.php?title=Template:Magic_words/en&amp;diff=321</id>
		<title>Template:Magic words/en</title>
		<link rel="alternate" type="text/html" href="https://wiki.pub.solar/index.php?title=Template:Magic_words/en&amp;diff=321"/>
		<updated>2025-09-14T10:22:25Z</updated>

		<summary type="html">&lt;p&gt;FuzzyBot: Updating to match new version of source page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;languages/&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;{{nmbox|image=[[File:Codex icon function.svg|20px|link=|class=skin-invert-image]]&lt;br /&gt;
|header=Magic words&lt;br /&gt;
|headerstyle=background-color=#8d7ebd;|textstyle=background-color=#e6e0f0;&lt;br /&gt;
|text={{flatlist|&lt;br /&gt;
* {{#if:{{{general|}}}||&#039;&#039;&#039;General editors:&#039;&#039;&#039;{{nbsp}}}}{{ll|Help:Magic words|nsp=no}}&lt;br /&gt;
* {{ll|Help:Extension:ParserFunctions|2=Additional parser functions}}&amp;lt;!-- &lt;br /&gt;
* &#039;&#039;{{ll|Extension:ParserFunctions/String functions|String functions}}*&#039;&#039; --&amp;gt; ({{ll|Extension:ParserFunctions|nsp=no}})&lt;br /&gt;
* {{ll|Module:String|2=String functions module}} ({{ll|Extension:Scribunto|nsp=no}})&lt;br /&gt;
* {{ll|Template:Parser functions nav|2=Navbox of parser functions}}&lt;br /&gt;
}}{{#if:{{{general|}}}||&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
{{flatlist|&lt;br /&gt;
* &#039;&#039;&#039;Developers and technical contributors:&#039;&#039;&#039;&lt;br /&gt;
* {{ll|Manual:Expr parser function syntax|2=&amp;lt;code&amp;gt;#expr&amp;lt;/code&amp;gt; syntax}}&lt;br /&gt;
* {{ll|Help:Parser functions in templates|nsp=no}}&lt;br /&gt;
* Parser function extension development: ({{ll|Manual:Extending wiki markup|2=Overview}}&lt;br /&gt;
* {{ll|Manual:Magic words|nsp=no}}&lt;br /&gt;
* {{ll|Manual:Variables|2=Variables}}&lt;br /&gt;
* {{ll|Manual:Parser functions|nsp=no}}&lt;br /&gt;
* {{ll|Manual:Tag extensions|2=Parser tags}})&lt;br /&gt;
* {{ll|Parser function extensions}}&lt;br /&gt;
* {{ll|Parser function extensions#Table of functions|2=List of additional parser functions}}&lt;br /&gt;
* {{ll|Parser function hooks|nsp=no}}&lt;br /&gt;
* {{ll|Parser extension tags|2=List of parser tags}}&lt;br /&gt;
* {{ll|Category:Parser extensions}} ({{ll|Category:Parser function extensions}}&lt;br /&gt;
* {{ll|Category:Tag extensions}}&lt;br /&gt;
* {{ll|Category:Variable extensions}})&lt;br /&gt;
}}&lt;br /&gt;
}}}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation}}&lt;br /&gt;
[[Category:Navigation templates{{#translation:}}]]&lt;br /&gt;
[[Category:Magic words{{#translation:}}]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>FuzzyBot</name></author>
	</entry>
	<entry>
		<id>https://wiki.pub.solar/index.php?title=Template:Template_shortcut/en&amp;diff=253</id>
		<title>Template:Template shortcut/en</title>
		<link rel="alternate" type="text/html" href="https://wiki.pub.solar/index.php?title=Template:Template_shortcut/en&amp;diff=253"/>
		<updated>2025-08-27T20:50:15Z</updated>

		<summary type="html">&lt;p&gt;FuzzyBot: Updating to match new version of source page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
&amp;lt;onlyinclude&amp;gt;{{#tag:indicator|{{Badge|content={{PLURAL:&amp;lt;includeonly&amp;gt;{{#invoke:Loops|numArgs}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;1&amp;lt;/noinclude&amp;gt;|shortcut|shortcuts}}: &amp;lt;!--&lt;br /&gt;
--&amp;gt;&amp;lt;noinclude&amp;gt;{{mono|nowrap=1|&amp;amp;#123;&amp;amp;#123;{{No redirect|Template:tsh|tsh}}&amp;amp;#125;&amp;amp;#125;}}&amp;lt;/noinclude&amp;gt;&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#invoke:Loops|forNumArgs| {{mono|nowrap=1|{{#if:{{yesno|{{{target|}}}}}&amp;lt;!--&lt;br /&gt;
	--&amp;gt;|²{tl¦$1}²&amp;lt;!--&lt;br /&gt;
	--&amp;gt;|&amp;amp;#123;&amp;amp;#123;²{No redirect¦Template:$1¦$1}²&amp;amp;#125;&amp;amp;#125;&amp;lt;!--&lt;br /&gt;
--&amp;gt;}}}} }}&amp;lt;!--&lt;br /&gt;
--&amp;gt;}}|name=tpl-shortcut}}&amp;lt;/onlyinclude&amp;gt;&lt;br /&gt;
{{Documentation|content=&lt;br /&gt;
{{Lua|Module:Loops}}&lt;br /&gt;
== TemplateData ==&lt;br /&gt;
{{Template:Template shortcut/doc}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tlx|Shortcut}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>FuzzyBot</name></author>
	</entry>
	<entry>
		<id>https://wiki.pub.solar/index.php?title=Template:Translatable_template_name/en&amp;diff=277</id>
		<title>Template:Translatable template name/en</title>
		<link rel="alternate" type="text/html" href="https://wiki.pub.solar/index.php?title=Template:Translatable_template_name/en&amp;diff=277"/>
		<updated>2025-06-27T22:46:36Z</updated>

		<summary type="html">&lt;p&gt;FuzzyBot: Updating to match new version of source page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;languages/&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{#invoke:Template translation{{{sandbox|}}}|getTranslatedTemplate|uselang={{{uselang|}}}|tntns={{{tntns|{{{namespace|}}}}}}|template={{#if:{{{noshift|}}}|{{{template}}}|{{{1}}}}}|noshift={{{noshift|}}}&amp;lt;!-- there are no other parameters here --&amp;gt;}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{documentation|content=&lt;br /&gt;
&lt;br /&gt;
{{High-use|15000}}&lt;br /&gt;
{{tsh|TNTN|tntn}}&lt;br /&gt;
{{Lua|Module:Template translation}}&lt;br /&gt;
&lt;br /&gt;
== Purpose ==&lt;br /&gt;
This template is used to return the name of translatable templates in the language of the current page.&lt;br /&gt;
Templates, like all other MediaWiki pages, can be translated using the {{ll|Extension:Translate|nsp=0}} extension, which creates subpages with the form &amp;quot;pagename/language code&amp;quot;.&lt;br /&gt;
The template first checks if the name of the page contains a language code.&lt;br /&gt;
If it does, it then checks if the template name given as a first parameter has a translation in that language.&lt;br /&gt;
If the page name does not contain a language code, or if the navigation template doesn&#039;t exist in that language, it will display the English template.&lt;br /&gt;
&lt;br /&gt;
== How to use ==&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{ {{Translatable template name|&amp;lt;/nowiki&amp;gt;&#039;&#039;name of navigation template&#039;&#039;&amp;lt;nowiki&amp;gt;}}|&amp;lt;/nowiki&amp;gt;&#039;&#039;parameters....&#039;&#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{ {{TNTN|&amp;lt;/nowiki&amp;gt;&#039;&#039;name of navigation template&#039;&#039;&amp;lt;nowiki&amp;gt;}}|&amp;lt;/nowiki&amp;gt;&#039;&#039;parameters....&#039;&#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{ {{tntn|&amp;lt;/nowiki&amp;gt;&#039;&#039;name of navigation template&#039;&#039;&amp;lt;nowiki&amp;gt;}}|&amp;lt;/nowiki&amp;gt;&#039;&#039;parameters....&#039;&#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example (from translatable [[meta:Template:Meta]], used in translatable page [[meta:Meta:About]]):&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Translatable template name|Navbar}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{TNTN|Navbar}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which returns the translated versions of {{tl|Navbar}} if it exists, or the English version if translations don&#039;t exist.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
The current version of the template may now include any kind of named or numbered parameters, whose values will be transferred into the called template (except for parameter 1 containing the basename of the translatable template to transclude).&lt;br /&gt;
Numbered parameters will be shifted down by one position, all named parameters will be passed unchanged.&lt;br /&gt;
&lt;br /&gt;
One named parameter is treated specially:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Translatable template name|tntns=&amp;lt;/nowiki&amp;gt;&#039;&#039;:somename:&#039;&#039;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&#039;&#039;page name&#039;&#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{TNTN|tntns=&amp;lt;/nowiki&amp;gt;&#039;&#039;:somename:&#039;&#039;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&#039;&#039;page name&#039;&#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{tntn|tntns=&amp;lt;/nowiki&amp;gt;&#039;&#039;:somename:&#039;&#039;&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;&#039;&#039;page name&#039;&#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;tntns&amp;lt;/code&amp;gt; will be used to specify another namespace from which the translatable pagename will be transcluded, instead of referencing the page name from the default &amp;lt;code&amp;gt;:Template:&amp;lt;/code&amp;gt; namespace. Note that this parameter is also passed (without modification) within the parameters of the transclusion.&lt;br /&gt;
&lt;br /&gt;
Example with one parameters (from [[meta:Meta:About]] which is translatable):&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{ {{TNTN|Navbar}} |Meta:About}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dependency ==&lt;br /&gt;
* [[Module:Template translation]] (standard version)&lt;br /&gt;
* [[meta:Module:Template translation/sandbox]] (used when this template is called with optional parameter &amp;lt;code&amp;gt;sandbox=/sandbox&amp;lt;/code&amp;gt;, for testing modifications only)&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|Translatable template}}, alias {{tl|TNT}} or {{tl|tnt}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Navigation templates{{#translation:}}|* {{PAGENAME}}]]&lt;br /&gt;
[[Category:Internationalization templates{{#translation:}}|{{PAGENAME}}]]&lt;br /&gt;
[[Category:Lua-based templates]]&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>FuzzyBot</name></author>
	</entry>
	<entry>
		<id>https://wiki.pub.solar/index.php?title=Template:High-risk/en&amp;diff=267</id>
		<title>Template:High-risk/en</title>
		<link rel="alternate" type="text/html" href="https://wiki.pub.solar/index.php?title=Template:High-risk/en&amp;diff=267"/>
		<updated>2023-08-19T01:30:35Z</updated>

		<summary type="html">&lt;p&gt;FuzzyBot: Updating to match new version of source page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;languages/&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;{{#switch:&lt;br /&gt;
| =&lt;br /&gt;
{{ombox&lt;br /&gt;
| type = content&lt;br /&gt;
| image = [[File:OOjs UI icon alert-warning.svg|40px|alt=]]&lt;br /&gt;
| imageright =&lt;br /&gt;
| text = {{#switch:{{NAMESPACE}}&lt;br /&gt;
  |Module={{#if:{{{1|}}}&lt;br /&gt;
    |&#039;&#039;&#039;This Lua module is used on approximately {{formatnum:{{{1}}}}} pages.&#039;&#039;&#039;&lt;br /&gt;
    |&#039;&#039;&#039;This Lua module is used on many pages.&#039;&#039;&#039;&lt;br /&gt;
    }}&amp;lt;!--/#if--&amp;gt;&lt;br /&gt;
  |#default={{#if:{{{1|}}}&lt;br /&gt;
    |&#039;&#039;&#039;This template is used on approximately {{formatnum:{{{1}}}}} pages.&#039;&#039;&#039;&lt;br /&gt;
    |&#039;&#039;&#039;This template is used on many pages.&#039;&#039;&#039;&lt;br /&gt;
    }}&amp;lt;!--/#if--&amp;gt;&lt;br /&gt;
  }}&amp;lt;!--/#switch--&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
{{#switch:{{NAMESPACE}}&lt;br /&gt;
  |Module=To avoid large-scale disruption and unnecessary server load, any changes to this module should first be tested in its [[{{#switch:{{SUBPAGENAME}}|doc|sandbox={{SUBJECTSPACE}}:{{BASEPAGENAME}}|#default={{SUBJECTPAGENAME}}}}/sandbox|/sandbox]] or [[{{#switch:{{SUBPAGENAME}}|doc|sandbox={{SUBJECTSPACE}}:{{BASEPAGENAME}}|#default={{SUBJECTPAGENAME}}}}/testcases|/testcases]] subpages.&lt;br /&gt;
  |#default=To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its [[{{#switch:{{SUBPAGENAME}}|doc|sandbox={{SUBJECTSPACE}}:{{BASEPAGENAME}}|#default={{SUBJECTPAGENAME}}}}/sandbox|/sandbox]] or [[{{#switch:{{SUBPAGENAME}}|doc|sandbox={{SUBJECTSPACE}}:{{BASEPAGENAME}}|#default={{SUBJECTPAGENAME}}}}/testcases|/testcases]] subpages or in your own [[Special:MyLanguage/Help:Subpages#Use of subpages|user subpage]].&lt;br /&gt;
}}&amp;lt;!--/#switch--&amp;gt;&lt;br /&gt;
The tested changes can then be added to this page in one single edit.&lt;br /&gt;
{{#if:{{{2|}}}&lt;br /&gt;
  |Please consider discussing any changes at [[{{trim|{{{2}}}}}]] before implementing them.&lt;br /&gt;
  |Please consider discussing any changes on the [[{{#switch:{{SUBPAGENAME}}|doc|sandbox={{TALKSPACE}}:{{BASEPAGENAME}}|#default={{TALKPAGENAME}}}}|talk page]] before implementing them.&lt;br /&gt;
  }}&amp;lt;!--/#if--&amp;gt;&lt;br /&gt;
}}&amp;lt;!--/ombox--&amp;gt;&lt;br /&gt;
| #default=&lt;br /&gt;
  {{#invoke:Template translation|renderTranslatedTemplate|template=Template:High-risk|noshift=1|uselang={{int:lang}}}}&lt;br /&gt;
}}&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Documentation|content=&lt;br /&gt;
&lt;br /&gt;
This is the {{tl|high-risk}} message box. It is meant to be put at the top of the documentation page on the most high-use (high-risk) templates and Lua modules (the template detects the name space), i.e., for templates used on a large number of pages&lt;br /&gt;
&lt;br /&gt;
{{note|1=It is normal that some of the links in the message box are red.}}&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
The template can be used as is.&lt;br /&gt;
But it can also take some parameters:&lt;br /&gt;
&lt;br /&gt;
* First parameter is the number of pages.&lt;br /&gt;
* Second parameter is the name of some other talk page if you want discussion to be made there instead. But a better option might be to redirect the talkpage of your template to that other talkpage.&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{high-risk| 30,000+ | Project:Village Pump}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{high-risk| 30,000+ | Project:Village Pump}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{high-risk| 30,000+ }}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{high-risk| 30,000+ }}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{high-risk| | Project:Village Pump}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{high-risk| | Project:Village Pump}}&lt;br /&gt;
&lt;br /&gt;
The full code for a /doc page top may look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). --&amp;gt;&lt;br /&gt;
{{high-risk| 30,000+ }}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Technical details ===&lt;br /&gt;
The [[{{translatable}}/sandbox|/sandbox]] and [[{{translatable}}/testcases|/testcases]] links are the standard names for such subpages.&lt;br /&gt;
If those pages are created then the green /doc box for the template will detect them and link to them in its heading.&lt;br /&gt;
For instance see the top of this documentation.&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
* {{tl|intricate template}} – For the intricate, i.e., complex templates.&lt;br /&gt;
* {{tl|pp-template}} – The protection template that usually is put on high-risk templates.&lt;br /&gt;
* {{tl|used in system}} – For templates used in the user interface.&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>FuzzyBot</name></author>
	</entry>
	<entry>
		<id>https://wiki.pub.solar/index.php?title=Template:Module_rating/en&amp;diff=313</id>
		<title>Template:Module rating/en</title>
		<link rel="alternate" type="text/html" href="https://wiki.pub.solar/index.php?title=Template:Module_rating/en&amp;diff=313"/>
		<updated>2021-08-06T11:11:35Z</updated>

		<summary type="html">&lt;p&gt;FuzzyBot: Updating to match new version of source page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;languages /&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{Module other|{{ombox&lt;br /&gt;
 | type      = notice&lt;br /&gt;
 | image     = {{#switch: {{{1|}}}&lt;br /&gt;
   | pre-alpha | prealpha | pa = [[File:OOjs UI icon text-style.svg|40x40px|link=]]&lt;br /&gt;
   | alpha | a                 = [[File:OOjs UI icon bold-a.svg|40x40px|link=]]&lt;br /&gt;
   | beta | b                  = [[File:OOjs UI icon bold-b.svg|40x40px|link=]]&lt;br /&gt;
   | release | r | general | g = [[File:OOjs UI icon check-constructive.svg|40x40px|link=]]&lt;br /&gt;
   | protected | protect | p   = [[File:{{#if:{{CASCADINGSOURCES:{{FULLPAGENAME}}}}|Cascade-protection-shackle.svg|{{#ifeq:{{PROTECTIONLEVEL:edit}}|sysop|Full-protection-shackle-red.svg|Semi-protection-shackle-no-text.svg}}}}|40x40px|link=]]&lt;br /&gt;
   | semiprotected | semiprotect | semi = [[File:Semi-protection-shackle.svg|40x40px|link=]]&lt;br /&gt;
   | #default = [[File:OOjs UI icon alert-destructive.svg|40x40px|link=]]&lt;br /&gt;
  }}&lt;br /&gt;
 | style     = &lt;br /&gt;
 | textstyle = &lt;br /&gt;
 | text      = {{#switch: {{{1|}}}&lt;br /&gt;
   | pre-alpha | prealpha | pa = This module is rated as [[Special:MyLanguage/Category:Modules in pre-alpha development|pre-alpha]]. It is unfinished, and may or may not be in active development. It should not be used from article namespace pages. 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.&amp;lt;!--&lt;br /&gt;
   --&amp;gt;{{#ifexpr:&lt;br /&gt;
         &amp;lt;!-- No category for /doc or /sandbox subpages --&amp;gt;&lt;br /&gt;
         {{IsDocSubpage|false=0}} or {{#ifeq:{{SUBPAGENAME}}|sandbox|1|0}}&lt;br /&gt;
       || {{#ifeq: {{{nocat|}}} | true | &amp;lt;!-- No category if user sets nocat=true --&amp;gt; | [[Category:Modules in pre-alpha development|{{PAGENAME}}]] }}&lt;br /&gt;
      }}&lt;br /&gt;
   | alpha | a                 = This module is rated as [[Special:MyLanguage/Category:Modules in alpha|alpha]]. It is ready for third party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome.&amp;lt;!--&lt;br /&gt;
   --&amp;gt;{{#ifexpr:&lt;br /&gt;
         &amp;lt;!-- No category for /doc or /sandbox subpages --&amp;gt;&lt;br /&gt;
         {{IsDocSubpage|false=0}} or {{#ifeq:{{SUBPAGENAME}}|sandbox|1|0}}&lt;br /&gt;
       || {{#ifeq: {{{nocat|}}} | true | &amp;lt;!-- No category if user sets nocat=true --&amp;gt; | [[Category:Modules in alpha|{{PAGENAME}}]] }}&lt;br /&gt;
      }}&lt;br /&gt;
   | beta | b                  = This module is rated as [[Special:MyLanguage/Category:Modules in beta|beta]], and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected.&amp;lt;!--&lt;br /&gt;
   --&amp;gt;{{#ifexpr:&lt;br /&gt;
         &amp;lt;!-- No category for /doc or /sandbox subpages --&amp;gt;&lt;br /&gt;
         {{IsDocSubpage|false=0}} or {{#ifeq:{{SUBPAGENAME}}|sandbox|1|0}}&lt;br /&gt;
       || {{#ifeq: {{{nocat|}}} | true | &amp;lt;!-- No category if user sets nocat=true --&amp;gt; | [[Category:Modules in beta|{{PAGENAME}}]] }}&lt;br /&gt;
      }}&lt;br /&gt;
   | release | r | general | g = This module is rated as [[Special:MyLanguage/Category:Modules for general use|ready for general use]]. It has reached a mature form and is thought to be bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other resources as an option for new users to learn. To reduce server load and bad output, it should be improved by [[w:WP:TESTCASES|sandbox testing]] rather than repeated trial-and-error editing.&amp;lt;!--&lt;br /&gt;
   --&amp;gt;{{#ifexpr:&lt;br /&gt;
         &amp;lt;!-- No category for /doc or /sandbox subpages --&amp;gt;&lt;br /&gt;
         {{IsDocSubpage|false=0}} or {{#ifeq:{{SUBPAGENAME}}|sandbox|1|0}}&lt;br /&gt;
       || {{#ifeq: {{{nocat|}}} | true | &amp;lt;!-- No category if user sets nocat=true --&amp;gt; | [[Category:Modules for general use|{{PAGENAME}}]] }}&lt;br /&gt;
      }}&lt;br /&gt;
   | protected | protect | p   = This module is [[Special:MyLanguage/Category:Modules subject to page protection|subject to {{#if:{{CASCADINGSOURCES:{{FULLPAGENAME}}}}|cascading|page}} protection]]. It is a highly visible module in use by a very large number of pages. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[Special:MyLanguage/Project:Protected page|protected]] from editing.&amp;lt;!--&lt;br /&gt;
   --&amp;gt;{{#ifexpr:&lt;br /&gt;
         &amp;lt;!-- No category for /doc or /sandbox subpages --&amp;gt;&lt;br /&gt;
         {{IsDocSubpage|false=0}} or {{#ifeq:{{SUBPAGENAME}}|sandbox|1|0}}&lt;br /&gt;
       || {{#ifeq: {{{nocat|}}} | true | &amp;lt;!-- No category if user sets nocat=true --&amp;gt; | [[Category:Modules subject to page protection|{{PAGENAME}}]] }}&lt;br /&gt;
      }}&lt;br /&gt;
   | #default                  = {{error|1=Module rating is invalid or not specified.}}&lt;br /&gt;
  }}&lt;br /&gt;
}}|{{error|1=Error: {{tl|Module rating}} must be placed in the Module namespace.}}|demospace={{{demospace|&amp;lt;noinclude&amp;gt;module&amp;lt;/noinclude&amp;gt;}}}}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{documentation|content=&lt;br /&gt;
&lt;br /&gt;
This template is used to rate [[Lua/Overview|Lua modules]] by quality.&lt;br /&gt;
It is placed at the top of the module&#039;s /doc subpage.&lt;br /&gt;
It produces a message informing users about the rating system, and it also places the module into a tracking category.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
Basic usage:&lt;br /&gt;
{{pre|{{tlx|module rating|&#039;&#039;rating&#039;&#039;}}}}&lt;br /&gt;
&lt;br /&gt;
Without categories:&lt;br /&gt;
{{pre|{{tlx|module rating|&#039;&#039;rating&#039;&#039;|3=nocat=true}}}}&lt;br /&gt;
&lt;br /&gt;
If {{tlx|Module rating}} is used outside the Module namespace, an error message is shown: {{module rating}}&lt;br /&gt;
&lt;br /&gt;
== Ratings ==&lt;br /&gt;
The rating should be placed in the first positional parameter.&lt;br /&gt;
There are five different ratings: &#039;&#039;&#039;pre-alpha&#039;&#039;&#039;{{int|comma-separator}}&#039;&#039;&#039;alpha&#039;&#039;&#039;{{int|comma-separator}}&#039;&#039;&#039;beta&#039;&#039;&#039;{{int|comma-separator}}&#039;&#039;&#039;release&#039;&#039;&#039;{{int|and}}{{int|word-separator}}&#039;&#039;&#039;protected&#039;&#039;&#039;.&lt;br /&gt;
There are also short alias codes for each of the ratings.&lt;br /&gt;
&lt;br /&gt;
{{(!}} class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Rating&lt;br /&gt;
! Aliases&lt;br /&gt;
! Result&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!}} &amp;lt;code&amp;gt;pre-alpha&amp;lt;/code&amp;gt;&lt;br /&gt;
{{!}} &amp;lt;code&amp;gt;prealpha&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;code&amp;gt;pa&amp;lt;/code&amp;gt;&lt;br /&gt;
{{!}} {{module rating|pre-alpha|nocat=true|demospace=Module}}&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!}} &amp;lt;code&amp;gt;alpha&amp;lt;/code&amp;gt;&lt;br /&gt;
{{!}} &amp;lt;code&amp;gt;a&amp;lt;/code&amp;gt;&lt;br /&gt;
{{!}} {{module rating|alpha|nocat=true|demospace=module}}&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!}} &amp;lt;code&amp;gt;beta&amp;lt;/code&amp;gt;&lt;br /&gt;
{{!}} &amp;lt;code&amp;gt;b&amp;lt;/code&amp;gt;&lt;br /&gt;
{{!}} {{module rating|beta|nocat=true|demospace=module}}&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!}} &amp;lt;code&amp;gt;release&amp;lt;/code&amp;gt;&lt;br /&gt;
{{!}} &amp;lt;code&amp;gt;r&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;code&amp;gt;general&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;code&amp;gt;g&amp;lt;/code&amp;gt;&lt;br /&gt;
{{!}} {{module rating|release|nocat=true|demospace=module}}&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!}} &amp;lt;code&amp;gt;protected&amp;lt;/code&amp;gt;&lt;br /&gt;
{{!}} &amp;lt;code&amp;gt;protect&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;code&amp;gt;p&amp;lt;/code&amp;gt;&lt;br /&gt;
{{!}} {{module rating|protected|nocat=true|demospace=module}}&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!}} &#039;&#039;Anything else or if missing&#039;&#039;&lt;br /&gt;
{{!}}&lt;br /&gt;
{{!}} {{module rating|prdaskidkated|nocat=true|demospace=module}}&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!)}}&lt;br /&gt;
&lt;br /&gt;
== TemplateData ==&lt;br /&gt;
{{Module rating/doc}}&lt;br /&gt;
&lt;br /&gt;
== Categories ==&lt;br /&gt;
&lt;br /&gt;
The template will put modules in one of the following categories, according to the rating specified:&lt;br /&gt;
&lt;br /&gt;
* {{ll|Category:Modules in pre-alpha development}}&lt;br /&gt;
* {{ll|Category:Modules in alpha}}&lt;br /&gt;
* {{ll|Category:Modules in beta}}&lt;br /&gt;
* {{ll|Category:Modules for general use}}&lt;br /&gt;
* {{ll|Category:Modules subject to page protection}}&lt;br /&gt;
&lt;br /&gt;
These categories are suppressed on pages ending with /doc.&lt;br /&gt;
To suppress categories on all pages, you can use the code {{para|nocat|true}}.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|module-rating categories}}&lt;br /&gt;
* [[Lua]]&lt;br /&gt;
* {{tl|Lua}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>FuzzyBot</name></author>
	</entry>
</feed>