Vorlage:Tmbox/Doku: Unterschied zwischen den Versionen

Added "We are deploying!" section. Made the documentation more like for the other mboxes.
imported>Davidgothberg
(→‎Suggested style standard: Making the type names bold as in the rest of the doc. And removed "new" since we will be converting old boxes too.)
imported>Davidgothberg
(Added "We are deploying!" section. Made the documentation more like for the other mboxes.)
Zeile 9: Zeile 9:


This template works similarly to {{tl|ambox}} and uses the same parameters.
This template works similarly to {{tl|ambox}} and uses the same parameters.
=== We are deploying! ===
After discussions on the [[Template talk:Tmbox|talk page]] of this template and announcing it at several places for some time we are now deploying this template. Feel free to convert any message boxes used on talk pages to use this meta-template. If you find any tricky cases then list them on the talk page of this template and you'll get help.
When this template is used to build talk page message boxes those boxes should contain explanatory texts just like before. (The same texts as before or new improved texts.) If there are more specific images in the boxes or you know a better image, then use them instead of the default images shown here.


=== Suggested style standard ===
=== Suggested style standard ===
Zeile 18: Zeile 24:
* '''move''' and '''protection''' should only be used for messageboxes relating to moves and merges, and page protection, respectively.  
* '''move''' and '''protection''' should only be used for messageboxes relating to moves and merges, and page protection, respectively.  
* The '''notice''' type should be used for the majority of talkpage messageboxes; those that are intended to convey or summarise information.  If a talkpage messagebox does not obviously fit into one of the other types, it is probably a notice type.
* The '''notice''' type should be used for the majority of talkpage messageboxes; those that are intended to convey or summarise information.  If a talkpage messagebox does not obviously fit into one of the other types, it is probably a notice type.
=== Usage ===
Simple usage example:
<pre>
{{tmbox | text = Some text.}}
</pre>
{{tmbox | text = Some text.}}
Complex example:
<pre>
{{tmbox
| type      = style
| image    = [[Image:Emblem-question-yellow.svg|40px]]
| style    = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
| text      = The message body text.
}}
</pre>
{{tmbox
| type      = style
| image    = [[Image:Emblem-question-yellow.svg|40px]]
| style    = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
| text      = The message body text.
}}


=== Talk page message box types ===
=== Talk page message box types ===


These are the colours and styles that this meta-template currently produces. When this template is used to build actual message boxes they should contain the same (long) texts as before, with links to explanations and they can use more specific images than the default images shown here.
The following examples use different '''type''' parameters but use no image parameters thus they use the default images for each type.
 
Note that the vast majority of talk page message boxes are expected to use the "notice" type and thus will look the same as they did before.


{{tmbox
{{tmbox
Zeile 54: Zeile 89:
}}
}}


=== Usage ===
=== Special ===


Simple usage example:
Some other parameter combinations.


<pre>
{{tmbox | text = Some text.}}
</pre>
{{tmbox | text = Some text.}}
Complex example:
<pre>
{{tmbox
{{tmbox
| type     = style
| text  = No type and no image given ('''default''')
| image     = [[Image:Emblem-question-yellow.svg|40px]]
| style    = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
| text      = The message body text.
}}
}}
</pre>
{{tmbox
{{tmbox
| type      = style
| image = none
| image     = [[Image:Emblem-question-yellow.svg|40px]]
| text  = No type and '''image=none''' – No image is used and the '''text''' uses the whole message box area.
| style    = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
| text     = The message body text.
}}
}}


Anonymer Benutzer