Template

Notice

From Dogcraft Wiki

No edit summary
m (rewrote how notices work again, this time with a flexbox. hopefully for the last time in the near future)
Line 1: Line 1:
<includeonly><div style="display:flex; margin:10px; float:left; border:1px solid {{{bordercolor|#d9d6d3}}}" class="notice phonefullscreen noexcerpt"><!--
--><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><!--
--></div><!--
--><div style="flex-grow:1; background-color:{{{contentbackcolor|#E9EDEF}}}; display:flex; flex-direction:column; justify-content:center;"><div style="padding:{{{customcontentpadding|12px 14px}}};"><!--
      -->{{#if: {{{title|}}}|'''{{{title|}}}'''|}}{{#if: {{{message|}}}|<b>:</b>|}} {{{message|}}}<!--
--></div></div></div><!--
--><div style="clear: both;"></div></includeonly><noinclude>
<noinclude><pre>{{Notice
<noinclude><pre>{{Notice
|title=Title of notice
|title=Title of notice
Line 14: Line 23:
|icon=fas fa-edit
|icon=fas fa-edit
}}
}}
</noinclude><includeonly><div><div style="display:table; max-width:100%;" class="phonefullscreen noexcerpt"><div style="float: left; padding: 10px 10px">
<span style="background-color: {{{iconbackcolor|#8b0024}}}; display:table-cell; text-align:center; overflow:hidden; padding: {{{customiconpadding|14px 8px 6px 12px}}}; vertical-align:middle;">
<i class="{{{icon|fas fa-edit}}}" style="color:white; font-size:160%"></i>
</span><span style="background-color: {{{contentbackcolor|#E9EDEF}}}; display:table-cell; padding: {{{customcontentpadding|12px 14px 12px 14px}}}; overflow:hidden; max-width:100%">
{{#if: {{{title|}}}|'''{{{title|}}}'''|}}{{#if: {{{message|}}}|<b>:</b>|}} {{{message|}}}</span>
</div></div></div></includeonly><noinclude>


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 21:09, 31 May 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.

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
This page was last modified on 31 May 2022, at 21:09. (11 months ago)
Background SRN Opening by Montenator