<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://odden.us:443/thadar/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AScript_utilities%2Fdocumentation</id>
	<title>Module:Script utilities/documentation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://odden.us:443/thadar/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AScript_utilities%2Fdocumentation"/>
	<link rel="alternate" type="text/html" href="https://odden.us:443/thadar/wiki/index.php?title=Module:Script_utilities/documentation&amp;action=history"/>
	<updated>2026-04-12T07:28:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://odden.us:443/thadar/wiki/index.php?title=Module:Script_utilities/documentation&amp;diff=1206&amp;oldid=prev</id>
		<title>Oa10712: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://odden.us:443/thadar/wiki/index.php?title=Module:Script_utilities/documentation&amp;diff=1206&amp;oldid=prev"/>
		<updated>2022-09-06T03:36:01Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:36, 5 September 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Oa10712</name></author>
	</entry>
	<entry>
		<id>https://odden.us:443/thadar/wiki/index.php?title=Module:Script_utilities/documentation&amp;diff=1205&amp;oldid=prev</id>
		<title>en&gt;WingerBot: Semi-manually rename category refs named &quot;LANG terms .* script&quot; to &quot;Requests for .* script for LANG terms&quot;</title>
		<link rel="alternate" type="text/html" href="https://odden.us:443/thadar/wiki/index.php?title=Module:Script_utilities/documentation&amp;diff=1205&amp;oldid=prev"/>
		<updated>2019-10-29T04:57:52Z</updated>

		<summary type="html">&lt;p&gt;Semi-manually rename category refs named &amp;quot;LANG terms .* script&amp;quot; to &amp;quot;Requests for .* script for LANG terms&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This module provides access to [[Module:scripts]] from templates, so that they can make use of the information stored there. It also provides a number of functions that can be used by other modules.&lt;br /&gt;
&lt;br /&gt;
Data is found in [[Module:script utilities/data]].&lt;br /&gt;
&lt;br /&gt;
== Exported functions ==&lt;br /&gt;
&lt;br /&gt;
=== lang_t ===&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:script utilities|lang_t}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is used by {{temp|lang}} to wrap portions of text in a language tag. See there for more information.&lt;br /&gt;
&lt;br /&gt;
=== tag_text ===&lt;br /&gt;
&amp;lt;code&amp;gt;tag_text(text, lang, sc, face, class)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Wraps the given text in HTML tags with appropriate CSS classes (see [[WT:CSS]]) for the [[Module:languages#Language objects|language]] and script. This is required for all non-English text on Wiktionary.&lt;br /&gt;
&lt;br /&gt;
The actual tags and CSS classes that are added are determined by the &amp;lt;code&amp;gt;face&amp;lt;/code&amp;gt; parameter. It can be one of the following:&lt;br /&gt;
; {{code|lua|&amp;quot;term&amp;quot;}}&lt;br /&gt;
: The text is wrapped in {{code|html|2=&amp;lt;i class=&amp;quot;(sc) mention&amp;quot; lang=&amp;quot;(lang)&amp;quot;&amp;gt;...&amp;lt;/i&amp;gt;}}.&lt;br /&gt;
; {{code|lua|&amp;quot;head&amp;quot;}}&lt;br /&gt;
: The text is wrapped in {{code|html|2=&amp;lt;strong class=&amp;quot;(sc) headword&amp;quot; lang=&amp;quot;(lang)&amp;quot;&amp;gt;...&amp;lt;/strong&amp;gt;}}.&lt;br /&gt;
; {{code|lua|&amp;quot;hypothetical&amp;quot;}}&lt;br /&gt;
: The text is wrapped in {{code|html|2=&amp;lt;span class=&amp;quot;hypothetical-star&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;&amp;lt;i class=&amp;quot;(sc) hypothetical&amp;quot; lang=&amp;quot;(lang)&amp;quot;&amp;gt;...&amp;lt;/i&amp;gt;}}.&lt;br /&gt;
; {{code|lua|&amp;quot;bold&amp;quot;}}&lt;br /&gt;
: The text is wrapped in {{code|html|2=&amp;lt;b class=&amp;quot;(sc)&amp;quot; lang=&amp;quot;(lang)&amp;quot;&amp;gt;...&amp;lt;/b&amp;gt;}}.&lt;br /&gt;
; {{code|lua|nil}}&lt;br /&gt;
: The text is wrapped in {{code|html|2=&amp;lt;span class=&amp;quot;(sc)&amp;quot; lang=&amp;quot;(lang)&amp;quot;&amp;gt;...&amp;lt;/span&amp;gt;}}.&lt;br /&gt;
&lt;br /&gt;
The optional &amp;lt;code&amp;gt;class&amp;lt;/code&amp;gt; parameter can be used to specify an additional CSS class to be added to the tag.&lt;br /&gt;
&lt;br /&gt;
=== tag_translit ===&lt;br /&gt;
&amp;lt;code&amp;gt;tag_translit(translit, lang, kind, attributes)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tags the transliteration for given text &amp;lt;code&amp;gt;translit&amp;lt;/code&amp;gt; and language &amp;lt;code&amp;gt;lang&amp;lt;/code&amp;gt;. It will add the language, script subtag (as defined in [https://www.rfc-editor.org/rfc/bcp/bcp47.txt BCP 47 2.2.3]) and [https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir dir] (directional) attributes as needed.&lt;br /&gt;
&lt;br /&gt;
The optional &amp;lt;code&amp;gt;kind&amp;lt;/code&amp;gt; parameter can be one of the following:&lt;br /&gt;
; {{code|lua|&amp;quot;term&amp;quot;}}&lt;br /&gt;
: tag transliteration for {{temp|mention}}&lt;br /&gt;
; {{code|lua|&amp;quot;usex&amp;quot;}}&lt;br /&gt;
: tag transliteration for {{temp|usex}}&lt;br /&gt;
; {{code|lua|&amp;quot;head&amp;quot;}}&lt;br /&gt;
: tag transliteration for {{temp|head}}&lt;br /&gt;
; {{code|lua|&amp;quot;default&amp;quot;}}&lt;br /&gt;
: default&lt;br /&gt;
&lt;br /&gt;
The optional &amp;lt;code&amp;gt;attributes&amp;lt;/code&amp;gt; parameter is used to specify additional HTML attributes for the tag.&lt;br /&gt;
&lt;br /&gt;
=== request_script ===&lt;br /&gt;
&amp;lt;code&amp;gt;request_script(lang, sc)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Generates a request to provide a term in its native script, if it is missing. This is used by the {{temp|rfscript}} template as well as by the functions in [[Module:links]].&lt;br /&gt;
&lt;br /&gt;
The function will add entries to one of the subcategories of [[:Category:Requests for native script by language]], and do several checks on the given language and script. In particular:&lt;br /&gt;
* If the script was given, a subcategory named &amp;quot;Requests for (script) script&amp;quot; is added, but only if the language has more than one script. Otherwise, the main &amp;quot;Requests for native script&amp;quot; category is used.&lt;br /&gt;
* Nothing is added at all if the language has no scripts other than Latin and its varieties.&lt;br /&gt;
&lt;br /&gt;
=== template_rfscript ===&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:script utilities|template_rfscript}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is used by {{temp|rfscript}}. See there for more information.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Module:scripts]] — script related code&lt;br /&gt;
* [[Module:scripts/data]] — script data module&lt;br /&gt;
* [[Module:JSON data]] — for exporting all the script data at once&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:General utility modules]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>en&gt;WingerBot</name></author>
	</entry>
</feed>