Module:Notice/doc: Difference between revisions

Gorasuhl (talk | contribs)
added support for background-color
Gorasuhl (talk | contribs)
m format
Line 27: Line 27:
| style="vertical-align:top" |<code>header</code>
| style="vertical-align:top" |<code>header</code>
| style="vertical-align:top" |Named, optional
| style="vertical-align:top" |Named, optional
| colspan="4" |The header text. e.g. <code>notice</code>. Defaults to nothing shown.
| colspan="4" |The header text. e.g. <code>Notice</code>. Defaults to nothing shown.
|-
|-
| style="vertical-align:top" |<code>content</code>
| style="vertical-align:top" |<code>content</code>
Line 42: Line 42:
{{notice|file=Beans.png|header=Under Construction|content=This article is under construction.}}
{{notice|file=Beans.png|header=Under Construction|content=This article is under construction.}}


<code><nowiki>{{notice|file=Beans.png|header=notice with header text only.}}</nowiki></code>
<code><nowiki>{{notice|file=Beans.png|header=Notice with header text only.}}</nowiki></code>
{{notice|file=Beans.png|header=notice with header text only.}}
{{notice|file=Beans.png|header=Notice with header text only.}}


<code><nowiki>{{notice|file=Beans.png|content=Small notice without a header.}}</nowiki></code>
<code><nowiki>{{notice|file=Beans.png|content=Small notice without a header.}}</nowiki></code>
Line 81: Line 81:
{{notice|file=Beans.png|header=Custom color notice|color=slateblue|text-align=center}}
{{notice|file=Beans.png|header=Custom color notice|color=slateblue|text-align=center}}


[[Category:notice templates]]
[[Category:Notice templates]]