Template:Tmbox/doc: Difference between revisions

m
101 revisions imported: Importing Template:Tmbox, with templates.
m (Reverted edits by 107.77.207.199 (talk) (HG) (3.1.20))
m (101 revisions imported: Importing Template:Tmbox, with templates.)
 
(5 intermediate revisions by 4 users not shown)
Line 1:
{{Documentation subpage}}
{{High-risk|2,000,000+ 2553167 |all-pages = yes}}
{{Lua|Module:Message box}}
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
Line 99:
<pre>
{{tmbox
| name = name of the template
| type = speedy / delete / content / style / notice / move / protection
| image = none / [[File:Some image.svg|40px]]
Line 112 ⟶ 113:
}}
</pre>
 
'''name'''
:(Optional) Name of the template. This adds a CSS class with name <code>box-''name''</code> to the HTML element, for use by bots or scripts.
 
'''type'''
Line 216 ⟶ 220:
This template uses the tmbox CSS classes in [[MediaWiki:Common.css]] for most of its looks, thus it is fully skinnable.
 
This template calls {{tl|tmbox/core}}[[Module:Message box]] 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.
Line 234 ⟶ 238:
* {{tl|WikiProjectBanners}} – Another system for collapsing WikiProject banners.
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandboxSandbox other|
| <!-- CATEGORIES BELOW THIS LINE, PLEASE: -->
[[Category:Mbox and messagebox templates]]