Anonymous user
Template:Notice/doc: Difference between revisions
→Optional parameters: update
(→Optional parameters: ntoe) |
(→Optional parameters: update) |
||
Line 10:
===Optional parameters ===
The box can be titled with an optional {{para|heading}} (or {{para|header}} or {{para|title}}). This is
{{in5}}<code><nowiki>{{Notice |heading=Heading |Lorem ipsum dolor sit amet...}}</nowiki></code>
produces an all-left notice:
{{Notice|demospace=main |heading=Heading |style=margin-bottom:2.0em; |[[Lorem ipsum|Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.]]}}
It can be hard to notice
{{in5}}<code><nowiki>{{Notice |heading=Heading |
produces an all-
{{Notice|demospace=main |heading=Heading |style=margin-bottom:2.0em; |
The parameter {{para|
{{in5}}<code><nowiki>{{Notice |heading=Heading |
produces an all-centered notice:
{{Notice|demospace=main |heading=Heading |style=
Similarly, the parameter {{para|headstyle}} can be used to pass arbitrary inline CSS to the heading content. For example, one could center the just the heading above a left-aligned message; this:<br />
{{in5}}<code><nowiki>{{Notice |heading=Heading |headstyle=text-align:center; |Lorem ipsum dolor sit amet...}}</nowiki></code>
produces an all-centered notice:
{{Notice|demospace=main |heading=Heading |style=margin-bottom:2.0em; |headstyle=text-align:center;|[[Lorem ipsum|Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.]]}}
The message box can also take an {{para|image}} parameter (with a value of just the bare filename of the image, without <code>File:...</code>, <code>Image:...</code>, or markup), but this is discouraged in articles. For an example of its use, see below.
|