请输入您要查询的百科知识:

 

词条 Module:FeaturedTopicSum/doc
释义

  1. Usage

      From wikitext    From Lua  

This module is used to find out whether a topic is good or featured.

Each call to a new topic, using any of the functions in this module, will use three 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).

Usage

From wikitext

From wikitext this module should be used via FeaturedTopicSum. Please see the template page for documentation.

From Lua

First, load the module.

local mFTS = require('Module:FeaturedTopicSum')

Then, you can find the status of a topic with the status function.

mFTS.status(topic)

The topic parameter is the name of the topic (a string). For example, it would be "Norid" for 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 _main function in the same manner as you would use FeaturedTopicSum. However, this is not recommended, as using the status function with if .. then .. else .. end statements is usually more readable, and can be more efficient.

mFTS._main(args)

The args parameter is a table of arguments. Please consult the template page for documentation.

{{#ifeq:{{SUBPAGENAME}}|sandbox | |

}}

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/11 10:53:38