Template:Notice: Difference between revisions

From Inkipedia, the Splatoon wiki
mNo edit summary
Tag: Reverted
(shrunk the default notice somewhat, see ink pump)
Tag: Reverted
Line 1: Line 1:
{| align="{{{align|}}}" 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|40%}}}; {{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 3px; width:{{#if: {{{file|}}} | {{{filesize|48px}}} | 0%; display:none}};"|{{#if: {{{file|}}} | [[File:{{{file|}}}|{{{filesize|48px}}}|link=]]}}
|style="padding:8px 8px 0px 8px; text-align: {{{text-align|left}}};"|<span style="font-size: 12pt; font-weight: bold;">{{{header|}}}</span><br>
|style="padding:6px 6px 0px 6px; text-align: {{{text-align|left}}};"|<span style="font-size: 11pt; font-weight: bold;">{{{header|}}}</span><br>
<span style="font-size: 10pt;">{{{content|}}}</span>
<span style="font-size: 9pt;">{{{content|}}}</span>
|}<noinclude>
|}<noinclude>


Line 25: Line 25:
| style="vertical-align:top" |<code>width</code>
| style="vertical-align:top" |<code>width</code>
| style="vertical-align:top" |Named, optional
| style="vertical-align:top" |Named, optional
| colspan="4" |The width attribute of the notice, e.g. <code>30%</code>. Defaults to 60%.
| colspan="4" |The width attribute of the notice, e.g. <code>30%</code>. Defaults to 40%.
|-
|-
| style="vertical-align:top" |<code>file</code>
| style="vertical-align:top" |<code>file</code>
Line 33: Line 33:
| style="vertical-align:top" |<code>filesize</code>
| style="vertical-align:top" |<code>filesize</code>
| style="vertical-align:top" |Named, optional
| style="vertical-align:top" |Named, optional
| colspan="4" |The file's size on the left-hand section. e.g. <code>30px</code>. Defaults to 60px if a file was specified, otherwise none.
| colspan="4" |The file's size on the left-hand section. e.g. <code>30px</code>. Defaults to 48px if a file was specified, otherwise none.
|-
|-
| style="vertical-align:top" |<code>header</code>
| style="vertical-align:top" |<code>header</code>
Line 46: Line 46:


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


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

Revision as of 20:06, 26 September 2022


Usage

Use this template to create other Notice Templates.

Syntax: {{notice|align=|text-align=|border=|width=|file=|filesize=|header=|content=}}

align Named, optional The align attribute of the notice, e.g. center. Defaults to "" (unset)
text-align Named, optional The text-align attribute of the header and content text, e.g. center. Defaults to left.
border Named, optional The border attribute of the notice, e.g. border=rgb({{SiteColor|Splatoon}}). Defaults to rgb({{SiteColor|Generic}})
width Named, optional The width attribute of the notice, e.g. 30%. Defaults to 40%.
file Named, optional The file to show on the left-hand section as a filename. e.g. Example.jpg. Defaults to nothing shown.
filesize Named, optional The file's size on the left-hand section. e.g. 30px. Defaults to 48px if a file was specified, otherwise none.
header Named, optional The header text. e.g. Notice. Defaults to nothing shown.
content Named, optional The content text. e.g. Test message. Defaults to nothing shown.

Examples

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

Example.jpg Under Construction

This article is under construction.