打开/关闭菜单
4741
2301
13
7.5万
Trials in Tainted Space Bilingual Wiki
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

Template:ContentWarning:修订间差异

模板页面
src->NewseX
added examples to copy for lazy people.
src->Jacques00
无编辑摘要
 
(未显示1个用户的2个中间版本)
第1行: 第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:#8d31b0; border-spacing: 20px 1px; border: 2px solid #8d31b0; border-radius: 2px}}}"
| {{{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>
== Usage ==
== Usage ==
<code>
<pre><nowiki>
<nowiki>
{{ContentWarning
{{ContentWarning|Image=[[Image:Optional_image.png]]|heading='''"Optional heading."'''|message="Type your message body here"}}
| Image = Image file name.png (optional)
</nowiki>
| imageSize = Integer that sets the pixel size for the image.  (optional)
</code>
| style = CSS styling for table body. (optional)
| heading = Top text. (optional)
| message = Bottom text. Type your message body here
}}
</nowiki></pre>


=== Examples ===
=== Examples ===
{{ContentWarning|message=Hello World}}
{{ContentWarning
| message = Hello World
}}


{{ContentWarning|Image=[[Image:Fen-imp.png|100px]]|heading='''Fenoxo-senpai'''|message=Please notice me}}
<!-- 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>
</noinclude>

2017年10月10日 (二) 03:48的最新版本

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


目录