<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Module%3ASu%2Fdoc</id>
	<title>Module:Su/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Module%3ASu%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Module:Su/doc&amp;action=history"/>
	<updated>2026-04-08T01:27:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Module:Su/doc&amp;diff=12852&amp;oldid=prev</id>
		<title>Caleb Cooper: Created page with &quot;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 direct...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Module:Su/doc&amp;diff=12852&amp;oldid=prev"/>
		<updated>2020-10-20T15:10:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;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 direct...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&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>Caleb Cooper</name></author>
	</entry>
</feed>