Difference between revisions of "Template:ContentWarning"
Jump to navigation
Jump to search
(added option to choose own image in 40x40 size.) |
m |
||
| (4 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | < | + | <onlyinclude> |
| − | + | {| style="margin:auto; text-align:center; {{{style|background:#8d31b0; border-spacing: 20px 1px; border: 2px solid #8d31b0; border-radius: 2px}}}" | |
| − | | {{{Image| | + | | rowspan=2 | [[File:{{{Image|Ambox_important.png}}}|{{{imageSize|40}}}px]] |
| − | | style=" | + | | style="width: 1000px;" | {{{heading|}}} |
| − | |}</ | + | | rowspan=2 | [[File:{{{Image|Ambox_important.png}}}|{{{imageSize|40}}}px]] |
| + | |- | ||
| + | | {{{message|Your message here}}} | ||
| + | |} | ||
| + | </onlyinclude> | ||
| + | |||
| + | <noinclude> | ||
| + | == Usage == | ||
| + | <pre><nowiki> | ||
| + | {{ContentWarning | ||
| + | | Image = Image file name.png (optional) | ||
| + | | imageSize = Integer that sets the pixel size for the image. (optional) | ||
| + | | style = CSS styling for table body. (optional) | ||
| + | | heading = Top text. (optional) | ||
| + | | message = Bottom text. Type your message body here | ||
| + | }} | ||
| + | </nowiki></pre> | ||
| + | |||
| + | === Examples === | ||
| + | {{ContentWarning | ||
| + | | message = Hello World | ||
| + | }} | ||
| + | |||
| + | <!-- Do not actually make a warning banner that looks like this. It is just to show off all of the features at once. Or do it. I'm a comment, not a mod. --> | ||
| + | {{ContentWarning | ||
| + | | Image = Fen-imp.png | ||
| + | | imageSize = 200 | ||
| + | | style = background:#000000; color:white;font-size: 150%; | ||
| + | | heading = '''''Fenoxo-senpai''''' | ||
| + | | message = Please notice me | ||
| + | }} | ||
| + | </noinclude> | ||
Latest revision as of 19:48, 9 October 2017
| Your message here |
Usage
{{ContentWarning
| Image = Image file name.png (optional)
| imageSize = Integer that sets the pixel size for the image. (optional)
| style = CSS styling for table body. (optional)
| heading = Top text. (optional)
| message = Bottom text. Type your message body here
}}
Examples
| Hello World |
|
Fenoxo-senpai |
|
| Please notice me |
