Template:Page notice: Difference between revisions

From Fancade Wiki
mNo edit summary
m (Remove unnecessary margin)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div><table style="width: 80%; margin: auto; border-radius: 10px; box-shadow: 0px -6px #0004 inset; border: 2px solid {{{background|#808080}}}; {{#if: {{{foreground|}}} | background: {{{foreground|}}}; }}{{{style|}}}">
<div class="notice" style="border-color: {{{background|#808080}}}; {{#if: {{{foreground|}}} | background: {{{foreground|}}}; }}{{{style|}}}"><table style="width: 100%; border-collapse: collapse">
<tr>
<tr>
<td>
<td style="vertical-align: middle">
<div style="margin-left: 0.4em; margin-bottom: 0.4em; vertical-align: center; ">
{{#if: {{{title|}}} |
<div style="font-size: 150%; {{{titlestyle|}}}">'''{{{title|{{#PAGENAME}}}}}'''</div><div style="{{{descriptionstyle|}}}"> {{{description}}} </div>
<div style="font-size: 150%; {{{titlestyle|}}}">'''{{{title}}}'''</div>
</div>
}}</td>
</td>
{{#if: {{{image|}}} |
{{#if: {{{image|}}} |
<td style="width: 64px; height: 64px; overflow: hidden {{{imagestyle|}}}">
<td align="right">
<div style="overflow: hidden; max-width: 128px; {{{imagestyle|}}}">
{{{image|}}}
{{{image|}}}
</div>
</td>
</td>
}}
}}
</tr>
</tr>
</table></div></includeonly><noinclude>
<tr><td colspan=2>
</noinclude>
<div style="{{{descriptionstyle|}}}"> {{{description}}} </div>
</td></tr>
</table></div><noinclude>{{Documentation}}</noinclude>

Latest revision as of 07:27, 24 August 2025

{{{description}}}

Description

This is a generic template for page notices and warnings.

Example

{{Page notice
|title=This is an example title.
|description=This is an example description.
|image=[[File:Odd_Bot.png|64px]]
}}

yields:

This is an example title.

This is an example description.

Parameters

  • title: Title for the notice. Optional.
  • description: Notice contents.
  • image: Image that supplements the notice. The image should be a size less than 128px. Optional.
  • foreground: Valid CSS color within the notice.
  • background: Valid CSS color for the border of the notice.
  • titlestyle: Specific CSS styles for the title.
  • imagestyle: Specific CSS styles for the image box.
  • descriptionstyle: Specific CSS styles for the description box.