Template:Notice: Difference between revisions
SuperHamster (talk | contribs) (Updating color details) |
SuperHamster (talk | contribs) (Documenting gray) |
||
Line 10: | Line 10: | ||
| style="vertical-align:top" |<code>color</code> | | style="vertical-align:top" |<code>color</code> | ||
| style="vertical-align:top" |Named, optional | | style="vertical-align:top" |Named, optional | ||
| colspan="4" |The color preset for the border. Options are <code>green</code>, <code>blue</code>, <code>orange</code>, <code>yellow</code>, <code>pink</code>, and <code> | | colspan="4" |The color preset for the border. Options are <code>green</code>, <code>blue</code>, <code>orange</code>, <code>yellow</code>, <code>pink</code>, <code>maroon</code>, and <code>gray</code>. Defaults to <code>green</code>. | ||
|- | |- | ||
| style="vertical-align:top" |<code>text-align</code> | | style="vertical-align:top" |<code>text-align</code> | ||
Line 61: | Line 61: | ||
<code><nowiki>{{notice|file=Example.jpg|header=Maroon notice|color=maroon}}</nowiki></code> | <code><nowiki>{{notice|file=Example.jpg|header=Maroon notice|color=maroon}}</nowiki></code> | ||
{{notice|file=Example.jpg|header=Maroon notice|color=maroon}} | {{notice|file=Example.jpg|header=Maroon notice|color=maroon}} | ||
<code><nowiki>{{notice|file=Example.jpg|header=Gray notice|color=gray}}</nowiki></code> | |||
{{notice|file=Example.jpg|header=Gray notice|color=gray}} | |||
[[Category:Notice templates]] | [[Category:Notice templates]] | ||
</noinclude> | </noinclude> |
Revision as of 21:52, 14 May 2023
Usage
Use this template to create other Notice Templates.
Syntax: {{notice|align=|text-align=|border=|width=|file=|filesize=|header=|content=}}
color
|
Named, optional | The color preset for the border. Options are green , blue , orange , yellow , pink , maroon , and gray . Defaults to green .
| |||
text-align
|
Named, optional | The text-align attribute of the header and content text, e.g. center . Defaults to left .
| |||
file
|
Named, optional | The file to show on the left-hand section as a filename. e.g. Example.jpg . Defaults to nothing shown.
| |||
filesize
|
Named, optional | The file's size on the left-hand section. e.g. 30px . Defaults to 48px if a file was specified, otherwise none.
| |||
header
|
Named, optional | The header text. e.g. Notice . Defaults to nothing shown.
| |||
content
|
Named, optional | The content text. e.g. Test message . Defaults to nothing shown.
|
Examples
{{notice|file=Example.jpg|header=Under Construction|content=This article is under construction.}}
![](http://cdn.wikimg.net/en/splatoonwiki/images/thumb/a/a9/Example.jpg/48px-Example.jpg)
{{notice|file=Example.jpg|header=Notice with header text only.}}
![](http://cdn.wikimg.net/en/splatoonwiki/images/thumb/a/a9/Example.jpg/48px-Example.jpg)
{{notice|file=Example.jpg|content=Small notice without a header.}}
![](http://cdn.wikimg.net/en/splatoonwiki/images/thumb/a/a9/Example.jpg/48px-Example.jpg)
{{notice|file=Example.jpg|header=Green notice|color=green}}
![](http://cdn.wikimg.net/en/splatoonwiki/images/thumb/a/a9/Example.jpg/48px-Example.jpg)
{{notice|file=Example.jpg|header=Blue notice|color=blue}}
![](http://cdn.wikimg.net/en/splatoonwiki/images/thumb/a/a9/Example.jpg/48px-Example.jpg)
{{notice|file=Example.jpg|header=Orange notice|color=orange}}
![](http://cdn.wikimg.net/en/splatoonwiki/images/thumb/a/a9/Example.jpg/48px-Example.jpg)
{{notice|file=Example.jpg|header=Yellow notice|color=yeloow}}
![](http://cdn.wikimg.net/en/splatoonwiki/images/thumb/a/a9/Example.jpg/48px-Example.jpg)
{{notice|file=Example.jpg|header=Pink notice|color=pink}}
![](http://cdn.wikimg.net/en/splatoonwiki/images/thumb/a/a9/Example.jpg/48px-Example.jpg)
{{notice|file=Example.jpg|header=Maroon notice|color=maroon}}
![](http://cdn.wikimg.net/en/splatoonwiki/images/thumb/a/a9/Example.jpg/48px-Example.jpg)
{{notice|file=Example.jpg|header=Gray notice|color=gray}}
![](http://cdn.wikimg.net/en/splatoonwiki/images/thumb/a/a9/Example.jpg/48px-Example.jpg)