Template:Tmbox/doc: Difference between revisions

m
Text replacement - "nome globe current event.png" to "Gnome globe current event.png"
(Created page with '{{documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> {{mbox templates}} This is the {{tl|tmbox}} or '''talk page message box''' met…')
 
m (Text replacement - "nome globe current event.png" to "Gnome globe current event.png")
 
(5 intermediate revisions by 3 users not shown)
Line 20: Line 20:


The types of talkpage messageboxes follow the same naming convention as the boxes for all other namespaces, but the type of any particular talkpage messagebox may not be as obvious as in other namespaces.  When deciding on the type to use for a talkpage messagebox, please consider the following guidelines:
The types of talkpage messageboxes follow the same naming convention as the boxes for all other namespaces, but the type of any particular talkpage messagebox may not be as obvious as in other namespaces.  When deciding on the type to use for a talkpage messagebox, please consider the following guidelines:
* '''speedy''' should ''only'' be used for [[:Category:Speedy deletion templates|speedy deletion templates]].
* '''speedy''' should ''only'' be used for Category:Speedy deletion templates|speedy deletion templates.
* '''delete''' should ''only'' be used for templates relating to ''ongoing'' deletion discussions.  Please do ''not'' use this type just to get a red border for a messagebox.
* '''delete''' should ''only'' be used for templates relating to ''ongoing'' deletion discussions.  Please do ''not'' use this type just to get a red border for a messagebox.
* '''content''' and '''style''' should be used for warnings and alerts.  Use '''content''' (which has an orange border) for more important and immediate alerts, and '''style''' (yellow border) for less important warnings.  Messageboxes of these types should ideally be ''transitory'': they should not be expected to remain on a talkpage indefinitely.   
* '''content''' and '''style''' should be used for warnings and alerts.  Use '''content''' (which has an orange border) for more important and immediate alerts, and '''style''' (yellow border) for less important warnings.  Messageboxes of these types should ideally be ''transitory'': they should not be expected to remain on a talkpage indefinitely.   
Line 42: Line 42:
{{tmbox
{{tmbox
| type      = style
| type      = style
| image    = [[Image:Emblem-question-yellow.svg|40px]]
| image    = [[File:Emblem-question-yellow.svg.png|40px]]
| style    = width: 400px;  
| style    = width: 400px;  
| textstyle = color: red; font-weight: bold; font-style: italic;
| textstyle = color: red; font-weight: bold; font-style: italic;
Line 51: Line 51:
{{tmbox
{{tmbox
| type      = style
| type      = style
| image    = [[Image:Emblem-question-yellow.svg|40px]]
| image    = [[File:Emblem-question-yellow.svg.png|40px]]
| style    = width: 400px;  
| style    = width: 400px;  
| textstyle = color: red; font-weight: bold; font-style: italic;
| textstyle = color: red; font-weight: bold; font-style: italic;
Line 102: Line 102:
}}
}}
{{tmbox
{{tmbox
| image = [[Image:Gnome globe current event.svg|42px]]
| image = [[Image:Gnome globe current event.png|42px]]
| imageright = [[Image:Nuvola apps bookcase.svg|40px]]
| imageright = [[Image:Nuvola apps bookcase.svg|40px]]
| text  = image = <nowiki>[[Image:Gnome globe current event.svg|42px]]</nowiki> <br> imageright = <nowiki>[[Image:Nuvola apps bookcase.svg|40px]]</nowiki>
| text  = image = <nowiki>[[Image:Gnome globe current event.png|42px]]</nowiki> <br> imageright = <nowiki>[[Image:Nuvola apps bookcase.svg|40px]]</nowiki>
}}
}}


Line 230: Line 230:
This template calls {{tl|tmbox/core}} which holds most of the code for {{tl|tmbox}}, while {{tl|tmbox}} itself does parameter preprocessing.  
This template calls {{tl|tmbox/core}} which holds most of the code for {{tl|tmbox}}, while {{tl|tmbox}} itself does parameter preprocessing.  


Internally this meta-template uses HTML markup instead of wiki markup for the table code. That is the usual way we make meta-templates since wiki markup has several drawbacks. For instance it makes it harder to use [[m:Help:ParserFunctions|parser functions]] and special characters in parameters.  
Internally this meta-template uses HTML markup instead of wiki markup for the table code. That is the usual way we make meta-templates since wiki markup has several drawbacks. For instance it makes it harder to use {{mw|Help:Extension:ParserFunctions|parser functions}} and special characters in parameters.  


For more technical details see the [[Template talk:Tmbox|talk page]]. Since this template works almost exactly like {{tl|ambox}}, {{tl|imbox}}, {{tl|cmbox}} and {{tl|ombox}} their talk pages and related pages might also contain more details.
For more technical details see the [[Template talk:Tmbox|talk page]]. Since this template works almost exactly like {{tl|ambox}}, {{tl|imbox}}, {{tl|cmbox}} and {{tl|ombox}} their talk pages and related pages might also contain more details.