Template:Dmbox/doc: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
w>Vanisaac
m See also: clean up per WP:CAT and WP:AWBREQ add template:Sandbox other
 
m Text replacement - "CSS" to "CSS"
 
(7 intermediate revisions by the same user not shown)
Line 1:
{{Documentation subpage}}
{{High-risk| 317,000+ }}
{{used in system}}
<!-- Categories where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]) -->
{{Commons Import}}
{{Lua|Module:Message box}}
{{Uses TemplateStyles|Template:Dmbox/styles.css}}
{{Mbox templates (small)}}
 
This is the {{tl|Dmbox}} (['''D''']isambiguation footer ['''m''']essage ['''box''']) metatemplate.
 
It is used to build [[Wikipedia:WP:disambiguation|disambiguation]] and [[Wikipedia:set index article|set index article]] message boxes, such as {{tl|Disambiguation}} and {{tl|Shipindex}}.
 
This template works similarly to {{tl|Ambox}} and mostly uses the same parameters. The main differences are that this box uses the disambiguation style and only has two "type" settings.
Line 107 ⟶ 108:
 
{{Para|style}}
:Optional [[Wikipedia: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-bottom: 0.2em;</code>
 
{{Para|textstyle}}
:Optional [[Wikipedia:Cascading Style Sheets|CSS]] values used by the text cell. For example:
::<code>textstyle=text-align: center;</code>
 
Line 143 ⟶ 144:
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.
 
For more technical details see the [[Wikipedia:Template talk:Dmbox|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 details see wikipedia: [[wikipedia:Template:Dmbox/doc]]
 
===See also===
{{Mbox templates see also}}
 
Other pages:
* [[Wikipedia:Disambiguation]], which includes a section explaining [[Wikipedia:Disambiguation#Set index articles|set index articles]].
* [[Wikipedia:WikiProject Disambiguation]]
* [[MediaWiki:Disambiguationspage]], where all disambiguation message boxes should be listed to assist automatic tools' identification of disambiguation pages. Now also has a separate list with all set index message boxes, so some tools can know what pages are set index articles.
* {{tl|Disambiguation}}, the generic disambiguation message box.
* {{tl|Set index article}}, the generic set index article message box.
 
<includeonly>{{Sandbox other|