Template

Notice

From Dogcraft Wiki

Revision as of 00:31, 12 July 2022 by Domino (talk | contribs) (documentation)


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.

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 12 July 2022, at 00:31. (11 months ago)
Background Valentine's Day Event 2024 by TheWhiteTigerNL