Template
Notice
From Dogcraft Wiki
No edit summary |
m (adding a "class" parameter) |
||
Line 1: | Line 1: | ||
<includeonly><div style="display:flex; margin:10px; float:left; border:1px solid {{{bordercolor|#d9d6d3}}}" class="notice phonefullscreen noexcerpt"><!-- | <includeonly><div style="display:flex; margin:10px; float:left; border:1px solid {{{bordercolor|#d9d6d3}}}" class="notice phonefullscreen noexcerpt {{{class|}}}"><!-- | ||
--><div style="display:flex; flex-direction:column; justify-content:center; padding:{{{customiconpadding|12px}}}; background-color:{{{iconbackcolor|#8b0024}}};"><!-- | --><div style="display:flex; flex-direction:column; justify-content:center; padding:{{{customiconpadding|12px}}}; background-color:{{{iconbackcolor|#8b0024}}};"><!-- | ||
---><i class="{{{icon|fas fa-edit}}}" style="color:white; font-size:160%"></i><!-- | ---><i class="{{{icon|fas fa-edit}}}" style="color:white; font-size:160%"></i><!-- | ||
Line 30: | Line 30: | ||
"params": { | "params": { | ||
"iconbackcolor": { | "iconbackcolor": { | ||
"label": "Icon | "label": "Icon color", | ||
"description": "Background color of the icon section of the notice", | "description": "Background color of the icon section of the notice", | ||
"type": "string" | |||
}, | |||
"class": { | |||
"label": "Class", | |||
"description": "Optional extra CSS classes for the notice", | |||
"type": "string" | "type": "string" | ||
}, | }, | ||
"customiconpadding": { | "customiconpadding": { | ||
"label": "Icon | "label": "Icon padding values", | ||
"description": "Custom padding values for the icon section of the notice", | "description": "Custom padding values for the icon section of the notice", | ||
"example": "10px 10px 10px 10px", | "example": "10px 10px 10px 10px", | ||
Line 48: | Line 53: | ||
}, | }, | ||
"contentbackcolor": { | "contentbackcolor": { | ||
"label": "Content | "label": "Content background color", | ||
"description": "Background color of the body of the notice.", | "description": "Background color of the body of the notice.", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"customcontentpadding": { | "customcontentpadding": { | ||
"label": "Content | "label": "Content padding values", | ||
"description": "Custom padding values for the body of the notice", | "description": "Custom padding values for the body of the notice", | ||
"example": "10px 10px 10px 10px", | "example": "10px 10px 10px 10px", | ||
Line 81: | Line 86: | ||
"contentbackcolor", | "contentbackcolor", | ||
"customiconpadding", | "customiconpadding", | ||
"customcontentpadding" | "customcontentpadding", | ||
"class" | |||
], | ], | ||
"description": "A template for leaving a notice banner on articles." | "description": "A template for leaving a notice banner on articles." |
Revision as of 18:46, 6 July 2022
{{Notice |title=Title of notice |message=Message Body |contentbackcolor= |iconbackcolor= |icon= |customiconpadding= |customcontentpadding= }}
Title of notice: Message Body
See Category:Notice templates for other templates based on this one.
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 |
This page was last modified on 6 July 2022, at 18:46. (11 months ago)