Template
Notice
From Dogcraft Wiki
(documentation) |
mNo edit summary |
||
Line 10: | Line 10: | ||
==Notice template== | ==Notice template== | ||
This is a template for creating a general notice banner on pages. Useful for communicating some extra information the reader should be aware of. | This is a template for creating a general notice banner on pages. Useful for communicating some extra information the reader should be aware of. | ||
Use [https://fontawesome.com/v6/icons https://fontawesome.com/v6/icons] for picking icons, or set an image as one. | |||
See [[:Category:Notice templates]] for other templates based on this one. | See [[:Category:Notice templates]] for other templates based on this one. |
Revision as of 01:24, 29 July 2022
Notice template
This is a template for creating a general notice banner on pages. Useful for communicating some extra information the reader should be aware of.
Use https://fontawesome.com/v6/icons for picking icons, or set an image as one.
See Category:Notice templates for other templates based on this one.
Example(s)
{{Notice |title=Title of notice |message=Message Body |contentbackcolor= |iconbackcolor= |icon= |customiconpadding= |customcontentpadding= }}
generates:
Template data
A template for leaving a notice banner on articles.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title | Title of the notice | String | suggested |
Message | message content | The message body of the notice | String | required |
Icon | icon | FontAwesome icon to display on the notice
| String | optional |
Icon color | iconbackcolor | Background color of the icon section of the notice | String | optional |
Content background color | contentbackcolor | Background color of the body of the notice. | String | optional |
Icon padding values | customiconpadding | Custom padding values for the icon section of the notice
| String | optional |
Content padding values | customcontentpadding | Custom padding values for the body of the notice
| String | optional |
Class | class | Optional extra CSS classes for the notice | String | optional |
Image | image | Optional free-form image input in place of the icon, for use in license templates. | String | optional |
Border color | bordercolor | no description
| String | optional |
Icon color | iconcolor | no description
| String | optional |
License information | license | Machine readable license information (hidden from viewer) | String | optional |
clear | clear | no description
| String | optional |