Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:FeaturedTopicSum/doc
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== From Lua === First, load the module. <syntaxhighlight lang="lua"> local mFTS = require('Module:FeaturedTopicSum') </syntaxhighlight> Then, you can find the status of a topic with the <code>status</code> function. <syntaxhighlight lang="lua"> mFTS.status(topic) </syntaxhighlight> The <var>topic</var> parameter is the name of the topic (a string). For example, it would be "Norid" for [[Wikipedia:Featured topics/Norid]]. If the topic is featured, the function will return "FT", and if not, the function will return "GT". (Topics that aren't featured are assumed to be Good Topics.) It is also possible to use the <code>_main</code> function in the same manner as you would use [[Template:FeaturedTopicSum]]. However, this is not recommended, as using the <code>status</code> function with if .. then .. else .. end statements is usually more readable, and can be more efficient. <syntaxhighlight lang="lua"> mFTS._main(args) </syntaxhighlight> The <var>args</var> parameter is a table of arguments. Please consult the template page for documentation. <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | <!-- Categories below this line, please; interwikis at Wikidata --> }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)