Шаблон:Related portals2

Матеріал з Вікіпедії — вільної енциклопедії.
Перейти до навігації Перейти до пошуку
{{i}} Документація шаблону[перегляд] [редагувати] [історія] [очистити кеш]

Призначення[ред. код]

This is a helper template used to simplify the coding of the {{Пов'язані портали}} template. It is unlikely to be of any use elsewhere.

Because the unnamed parameters of {{Пов'язані портали}} are passed down here as named parameters, any leading and trailing white space is automatically stripped.

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

  • first - Pass "1" when creating the first (leftmost) portal link, blank otherwise.
  • call - Pass "1" to output the portal image, "2" to output the text label underneath.
  • portalcount - The number of portals in the line of links; used to set the cell width.
  • image - The name of an image file; if blank then a default image will be used instead.
  • size - The image size; defaults to 60x60px which seems about right.
  • portalname - The name of the portal page to be linked to. Do not pass the "Portal:" prefix.

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

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

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

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

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

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

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