Template:Notice: Difference between revisions

From Inkipedia, the Splatoon wiki
m (Preventing an apostrophe from appearing when a header is not specified)
(Added 'align' parameter. Notices will align to the left by default.)
Line 1: Line 1:
{| align="center" cellpadding="1px" style="border: 3px solid {{{border|rgb({{Sitecolor|Generic}})}}}; width:{{{width|60%}}}; {{roundy}}"
{| align="{{{align|}}}" cellpadding="1px" style="border: 3px solid {{{border|rgb({{Sitecolor|Generic}})}}}; width:{{{width|60%}}}; {{roundy}}"
|style="padding:0px 0px 0px 5px; width:{{#if: {{{file|}}} | {{{filesize|60px}}} | 0%; display:none}};"|{{#if: {{{file|}}} | [[File:{{{file|}}}|{{{filesize|60px}}}|link=]]}}
|style="padding:0px 0px 0px 5px; width:{{#if: {{{file|}}} | {{{filesize|60px}}} | 0%; display:none}};"|{{#if: {{{file|}}} | [[File:{{{file|}}}|{{{filesize|60px}}}|link=]]}}
|style="padding:8px 8px 0px 8px;"|<span style="font-size: 12pt; font-weight: bold;">{{{header|}}}</span><br>
|style="padding:8px 8px 0px 8px;"|<span style="font-size: 12pt; font-weight: bold;">{{{header|}}}</span><br>
Line 6: Line 6:


== Usage ==
== Usage ==
'''Syntax''': <code><nowiki>{{notice|border=|width=|file=|filesize=|header=|content=}}</nowiki></code>
'''Syntax''': <code><nowiki>{{notice|align=|border=|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>

Revision as of 05:54, 24 February 2021


Usage

Syntax: {{notice|align=|border=|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%.