Template:BugGallery/doc/ru

Материал из Palia Wiki
Перейти к навигации Перейти к поиску
Это перевод страницы Template:BugGallery/doc, он готов на 100%.

Использование

Шаблон {{BugGallery/doc}} будет использоваться для раздела "Галерея" на каждой странице, посвящённой конкретному виду жуков.

Шаблон автоматически проверяет и подбирает три изображения для каждой страницы:

  • UntranslatedPagename.png (Иконка)
  • UntranslatedPagename Ingame.png (Жук в естественной среде обитания)
  • UntranslatedPagename SQ Ingame.png (Жук в террариуме)

Примечание: если файл не существует - будет отображена картинка-плейсхолдер со специальной битой ссылкой.

Синтаксис

{{BugGallery<!-- Разместите каждое изображение на новой строке, начиная с "|File:". Добавьте "|" и дополнительный текст, чтобы включить подпись к изображению. -->
|File: |
}}<!-- Конец галереи, НЕ УДАЛЯТЬ -->

Примеры

Пример оформления галереи (для жука "Firebreathing Dragonfly"):

Image Properties

Additional Image properties can be added to each image along with the Galleries description, however due to Template syntax additional care must be used to escape special characters (To prevent weird formatting problems).

  • Each image property following the Description should be separated by {{!}}, which will convert into a pipe character (|)
  • Typing an equal sign (=) will cause the attribute to be treated as a named template parameter. {{=}} should be used in it's place.

Added Alt Text

The alternative text can be overridden in situations where an image fails to load, or a user is making use of a screen reader to assist in reading the page.

{{BugGallery/doc
 |File:image1.png|Description 1{{!}}alt{{=}}Alternative image text
 |File:image2.png|Description 2{{!}}alt{{=}}More alternative text
}}

Added Page Link

Images by default will link to their image page, such as [[:File:image1.png]], this behavior can be overridden by providing a link= to another page.

{{BugGallery/doc
 |File:image1.png|Description 1{{!}}link{{=}}[[Some Other Page]]
 |File:image2.png|Description 2{{!}}link{{=}}[[Also Another Page]]
}}

Связано