Vorlage:Fmbox/Doku: Unterschied zwischen den Versionen
imported>Davidgothberg ("header & footer" -> "footer & header") |
imported>Davidgothberg (Updating the /doc with the new "editnotice" style. And removing the "not ready for use" sign.) |
||
Zeile 1: | Zeile 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
{{mbox templates}} | {{mbox templates}} | ||
This is the {{tl|fmbox}} or '''footer & header message box''' template. | This is the {{tl|fmbox}} or '''footer & header message box''' template. | ||
It can be used to build message boxes for system messages such as | It can be used to build message boxes for system messages such as [[MediaWiki:Sp-contributions-footer-anon]]. It can also be used for footer and header boxes on user pages and for [[Wikipedia:Editnotice|editnotices]]. | ||
This template works similarly to {{tl|ambox}} and mostly uses the same parameters. The main differences are that this box is 100% wide and currently only has | This template works similarly to {{tl|ambox}} and mostly uses the same parameters. The main differences are that this box is 100% wide and currently only has two colour styles. | ||
=== Usage === | === Usage === | ||
Zeile 28: | Zeile 24: | ||
<pre> | <pre> | ||
{{fmbox | {{fmbox | ||
| type = editnotice | |||
| image = [[Image:Emblem-question-yellow.svg|40px]] | | image = [[Image:Emblem-question-yellow.svg|40px]] | ||
| style = | | style = border: 1px solid #f4c430; | ||
| textstyle = color: red; font-weight: bold; font-style: italic; | | textstyle = color: red; font-weight: bold; font-style: italic; | ||
| text = The message body text. | | text = The message body text. | ||
Zeile 36: | Zeile 33: | ||
{{fmbox | {{fmbox | ||
| type = editnotice | |||
| image = [[Image:Emblem-question-yellow.svg|40px]] | | image = [[Image:Emblem-question-yellow.svg|40px]] | ||
| style = | | style = border: 1px solid #f4c430; | ||
| textstyle = color: red; font-weight: bold; font-style: italic; | | textstyle = color: red; font-weight: bold; font-style: italic; | ||
| text = The message body text. | | text = The message body text. | ||
}} | |||
=== Footer and header message box types === | |||
The following examples use different '''type''' parameters but use no image parameters thus they use the default image. | |||
{{fmbox | |||
| type = editnotice | |||
| text = type=<u>editnotice</u> – Transparent background for [[Wikipedia:Editnotice|editnotices]]. | |||
}} | |||
{{fmbox | |||
| type = system | |||
| text = type=<u>system</u> – Light grey system message background (default). | |||
}} | }} | ||
Zeile 78: | Zeile 89: | ||
<pre> | <pre> | ||
{{fmbox | {{fmbox | ||
| type = system / editnotice | |||
| image = none / [[Image:Some image.svg|40px]] | | image = none / [[Image:Some image.svg|40px]] | ||
| imageright = [[Image:Some image.svg|40px]] | | imageright = [[Image:Some image.svg|40px]] | ||
Zeile 85: | Zeile 97: | ||
}} | }} | ||
</pre> | </pre> | ||
'''type''' | |||
:If no '''type''' parameter is given the template defaults to type '''system'''. That means it gets a light grey background. | |||
'''image''' | '''image''' |