Шаблон:Пов'язані портали

{{i}} Документація шаблону[перегляд] [редагувати] [історія] [очистити кеш]

Призначення ред.

This template simplifies the creation and maintenance of the "Related portals" box within portal pages. It creates a line of 1 to 10 clickable links to related portals.

Consider using the template {{Related portals2}} instead; this is easier to use, and creates a "Related portals" section that scales itself neatly to the available screen space, even on mobile devices.

Використання ред.

  • portalcount - Required; the number of portal links in the line. The template supports up to 10, but this will be too many for users with a narrow monitor.
  • size - Optional; the size of each portal image. This defaults to 60x60px which seems about right.
  • These must be followed by pairs of unnamed parameters:
    • An image name, with no "File:" or "Image:" prefix. Optional; if blank then a default image will be used.
    • The name of the portal to be linked to, with no "Portal:" prefix.

If the portal name is too long to display neatly, then consider creating a перенаправлення from a shorter name to the portal page, and using that shorter name in the list passed to this template.

Приклад ред.

{{Пов'язані портали|portalcount=5
| Nuvola apps emacs vector.svg                     | Вільне програмне забезпечення
| Monitor padlock.svg                       | Комп'ютерна безпека
| Circle of spam.svg                        | Інформатика
| Emoji u1f4bb.svg              | Інформаційні технології
| 8bit-dynamiclist.gif                      | Програмування
}}

Зображення за замовчуванням ред.

The default portal image name is found using Модуль:Portal. Please see Модуль:Portal#Image for instructions on how to add, update, or remove a default image.

Див. також ред.

Список шаблонів для порталу

  • Щоб відобразити «вибраний вміст» на головній сторінці порталу
  • Для організації «вибраного вмісту» на підсторінках
    • {{Numbered subpages}} — виводить автоматичний індекс, перераховуючи нумеровані підсторінки.
    • {{Portal subpage}} — виводить блок, що зв'язує та завершує одну підсторінку.
    • {{Portal subpage inline}} — виводить елемент неупорядкованого списку, який зв'язує та завершує одну підсторінку.

Шаблони форматування головної сторінки порталу

Шаблони, які налаштовують посилання

Вибрані шаблони сторінок, що використовуються на підсторінках старих порталів

Суміжні шаблони