<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3AFeaturedTopicSum%2Fdoc</id>
	<title>Module:FeaturedTopicSum/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3AFeaturedTopicSum%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:FeaturedTopicSum/doc&amp;action=history"/>
	<updated>2026-04-22T17:58:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Module:FeaturedTopicSum/doc&amp;diff=23101614&amp;oldid=prev</id>
		<title>imported&gt;Warudo: Added the page to :Category:Module documentation pages</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:FeaturedTopicSum/doc&amp;diff=23101614&amp;oldid=prev"/>
		<updated>2024-08-29T21:19:08Z</updated>

		<summary type="html">&lt;p&gt;Added the page to &lt;a href=&quot;/index.php/Category:Module_documentation_pages&quot; title=&quot;Category:Module documentation pages&quot;&gt;Category:Module documentation pages&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Lua|Module:Arguments}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Module:FeaturedTopicSum&amp;#039;&amp;#039;&amp;#039; is used to find out whether a topic is [[WP:GT|good]] or [[WP:FT|featured]].&lt;br /&gt;
&lt;br /&gt;
Each call to a new topic, using any of the functions in this module, will use three [[Wikipedia:Template limits#Expensive parser function calls|expensive parser function calls]]. This means that only 133 different topics can be listed on a page before the page goes over the limit of 500 expensive parser function calls per page (not counting other expensive function calls that might be used).&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
=== From wikitext ===&lt;br /&gt;
&lt;br /&gt;
From wikitext this module should be used via [[Template:FeaturedTopicSum]]. Please see the template page for documentation.&lt;br /&gt;
&lt;br /&gt;
=== From Lua ===&lt;br /&gt;
&lt;br /&gt;
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 mFTS = require(&amp;#039;Module:FeaturedTopicSum&amp;#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, you can find the status of a topic with the &amp;lt;code&amp;gt;status&amp;lt;/code&amp;gt; function.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mFTS.status(topic)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;var&amp;gt;topic&amp;lt;/var&amp;gt; parameter is the name of the topic (a string). For example, it would be &amp;quot;Norid&amp;quot; for [[Wikipedia:Featured topics/Norid]]. If the topic is featured, the function will return &amp;quot;FT&amp;quot;, and if not, the function will return &amp;quot;GT&amp;quot;. (Topics that aren&amp;#039;t featured are assumed to be Good Topics.)&lt;br /&gt;
&lt;br /&gt;
It is also possible to use the &amp;lt;code&amp;gt;_main&amp;lt;/code&amp;gt; function in the same manner as you would use [[Template:FeaturedTopicSum]]. However, this is not recommended, as using the &amp;lt;code&amp;gt;status&amp;lt;/code&amp;gt; function with if .. then .. else .. end statements is usually more readable, and can be more efficient.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
mFTS._main(args)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;var&amp;gt;args&amp;lt;/var&amp;gt; parameter is a table of arguments. Please consult the template page for documentation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox | |&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Module documentation pages]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Warudo</name></author>
	</entry>
</feed>