Jump to content

Template:Fmbox/doc: Difference between revisions

no edit summary
m (1 revision: Imported from Wikipedia)
No edit summary
 
Line 1: Line 1:
{{Documentation subpage}}
{{used in system| in many system messages }}
<!-- 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 [[MediaWiki:Sp-contributions-footer-anon]]. It can also be used for footer and header boxes on user pages and for [[Wikipedia:Editnotice|editnotices]].
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>&lt;br></code> is not automatically converted to <code>&lt;br /></code> and missing <code>&lt;/td></code> and <code>&lt;/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>&lt;br></code> is not automatically converted to <code>&lt;br /></code> and missing <code>&lt;/td></code> and <code>&lt;/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]]
* {{tl|fmbox warning ruler}} – A horizontal ruler in the same colour as the red border for the warning type. Used inside some system warning notices.
 
{{Mbox templates see also}}


<includeonly>
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Message Box Templates]]
[[Category:Wikipedia metatemplates|{{PAGENAME}}]]
 
[[be-x-old:Шаблён:Службовае паведамленьне]]
[[ca:Plantilla:Metacaixa d'avís sistema]]
[[id:Templat:Fmbox]]
[[it:Template:Fmbox]]
[[ja:Template:Fmbox]]
[[mk:Шаблон:Fmbox]]
[[no:mal:Fmbox]]
[[pl:Szablon:Fmbox]]
[[pt:Predefinição:Fmbox]]
[[ro:Format:Meta-casetămas]]
[[tpi:Template:Fmbox]]
[[ur:سانچہ:Fmbox]]
</includeonly>
</includeonly>
12,236

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.