Template:Page notice: Difference between revisions
-u ndefined- (talk | contribs) m (Migrate to Template:Documentation + display template in this page) |
(Changed the image to only occupy space to the right of the title, not affecting description width) |
||
Line 4: | Line 4: | ||
{{#if: {{{title|}}} | | {{#if: {{{title|}}} | | ||
<div style="font-size: 150%; {{{titlestyle|}}}; margin-bottom: 0.2em">'''{{{title}}}'''</div> | <div style="font-size: 150%; {{{titlestyle|}}}; margin-bottom: 0.2em">'''{{{title}}}'''</div> | ||
}} | }}</td> | ||
</td> | |||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
<td align="right"> | <td align="right"> | ||
Line 14: | Line 13: | ||
}} | }} | ||
</tr> | </tr> | ||
<tr><td colspan=2> | |||
<div style="{{{descriptionstyle|}}}"> {{{description}}} </div> | |||
</td></tr> | |||
</table></div><noinclude>{{Documentation}}</noinclude> | </table></div><noinclude>{{Documentation}}</noinclude> |
Revision as of 14:05, 23 August 2025
{{{description}}}
|
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
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.