Template:SiteNotice: Difference between revisions

From Inkipedia, the Splatoon wiki
(Copied from old revision of Template:Notice due to MediaWiki:Sitenotice not displaying the revised template properly; all styling was missing, so MediaWiki:Sitenotice is probably not compatible with TemplateStyles.)
 
m (Updating examples)
Line 46: Line 46:
=== Examples ===
=== Examples ===
<code><nowiki>{{SiteNotice|file=Example.jpg|header=Under Construction|content=This article is under construction.}}</nowiki></code>
<code><nowiki>{{SiteNotice|file=Example.jpg|header=Under Construction|content=This article is under construction.}}</nowiki></code>
{{notice|file=Example.jpg|header=Under Construction|content=This article is under construction.}}
{{SiteNotice|file=Example.jpg|header=Under Construction|content=This article is under construction.}}


<code><nowiki>{{SiteNotice|file=Example.jpg|header=Notice with header text only.}}</nowiki></code>
<code><nowiki>{{SiteNotice|file=Example.jpg|header=Notice with header text only.}}</nowiki></code>
{{notice|file=Example.jpg|header=Notice with header text only.}}
{{SiteNotice|file=Example.jpg|header=Notice with header text only.}}


<code><nowiki>{{SiteNotice|file=Example.jpg|content=Small notice without a header.}}</nowiki></code>
<code><nowiki>{{SiteNotice|file=Example.jpg|content=Small notice without a header.}}</nowiki></code>
{{notice|file=Example.jpg|content=Small notice without a header.}}
{{SiteNotice|file=Example.jpg|content=Small notice without a header.}}


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

Revision as of 22:27, 14 May 2023

Use this template to create notices on MediaWiki:Sitenotice. For non-sitenotice usage, please use Template:Notice or other notice templates instead.

Usage

Syntax: {{SiteNotice|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 unset (fit to contents).
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

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

Example.jpg Under Construction

This article is under construction.

{{SiteNotice|file=Example.jpg|header=Notice with header text only.}}

Example.jpg Notice with header text only.

{{SiteNotice|file=Example.jpg|content=Small notice without a header.}}

Example.jpg

Small notice without a header.