Аматериал Авикипедиа а?ынт? - зхы иа??и?у аенциклопедиа
{{{1}}}
| Ари ашаблон
Lua
апрограмма?а?арат? бызш?а ахарх?ара а?ат?уп:
|
This meta template returns a
state of error
(recognized as such by a wiki
parser function
), and optionally an
error-message text
in red (visible for the user). It is used by other templates to signal an error, for example invalid input, which can then either be displayed to the editor or caught and handled by other templates.
{{
агха
|An exemplary error}}
→
An exemplary error
{{
агха
|message=An exemplary error}}
→
An exemplary error
- Compare, used in a Parser Function:
{{#expr:Foo}}
→
Ошибка выражения: неопознанное слово ≪foo≫
{{#iferror:{{error|Foo}} | {{y}} | {{n}} }}
→
Y
The tag to contain the error message can be given through the
tag
parameter, but it will only accept
span
,
div
,
p
, and
strong
, since those are the only tags recognized by the
Ашаблон:Pf
parser function. It defaults to
strong
, the tag generated e.g. by
Ашаблон:Pf
. To prevent
strong
message, use one of the other tags, e.g.
tag=span
.
Параметры шаблона
[
Править данные шаблона
]
Параметр
| Описание
| Тип
| Статус
|
---|
Message
| 1
| Error message text in red
| Строковый (без форматирования)
| предложенный
|
---|
Tag
| tag
| The tag to contain the error message; will only accept span, div, p, and strong, since those are the only tags recognized by the #iferror parser function. It defaults to strong, the tag generated e.g. by #expre
- По умолчанию
- strong
| Строковый (без форматирования)
| необязательный
|
---|
Ашаблон??а:Авикипедиа мета-шаблон??а