Module:Portal/doc
This is the documentation page for Module:Portal
| This module is rated as ready for general use. It is considered stable and may be used wherever appropriate. Improvements should be developed and tested in a sandbox before changing the live module. |
| This module depends on the following other modules: |
This module implements {{Portal}} and provides other functionalities. See the template documentation for more usage info.
Portal images and aliases are defined in Module:Portal/images.
Portal image data
[edit source]Portal images[a] and aliases[b]. /images uses the following format:
return {
images = {
['portal name'] = 'icon.png|link=',
['another portal name'] = 'another icon.png|link=',
},
aliases = {
['alternate name'] = 'portal name',
['another alternate name'] = 'another portal name'
},
}
Image keys must be lowercase portal names. Image values contain the filename without the File: prefix and may include additional file arguments after the filename. The only recommended argument is link=.
Alias keys must be lowercase. Each alias value must correspond directly to a key in the images table. Aliases must not point to other aliases.
Aliases affect image lookup only. They do not change the generated portal link or redirect one portal name to another.
