Module:Portal/doc
This is the documentation page for Module:Portal
| This module depends on the following other modules: |
Lua error: bad argument #1 to "get" (not a valid title).
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.
| This is a documentation subpage for Module:Portal. It contains usage information, categories and other content that is not part of the original module page. |
| Important note: This template should not be transcluded in pages on the Simple English Wikipedia. This is because the template is currently not supported. If you want to use this template, please do so on the English Wikipedia instead. If the error message in the template is no longer displayed, this may indicate that the template is supported and that you may use this template on this wiki. |
This template categorizes the page into Category:Pages with Portal templates.
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}}→ Lua error in package.lua at line 80: module 'Module:Portal/images/a' not found.
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.
Usage
{{#invoke:Portal|imageDupes}}
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. This function can be seen at Template:Portal/doc/all.
Usage
{{#invoke:Portal|displayAll}}