Template:Infobox: Difference between revisions
From BSC Policy
Jump to navigationJump to search
remove h2 tags so TOCs aren't auto-inserted |
m change triple curly braces to double |
||
| Line 6: | Line 6: | ||
<noinclude> | <noinclude> | ||
This is the same as [https://en.wikipedia.org/wiki/Template:Message_box Wikipedia's Message box] except that we can't handle optional parameters, so all are required | This is the same as [https://en.wikipedia.org/wiki/Template:Message_box Wikipedia's Message box] except that we can't handle optional parameters, so all are required | ||
==Usage== | ==Usage== | ||
<pre> | <pre>{{Infobox | ||
|type = | |type = | ||
|heading = | |heading = | ||
|body = | |body = | ||
}} | |||
</pre> | </pre> | ||
Where <code>type</code> is one of <code>warning</code>, <code>message</code>, <code>success</code>, <code>error</code> (since these correspond to css classes we already have). | Where <code>type</code> is one of <code>warning</code>, <code>message</code>, <code>success</code>, <code>error</code> (since these correspond to css classes we already have). | ||
Latest revision as of 13:02, 28 July 2021
This is the same as Wikipedia's Message box except that we can't handle optional parameters, so all are required
Usage
{{Infobox
|type =
|heading =
|body =
}}
Where type is one of warning, message, success, error (since these correspond to css classes we already have).
Examples
{{{Infobox
|type = warning
|heading = Warning
|body = body text here
}}}