(update - replace "-moz-border-radius" with "border-radius") |
No edit summary |
||
Line 1: | Line 1: | ||
{| | {{ mbox | ||
| | | name = Notice | ||
| style = {{{style|}}} | |||
| textstyle = {{{textstyle|}}} | |||
| | | subst = <includeonly>{{subst:substcheck}}</includeonly> | ||
| demospace = {{{demospace|}}} | |||
| image = {{#if:{{{image|}}}|[[file:{{{image}}}|40px|Notice]]}} | |||
| | | small = {{{small|}}} | ||
| smallimage = {{#if:{{{image|}}}|[[file:{{{image}}}|30px|Notice]]}} | |||
= | | text = {{#if:{{{header|}}}|<div style="text-align: center">'''{{{header}}}'''</div>}}{{{text|{{{1}}}}}} | ||
}}<noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc sub-page --></noinclude> | |||
| | |||
| | |||
| | |||
| | |||
| | |||
{{ | |||
| | |||
}} | |||
| | |||
| | |||
| | |||
| | |||
| | |||
}} | |||
</ | |||
{{ | |||
| | |||
}} | |||
< | |||
</ | |||
</noinclude> |
Revision as of 18:48, 6 March 2013
Template loop detected: Template:Mbox
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:
Template loop detected: Template:Mbox
While the following:
{{Notice|Title of the notice.|Text of the notice.}}
will produce:
Template loop detected: Template:Mbox
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:
Template loop detected: Template:Mbox
See also
Template data
Use this meta template to build notices.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | title 1 | Title of the notice.
| String | suggested |
Text | text 2 | Text of the notice
| Content | suggested |
Foot | foot | Small text at the bottom of the notice.
| String | optional |
Image | image | Main image of the notice
| File | optional |
Image size | image-size | Size of the image
| String | optional |
Image link | image-link | Page to link from the image
| Page name | optional |
Image alternative text | image-alt | Alternative text of the image, for screen readers and vision-impaired people
| String | optional |
Logo | logo | Logo of the notice
| File | optional |
Logo size | logo-size | Size of the logo
| String | optional |
Logo link | logo-link | Page to link from the logo
| Page name | optional |
Logo alternative text | logo-alt | Alternative text of the logo, for screen readers and vision-impaired people
| String | optional |
Border color | border-color | Color of the border
| String | optional |
Class | class | Extra CSS class of the notice
| String | optional |
Category | category | 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)
| String | optional |