Modul:Portal/doc
Kaca ieu téh dokuméntasi ti kaca Modul:Portal.
| Modul Lua ini digunakan pada 8.930.000+ halaman, atau sekira 8951% dari keseluruhan halaman. Untuk mencegah suntingan mengganggu skala besar dan beban peladen, setiap perubahan harus diuji di subhalaman /bak pasir atau /kasus uji Modul:Portal, atau bak pasir modul Anda. Perubahan yang telah diuji kemudian dapat ditambahkan ke halaman ini dalam satu suntingan. Pertimbangkan untuk mendiskusikan perubahan di halaman pembicaraan sebelum mengimplementasikannya. |
| 40x40px|link=|alt=Diproteksi | Modul ini dilindungi. Modul ini sangat mencolok yang digunakan oleh banyak halaman, atau sangat sering disubstitusikan. Karena vandalisme atau kesalahan akan mempengaruhi banyak halaman, dan suntingan kecil dapat memberi beban besar pada server, modul ini dilindungi dari penyuntingan. |
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
[édit sumber]The portal function produces a box of portal links.
Cara make
[édit sumber]This template is used to link an article to its related portal.
- Optional parameters
{{Portal|name|image|size|boxsize|break=yes}}
Lokasi
[édit sumber]This template is meant to be placed at the bottom of the article in the "See also" section.
Image function
[édit sumber]The image function produces the name of the image used by the specified portal.
Usage
[édit sumber]{{#invoke:Portal|image|portal}}
Example
[édit sumber]{{#invoke:Portal|image|Art}}→ Ballerina-icon.jpg
Image dupes function
[édit sumber]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
[édit sumber]{{#invoke:Portal|imageDupes}}
Display all function
[édit sumber]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
[édit sumber]{{#invoke:Portal|displayAll}}