Шаблон:Class/пісочниця

Матеріал з Вікіпедії — вільної енциклопедії.
Перейти до навігації Перейти до пошуку
Помилка Lua у Модуль:Class у рядку 74: attempt to index field '?' (a nil value).
{{i}} Документація шаблону[перегляд] [редагувати] [історія] [очистити кеш]

This template is used to show WP1.0 assessment ratings on WikiProject banners and other places.

Usage[ред. код]

  • {{class|grade}}
    Where grade is the classification of the article.
  • {{class|grade|image=yes}}
    |image=yes Displays a small icon next to the grade description for all assessments (produced by {{class/icon}}).
    |image=no does not ever display icons.
    |image= (blank or undefined) displays icons for FA, FL, A and GA classes only.
  • {{class|grade|category=category}}
    Define an alternative category link.
  • {{class|grade|header=yes}}
    By default the {{class}} template generates a table cell using the <td>...</td> element. If the template is used in the header row of a sortable table, use |header=yes so that the cell is constructed using the <th>...</th> element. If used elsewhere than a header row, omit this parameter.

Examples[ред. код]

{{class/пісочниця|FA}}

Помилка Lua у Модуль:Class у рядку 74: attempt to index field '?' (a nil value).

{{class/пісочниця|FA|image=no}}

Помилка Lua у Модуль:Class у рядку 74: attempt to index field '?' (a nil value).

{{class/пісочниця|FA|category=biography articles}}

Помилка Lua у Модуль:Class у рядку 74: attempt to index field '?' (a nil value).

{{class/пісочниця|B}}

Помилка Lua у Модуль:Class у рядку 74: attempt to index field '?' (a nil value).

{{class/пісочниця|B|image=yes}}

Помилка Lua у Модуль:Class у рядку 74: attempt to index field '?' (a nil value).

{{class/пісочниця|B|category=mathematics articles}}

Помилка Lua у Модуль:Class у рядку 74: attempt to index field '?' (a nil value).

TemplateData[ред. код]

Це документація TemplateData для шаблону Class, яка використовується Візуальним редактором та іншими інструментами.

Параметри шаблону[Управління TemplateData]

ПараметрОписТипСтатус
Grade1

The classification of the article

Рядокобов'язковий
Imageimage

Set to 'yes' to display an icon; 'no' to not display an icon; or no value or blank to display an icon for FA, FL, A and GA classes only

Рядокнеобов'язковий
Categorycategory

An alternative category link

Рядокнеобов'язковий
Headerheader

Set to 'yes' if the template is used in the header row of a sortable table, so that the cell is constructed using a "th" element rather than a "td" element

Рядокнеобов'язковий