Difference between revisions of "Template:ContentWarning"

From Trials in Tainted Space Wiki
Jump to navigation Jump to search
m (formatting)
(Whoops. I put more effort into this than it deserved, but it sure is fancy looking now!)
Line 1: Line 1:
<div class="noprint" style="float:none; border:1px solid blue;background-color:#F5F5F5;padding:2px;">
+
<onlyinclude>
{| cellspacing="0"
+
{| style="margin:auto; text-align:center; {{{style|background:#F5F5F5; border-spacing: 20px 1px; border: 2px solid purple}}}"
| {{{Image|[[Image:Ambox important.png|none|40px|Warning]]}}}
+
| rowspan=2 | [[File:{{{Image|Ambox_important.png}}}|{{{imageSize|40}}}px]]
| style="padding-left:5px;"| {{{heading|'''OwO What's This?'''}}}<br>{{{message|Your message here}}}
+
| style="width: 1000px;" | {{{heading|}}}
|}</div>
+
|  rowspan=2 | [[File:{{{Image|Ambox_important.png}}}|{{{imageSize|40}}}px]]
 +
|-
 +
| {{{message|Your message here}}}
 +
|}
 +
</onlyinclude>
  
 
<noinclude>
 
<noinclude>
Line 9: Line 13:
 
<pre><nowiki>
 
<pre><nowiki>
 
{{ContentWarning
 
{{ContentWarning
| Image=[[Image:Optional_image.png]]
+
| Image = Image file name.png (optional)
| heading='''Optional heading.'''
+
| imageSize = Integer that sets the pixel size for the image.  (optional)
| message=Type your message body here
+
| style = CSS styling for table body. (optional)
 +
| heading = Top text. (optional)
 +
| message = Bottom text. Type your message body here
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
Line 17: Line 23:
 
=== Examples ===
 
=== Examples ===
 
{{ContentWarning
 
{{ContentWarning
| message=Hello World
+
| 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
 
{{ContentWarning
| Image=[[Image:Fen-imp.png|100px]]
+
| Image = Fen-imp.png
| heading='''''Fenoxo-senpai'''''
+
| imageSize = 200
| message=Please notice me
+
| style = background:#000000; color:white;font-size: 150%;
 +
| heading = '''''Fenoxo-senpai'''''
 +
| message = Please notice me
 
}}
 
}}
 
</noinclude>
 
</noinclude>

Revision as of 00:58, 10 September 2017

Ambox important.png Ambox important.png
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

Ambox important.png Ambox important.png
Hello World


Fen-imp.png Fenoxo-senpai Fen-imp.png
Please notice me