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:

Title of notice: Message Body

Template data

A template for leaving a notice banner on articles.

Template parameters

ParameterDescriptionTypeStatus
Titletitle

Title of the notice

Stringsuggested
Messagemessage content

The message body of the notice

Stringrequired
Iconicon

FontAwesome icon to display on the notice

Example
fas fa-edit
Auto value
fas fa-edit
Stringoptional
Icon coloriconbackcolor

Background color of the icon section of the notice

Stringoptional
Content background colorcontentbackcolor

Background color of the body of the notice.

Stringoptional
Icon padding valuescustomiconpadding

Custom padding values for the icon section of the notice

Example
10px 10px 10px 10px
Stringoptional
Content padding valuescustomcontentpadding

Custom padding values for the body of the notice

Example
10px 10px 10px 10px
Stringoptional
Classclass

Optional extra CSS classes for the notice

Stringoptional
Imageimage

Optional free-form image input in place of the icon, for use in license templates.

Stringoptional
Border colorbordercolor

no description

Default
#d9d6d3
Stringoptional
Icon coloriconcolor

no description

Default
white
Stringoptional
License informationlicense

Machine readable license information (hidden from viewer)

Stringoptional
clearclear

no description

Default
left
Example
left, right, both
Stringoptional
This page was last modified on 29 July 2022, at 01:24. (11 months ago)