Template:Notice: Difference between revisions

From Inkipedia, the Splatoon wiki
(Re-defining width as file size)
(Adding optional width parameter)
Line 1: Line 1:
{| align="center" cellpadding="1px" style="background:#FFFFFF; border: 3px solid #A9DE00; width:60%; {{roundy}}"
{| align="center" cellpadding="1px" style="background:#FFFFFF; border: 3px solid #A9DE00; width:{{{width|60%}}}; {{roundy}}"
|style="padding:0px 0px 0px 5px; width:{{{filesize|}}};"|[[File:{{{file|}}}|{{{filesize|}}}|link=]]
|style="padding:0px 0px 0px 5px; width:{{{filesize|}}};"|[[File:{{{file|}}}|{{{filesize|}}}|link=]]
|style="padding:8px 0px 0px 8px;"|<span style="font-size: 12pt;">'''{{{header|}}}'''</span><br>
|style="padding:8px 0px 0px 8px;"|<span style="font-size: 12pt;">'''{{{header|}}}'''</span><br>
Line 6: Line 6:


== Usage ==
== Usage ==
'''Syntax''': <code><nowiki>{{notice|file=|filesize=|header=|content=}}</nowiki></code>
'''Syntax''': <code><nowiki>{{notice|width=|file=|filesize=|header=|content=}}</nowiki></code>


'''Example''': <code><nowiki>{{notice|file=Example.jpg|filesize=60px|header=Under Construction|content=This article is under construction.}}</nowiki></code>
'''Example''': <code><nowiki>{{notice|file=Example.jpg|filesize=60px|header=Under Construction|content=This article is under construction.}}</nowiki></code>


Use this template to create other [[:Category:Notice Templates|Notice Templates]].
Use this template to create other [[:Category:Notice Templates|Notice Templates]].
'''width''' is an optional parameter that defines the width of the notice box. Defaults to 60%.


[[Category:Notice Templates]]
[[Category:Notice Templates]]
</noinclude>
</noinclude>

Revision as of 21:55, 25 December 2015

[[File: link=]] '

Usage

Syntax: {{notice|width=|file=|filesize=|header=|content=}}

Example: {{notice|file=Example.jpg|filesize=60px|header=Under Construction|content=This article is under construction.}}

Use this template to create other Notice Templates.

width is an optional parameter that defines the width of the notice box. Defaults to 60%.