Vorlage:Fmbox/Doku: Unterschied zwischen den Versionen

Updating the /doc with the new "editnotice" style. And removing the "not ready for use" sign.
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 -->
{{caution
| 1 =
<span style="color:#F4B800;"><big>'''This template is NOT ready for use yet'''</big></span> <br> Don't use this meta-template for real message boxes yet, but feel free to use it for testing. It is brand new and we need to first discuss some of its details. See the [[Template talk:Fmbox|talk page]] for details.
}}


{{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 [[MediaWiki:Sharedupload]] and [[MediaWiki:Sp-contributions-footer-anon]]. It can also be used for header and footer boxes on user pages.
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 one colour style. (But we might add some more colour styles, see the [[Template talk:Fmbox|talk page]] about that.)
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    = background: transparent;
| 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    = background: transparent;
| 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'''
Anonymer Benutzer