Template:Notice
Template documentationedit documentation
Use this meta template to build standardized and mobile-friendly notices.
Usage
Basic
The following wikitext:
{{Notice|Text of the notice.}}
will produce:
While the following:
{{Notice|Title of the notice.|Text of the notice.}}
will produce:
Full
The following wikitext:
{{Notice
| border-color = #aaf
| image = Closed Book Icon.svg
| image-size = 80px
| image-link = Appropedia:Books
| image-alt = Appropedia book
| logo = Appropedia.png
| logo-size = 80px
| logo-link = Welcome to Appropedia
| logo-alt = Appropedia logo
| title = Title of the notice.
| text = Text of the notice.
| foot = Foot of the notice.
}}
will produce:
See also
Template data
<templatedata> { "params": { "image": { "label": "Image", "example": "Appropedia.png", "type": "wiki-file-name", "description": "Main image of the notice", "default": "Commons-emblem-notice.svg" }, "foot": { "label": "Foot", "description": "Small text at the bottom of the notice.", "example": "Remove this notice after references have been added.", "type": "string" }, "image-size": { "label": "Image size", "description": "Size of the image", "example": "80px", "type": "string", "default": "x40px" }, "image-link": { "label": "Image link", "description": "Page to link from the image", "example": "Welcome to Appropedia", "type": "wiki-page-name" }, "image-alt": { "label": "Image alternative text", "description": "Alternative text of the image, for screen readers and vision-impaired people", "example": "Appropedia logo", "type": "string" }, "title": { "aliases": [ "1" ], "label": "Title", "type": "string", "suggested": true, "description": "Title of the notice.", "example": "This page needs additional references." }, "text": { "aliases": [ "2" ], "label": "Text", "type": "content", "suggested": true, "description": "Text of the notice", "example": "You can help Appropedia by editing this page and adding some references." }, "logo": { "label": "Logo", "description": "Logo of the notice", "example": "Appropedia.png", "type": "wiki-file-name" }, "logo-size": { "label": "Logo size", "description": "Size of the logo", "example": "80px", "type": "string", "default": "x40px" }, "logo-link": { "label": "Logo link", "description": "Page to link from the logo", "example": "Appropedia:Books", "type": "wiki-page-name" }, "logo-alt": { "label": "Logo alternative text", "description": "Alternative text of the logo, for screen readers and vision-impaired people", "example": "Appropedia logo", "type": "string" }, "category": { "label": "Category", "description": "Name of the category (without the \"Category:\" prefix) where to add all content pages with this notice (only works for pages in the main namespace)", "example": "Solar cookers", "type": "string" }, "border-color": { "label": "Border color", "description": "Color of the border", "example": "red", "type": "string" }, "class": { "label": "Class", "type": "string", "description": "Extra CSS class of the notice", "example": "custom-class" } }, "paramOrder": [ "title", "text", "foot", "image", "image-size", "image-link", "image-alt", "logo", "logo-size", "logo-link", "logo-alt", "border-color", "class", "category" ], "format": "block", "description": "Use this meta template to build notices." } </templatedata>