Difference between revisions of "Template:Notice/Documentation"

From War Thunder Wiki
Jump to: navigation, search
(Created page with "== Description == The Notice template is used to add different kinds of caution notices to articles. This template is similar in use to the Badge template, except the former h...")
 
(Added templateData)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 +
{{docpage}}
 +
 
== Description ==
 
== Description ==
 
The Notice template is used to add different kinds of caution notices to articles. This template is similar in use to the Badge template, except the former has a simpler design and is easier to implement.
 
The Notice template is used to add different kinds of caution notices to articles. This template is similar in use to the Badge template, except the former has a simpler design and is easier to implement.
Line 52: Line 54:
 
  |+
 
  |+
 
}}</nowiki>
 
}}</nowiki>
 +
 +
<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"label": "Text",
 +
"description": "Text",
 +
"type": "string",
 +
"required": true
 +
}
 +
},
 +
"description": "This template is used to add a highlighted notice to articles."
 +
}
 +
</templatedata>

Latest revision as of 10:26, 21 December 2021

Description

The Notice template is used to add different kinds of caution notices to articles. This template is similar in use to the Badge template, except the former has a simpler design and is easier to implement.

Use

{{Notice
 |Text
 |Message type
 |Category
}}

Parameters

  • Text — is used for the message text.
  • Message type (optional parameter) — sets the required message type (use “+” for a green block, use “!” for a yellow warning block, use “!!” for a red warning block, use “i” for a blue information block). The information block is set as default.
  • Category (optional parameter) — sets the category without the “Category:” prefix (not set by default). It is advisable not to include the category within the template itself.

Examples of use

Msg-info.png This template was created using a special kind of magic.
{{Notice
 |This template was created using a special kind of magic.
}}
Msg-important.png Stop! Please leave this article alone. We’ve just fixed it after a long war against the trolls!
{{Notice
 |Stop! Please leave this article alone. We’ve just fixed it after a long war against the trolls!
 |!
}}
Msg-warning.png Watch out! The article is under attack by ze Germans!
{{Notice
 |Watch out! The article is under attack by ze Germans!
 |!!
}}
Msg-ok.png Everything’s okay, just keep scrolling
{{Notice
 |Everything’s okay, just keep scrolling
 |+
}}

This template is used to add a highlighted notice to articles.

Template parameters

ParameterDescriptionTypeStatus
Text1

Text

Default
empty
Example
empty
Auto value
empty
Stringrequired