Vorlage:Fmbox/Doku: Unterschied zwischen den Versionen
imported>Ark25 K (fix Interwiki - ro) |
imported>Davidgothberg (Adding description of the new "id" parameter. And adding "See also" {{dmbox}}.) |
||
Zeile 92: | Zeile 92: | ||
| 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]] | ||
| id = CSS id | |||
| class = CSS class names | | class = CSS class names | ||
| style = CSS values | | style = CSS values | ||
Zeile 113: | Zeile 114: | ||
::<code><nowiki>imageright = [[Image:Nuvola apps bookcase.png|40px]]</nowiki></code> | ::<code><nowiki>imageright = [[Image:Nuvola apps bookcase.png|40px]]</nowiki></code> | ||
:'''Anything''' = Any other object that you want to show on the right side. | :'''Anything''' = Any other object that you want to show on the right side. | ||
'''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: | |||
::<code>id = sp-contributions-footer</code> | |||
'''class''' | '''class''' | ||
Zeile 167: | Zeile 172: | ||
* {{tl|cmbox}} – For category message boxes. | * {{tl|cmbox}} – For category message boxes. | ||
* {{tl|ombox}} – For other pages message boxes. | * {{tl|ombox}} – For other pages message boxes. | ||
* {{tl|mbox}} – Has namespace detection, for message boxes that are used on several types of pages and thus need to change style depending on what page they are used on. | |||
Closely related meta-templates: | |||
* {{tl|fmbox}} – For header and footer message boxes. | * {{tl|fmbox}} – For header and footer message boxes. | ||
* {{tl| | * {{tl|dmbox}} – For disambiguation and set index message boxes. | ||
<includeonly> | <includeonly> |