12,236
edits
m (1 revision: Imported from Wikipedia) |
No edit summary |
||
Line 1: | Line 1: | ||
{{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 [http://en.wikipedia.org/wiki/MediaWiki:Sp-contributions-footer-anon 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 has different colour styles. | This template works similarly to {{tl|ambox}} and mostly uses the same parameters. The main differences are that this box is 100% wide and has different colour styles. | ||
Line 123: | Line 119: | ||
'''id''' | '''id''' | ||
:Optional [[Cascading Style Sheets|CSS]] id used by the entire message box table. Without quotation marks <code>" "</code>. Mostly meant to be used to tag a message box with its name, to make it easy to detect the presence of the message from javascript. For instance [[MediaWiki:Sp-contributions-footer]] would use: | :Optional [[wp:Cascading Style Sheets|CSS]] id used by the entire message box table. Without quotation marks <code>" "</code>. Mostly meant to be used to tag a message box with its name, to make it easy to detect the presence of the message from javascript. For instance [[MediaWiki:Sp-contributions-footer]] would use: | ||
::<code>id = sp-contributions-footer</code> | ::<code>id = sp-contributions-footer</code> | ||
'''class''' | '''class''' | ||
:Optional [[Cascading Style Sheets|CSS]] class names used by the entire message box table. Without quotation marks <code>" "</code>. Mostly meant to be used to tag a message box with its name so it can be individually skinned. For instance [[MediaWiki:Sp-contributions-footer]] would use: | :Optional [[wp:Cascading Style Sheets|CSS]] class names used by the entire message box table. Without quotation marks <code>" "</code>. Mostly meant to be used to tag a message box with its name so it can be individually skinned. For instance [[MediaWiki:Sp-contributions-footer]] would use: | ||
::<code>class = sp-contributions-footer</code> | ::<code>class = sp-contributions-footer</code> | ||
'''style''' | '''style''' | ||
:Optional [[Cascading Style Sheets|CSS]] values used by the entire message box table. Without quotation marks <code>" "</code> but with the ending semicolons <code>;</code>. For example: | :Optional [[wp:Cascading Style Sheets|CSS]] values used by the entire message box table. Without quotation marks <code>" "</code> but with the ending semicolons <code>;</code>. For example: | ||
::<code>style = margin-top: 1em;</code> | ::<code>style = margin-top: 1em;</code> | ||
'''textstyle''' | '''textstyle''' | ||
:Optional [[Cascading Style Sheets|CSS]] values used by the text cell. For example: | :Optional [[wp:Cascading Style Sheets|CSS]] values used by the text cell. For example: | ||
::<code>textstyle = font-size: 90%; text-align: center;</code> | ::<code>textstyle = font-size: 90%; text-align: center;</code> | ||
Line 173: | Line 169: | ||
'''Note to admins:''' MediaWiki does not parse and convert HTML wikimarkup in system messages the same way as it does for normal pages. This means for instance that <code><br></code> is not automatically converted to <code><br /></code> and missing <code></td></code> and <code></tr></code> tags are not automatically added. Thus see to that any HTML code you use in system messages are valid XHTML. That is, close all tags that you begin. However, regular wikimarkup works fine in most system messages. | '''Note to admins:''' MediaWiki does not parse and convert HTML wikimarkup in system messages the same way as it does for normal pages. This means for instance that <code><br></code> is not automatically converted to <code><br /></code> and missing <code></td></code> and <code></tr></code> tags are not automatically added. Thus see to that any HTML code you use in system messages are valid XHTML. That is, close all tags that you begin. However, regular wikimarkup works fine in most system messages. | ||
For more technical details see the [[Template talk:Fmbox|talk page]]. Since this template works almost exactly like {{tl|ambox}}, {{tl|tmbox}}, {{tl|imbox}}, {{tl|cmbox}} and {{tl|ombox}} their talk pages and related pages might also contain more details. | For more technical details see the [[wp:Template talk:Fmbox|talk page]]. Since this template works almost exactly like {{tl|ambox}}, {{tl|tmbox}}, {{tl|imbox}}, {{tl|cmbox}} and {{tl|ombox}} their talk pages and related pages might also contain more details. | ||
=== See also === | === See also === | ||
* [[:Category:Message Box Templates]] | |||
* | |||
<includeonly> | <includeonly> | ||
[[Category:Message Box Templates]] | |||
[[Category: | |||
</includeonly> | </includeonly> |