Версия для слабовидящих

Шаблон:Banner/doc — различия между версиями

Материал из Ярославский педагогический университет
Перейти к: навигация, поиск
м (Защищена страница «Шаблон:Banner/doc» ([Редактирование=<protect-level-moderator>] (бессрочно) [Переименование=<protect-level-moderator>] (бессрочно)))
 
Строка 17: Строка 17:
 
</pre>
 
</pre>
  
Parameters:
+
Параметры:
 
+
* direction - определяет, выравнивание текста. Допустимые значения "left" или "right".
* direction - determines which side of the banner the text should be aligned. Valid values are "left" or "right".
+
* width - (необязательно) определяет ширину, переопределяет CSS свойство, если, например, баннер имеет длинное название. Пример: "45%".
* width - (optional) allows the CSS width property to be overridden if, for example, the banner has a long title. Sample values should be of the form "45%".
+
* title - Название страницы для баннера .
* title - Page title for the banner.
+
* section - Подраздел для баннера, как правило, "Destination of the Month", "Off the Beaten Path" or "Featured Travel Topic".
* section - Sub-section for the banner, usually "Destination of the Month", "Off the Beaten Path" or "Featured Travel Topic".
+
* section-link - Ссылка для подраздела, обычно "Previous Destinations of the month", "Previously Off the beaten path" or "Previous Featured travel topics".
* section-link - Link subject for the sub-section, usually "Previous Destinations of the month", "Previously Off the beaten path" or "Previous Featured travel topics".
+
* image - изображение баннера, без префикса Файл: Пример: "MohenjoDaroBanner1.jpg".
* image - The banner image, without the File: prefix.  Example: "MohenjoDaroBanner1.jpg".
+
* quote - 1-2 предложения текста баннера.
* quote - 1-2 sentences of text to appear below the banner sub-section.
+

Текущая версия на 14:20, 8 июня 2015


Documentation

This template is used to generate the banners used on the Main Page.

Usage

{{banner
|direction=left
|width=60%
|title=Uluru-Kata Tjuta National Park
|section=Destination of the Month
|section-link=Previous Destinations of the month
|image=UluruKataTjutaBanner3.jpg
|quote=Home of the awesome stone monolith formerly known as Ayers Rock, a key player in the Aboriginal creation myth and one of Australia's best-known national symbols.
}}

Параметры:

  • direction - определяет, выравнивание текста. Допустимые значения "left" или "right".
  • width - (необязательно) определяет ширину, переопределяет CSS свойство, если, например, баннер имеет длинное название. Пример: "45%".
  • title - Название страницы для баннера .
  • section - Подраздел для баннера, как правило, "Destination of the Month", "Off the Beaten Path" or "Featured Travel Topic".
  • section-link - Ссылка для подраздела, обычно "Previous Destinations of the month", "Previously Off the beaten path" or "Previous Featured travel topics".
  • image - изображение баннера, без префикса Файл: Пример: "MohenjoDaroBanner1.jpg".
  • quote - 1-2 предложения текста баннера.