Template:Notice: Difference between revisions
From Inkipedia, the Splatoon wiki
(Added text-align; added documentation) Tag: Reverted |
mNo edit summary Tag: Reverted |
||
Line 21: | Line 21: | ||
| style="vertical-align:top" |<code>border</code> | | style="vertical-align:top" |<code>border</code> | ||
| style="vertical-align:top" |Named, optional | | style="vertical-align:top" |Named, optional | ||
| colspan="4" |The border attribute of the notice, e.g. <code>border=rgb({{SiteColor|Splatoon}})</code>. Defaults to <code>rgb({{ | | colspan="4" |The border attribute of the notice, e.g. <code>border=rgb(<nowiki>{{SiteColor|Splatoon}}</nowiki>)</code>. Defaults to <code>rgb(<nowiki>{{SiteColor|Generic}}</nowiki>)</code> | ||
|- | |- | ||
| style="vertical-align:top" |<code>width</code> | | style="vertical-align:top" |<code>width</code> |
Revision as of 00:09, 6 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 60%.
| |||
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 60px 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|filesize=60px|header=Under Construction|content=This article is under construction.}}
Under Construction This article is under construction. |