No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
| text = {{#if:{{{header|}}}|<div style="text-align: center">'''{{{header}}}'''</div>}}{{{text|{{{1}}}}}} | | text = {{#if:{{{header|}}}|<div style="text-align: center">'''{{{header}}}'''</div>}}{{{text|{{{1}}}}}} | ||
}}<noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc sub-page --></noinclude> | }} | ||
{| cellspacing="0" align="center" cellpadding="5" style="width: {{{width}}}; background-color: {{{background-color}}}; border: 2px solid {{{border-color}}}; text-align: center; border-radius:{{{radius}}}px;" | |||
| style="padding: 4pt; line-height: 1.25em;" | | |||
|- | |||
!<big><big>{{{headline}}}</big></big> | |||
|- | |||
|{{{content}}} | |||
|} <noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc sub-page --></noinclude> |
Revision as of 16:45, 7 March 2013
Template loop detected: Template:Mbox
{{{headline}}} |
---|
{{{content}}} |
{{{headline}}} |
---|
{{{content}}} |
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
{{{headline}}} |
---|
{{{content}}} |
While the following:
{{Notice|Title of the notice.|Text of the notice.}}
will produce:
Template loop detected: Template:Mbox
{{{headline}}} |
---|
{{{content}}} |
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
{{{headline}}} |
---|
{{{content}}} |
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 |