Modul:Portal/dok
![]() | To je dokumentacijska podstran za glavno stran Modul:Portal. Namenjena je shranjevanju navodil, kategorizaciji in drugi vsebini, ki ni del glavne strani. |
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.
The bot Dreamy Jazz Bot relies on the structure of this module to determine portals without images, so changes to the way the module stores images will affect the bot. A list of portals without icons can be found in the bot's userspace.
Portal function
urediThe portal function produces a box of portal links.
To je dokumentacijska podstran za glavno stran Modul:Portal. Namenjena je shranjevanju navodil, kategorizaciji in drugi vsebini, ki ni del glavne strani. |
Uporaba
urediPredloga poveže članek ali kategorijo z njej sorodnim portalom.
- Neobvezni parametri
{{Portal|name|image|size|boxsize|break=yes|left=yes}}
Položaj
urediPredloga spada na dno člankov (v razdelek »Glej tudi«, če obstaja).
Image function
urediThe image function produces the name of the image used by the specified portal.
Usage
uredi{{#invoke:Portal|image|portal}}
Example
uredi{{#invoke:Portal|image|Art}}
→ Portal-puzzle.svg
Image dupes function
urediThe 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
uredi{{#invoke:Portal|imageDupes}}
Display all function
urediThe 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/dok/all.
Usage
uredi{{#invoke:Portal|displayAll}}