模組:Portal/doc
这是Module:Portal的文档页面
此模块的文档不存在、不全面或不能详细描述其功能及/或其代码中的参数。请帮助扩充并改进其文档。 |
This module has two functions, portal
and image
. The portal
produces a box with links to a portal or to multiple portals, and is used by the {{portal}} template. It is most often used in the "See also" section of an article. The image
function produces the name of the image used by the specified portal.
Portal function
[编辑]The portal function produces a box of portal links.
Image function
[编辑]The image function produces the name of the image used by the specified portal.
Usage
[编辑]{{#invoke:Portal|image|portal}}
Example
[编辑]{{#invoke:Portal|image|Art}}
Image dupes function
[编辑]The image dupes function returns a list of all images that are being used by more than one portal (aliases are not included). This can be helpful in identifying image entries that should be changed to use aliases. 配图:Module:Portal/images
Display all function
[编辑]The display all function returns a box containing all portals that have images. This is used for maintenance, and should not be displayed in articles, because a) there are around 1500 portals with images, and displaying 1500 images on one page takes up a lot of server resources, and b) the module has no way to know the correct capitalisation of a portal name, so some links to portals will be broken.
Usage
[编辑]{{#invoke:Portal|displayAll}}