<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.statsape.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3ASu%2Fdoc</id>
	<title>模块:Su/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.statsape.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3ASu%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E5%9D%97:Su/doc&amp;action=history"/>
	<updated>2026-11-10T15:54:16Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://wiki.statsape.com/index.php?title=%E6%A8%A1%E5%9D%97:Su/doc&amp;diff=4310&amp;oldid=prev</id>
		<title>Zeroclanzhang：​创建页面，内容为“{{High-use}} This module implements the {{tl|su}} template. It is used to create two smaller lines of text on one actual line.  == Usage from wikitext ==  This module cannot be used directly from wikitext. It can only be used through a template, usually the {{tl|su}} template. Please see the template page for documentation.  == Usage from Lua modules ==  To use this module from other Lua modules, first load the module.  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; local mSu =…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=%E6%A8%A1%E5%9D%97:Su/doc&amp;diff=4310&amp;oldid=prev"/>
		<updated>2024-01-16T10:25:32Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{High-use}} This module implements the {{tl|su}} template. It is used to create two smaller lines of text on one actual line.  == Usage from wikitext ==  This module cannot be used directly from wikitext. It can only be used through a template, usually the {{tl|su}} template. Please see the template page for documentation.  == Usage from Lua modules ==  To use this module from other Lua modules, first load the module.  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; local mSu =…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{High-use}}&lt;br /&gt;
This module implements the {{tl|su}} template. It is used to create two smaller lines of text on one actual line.&lt;br /&gt;
&lt;br /&gt;
== Usage from wikitext ==&lt;br /&gt;
&lt;br /&gt;
This module cannot be used directly from wikitext. It can only be used through a template, usually the {{tl|su}} template. Please see the template page for documentation.&lt;br /&gt;
&lt;br /&gt;
== Usage from Lua modules ==&lt;br /&gt;
&lt;br /&gt;
To use this module from other Lua modules, first load the module.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local mSu = require(&amp;#039;Module:Su&amp;#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can then generate the su links by using the _main function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mSu._main(sup, sub, options)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;var&amp;gt;sup&amp;lt;/var&amp;gt; is the contents of the top line, and &amp;lt;var&amp;gt;sub&amp;lt;/var&amp;gt; is the contents of the bottom line. &amp;lt;var&amp;gt;options&amp;lt;/var&amp;gt; is a table that can contain the following fields:&lt;br /&gt;
* &amp;lt;code&amp;gt;align&amp;lt;/code&amp;gt; - this can be set to &amp;quot;r&amp;quot; or &amp;quot;right&amp;quot; for right-alignment, and &amp;quot;c&amp;quot; or &amp;quot;center&amp;quot; for center-alignment. Anything else will make the output left-aligned. Must be a string value.&lt;br /&gt;
* &amp;lt;code&amp;gt;fontSize&amp;lt;/code&amp;gt; - the font size of the text, e.g. &amp;quot;90%&amp;quot;. If set to &amp;quot;f&amp;quot; or &amp;quot;fixed&amp;quot;, the module will output a fixed-width font at 80%. Must be a string value.&lt;br /&gt;
* &amp;lt;code&amp;gt;lineHeight&amp;lt;/code&amp;gt; - the distance from top to bottom (including top character). Default is 1.2em. Must be a string value.&lt;br /&gt;
* &amp;lt;code&amp;gt;verticalAlign&amp;lt;/code&amp;gt; - The base alignment from the bottom. Default depends on presence of &amp;lt;code&amp;gt;sub&amp;lt;/code&amp;gt;; -0.4em if present, 0.8em if not. Must be a string value.&lt;br /&gt;
&lt;br /&gt;
All arguments are optional.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Code&lt;br /&gt;
! Result&lt;br /&gt;
|-&lt;br /&gt;
| {{code|mSu._main(&amp;#039;top-line text&amp;#039;, &amp;#039;bottom-line text&amp;#039;)|lua}}&lt;br /&gt;
| {{su|p=top-line text|b=bottom-line text}}&lt;br /&gt;
|-&lt;br /&gt;
| {{code|1=mSu._main(&amp;#039;top-line text&amp;#039;, &amp;#039;bottom-line text&amp;#039;, {fontSize = &amp;#039;100%&amp;#039;})|2=lua}}&lt;br /&gt;
| {{su|p=top-line text|b=bottom-line text|w=100%}}&lt;br /&gt;
|-&lt;br /&gt;
| {{code|1=mSu._main(&amp;#039;top-line text&amp;#039;, &amp;#039;bottom-line text&amp;#039;, {fontSize = &amp;#039;f&amp;#039;})|2=lua}}&lt;br /&gt;
| {{su|p=top-line text|b=bottom-line text|w=f}}&lt;br /&gt;
|-&lt;br /&gt;
| {{code|1=mSu._main(&amp;#039;top-line text&amp;#039;, &amp;#039;bottom-line text&amp;#039;, {align = &amp;#039;r&amp;#039;})|2=lua}}&lt;br /&gt;
| {{su|p=top-line text|b=bottom-line text|a=r}}&lt;br /&gt;
|-&lt;br /&gt;
| {{code|1=mSu._main(&amp;#039;top-line text&amp;#039;, &amp;#039;bottom-line text&amp;#039;, {align = &amp;#039;c&amp;#039;})|2=lua}}&lt;br /&gt;
| {{su|p=top-line text|b=bottom-line text|a=c}}&lt;br /&gt;
|-&lt;br /&gt;
| {{code|1=mSu._main(&amp;#039;12&amp;#039;, &amp;#039;8&amp;#039;, {align = &amp;#039;c&amp;#039;, lineHeight = &amp;#039;0.8em&amp;#039;})|2=lua}}&lt;br /&gt;
| {{su|p=12|b=8|a=c|lh=0.8em}}&lt;br /&gt;
|-&lt;br /&gt;
| {{code|mSu._main(&amp;#039;top-line text&amp;#039;)|lua}}&lt;br /&gt;
| {{su|p=top-line text}}&lt;br /&gt;
|-&lt;br /&gt;
| {{code|mSu._main(nil, &amp;#039;bottom-line text&amp;#039;)|lua}}&lt;br /&gt;
| {{su|b=bottom-line text}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox||&lt;br /&gt;
&amp;lt;!-- Categories go here and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zeroclanzhang</name></author>
	</entry>
</feed>