Template:Dmbox/doc: Difference between revisions
| [unchecked revision] | [unchecked revision] |
Content deleted Content added
w>Vanisaac |
Caleb Cooper (talk | contribs) |
||
| (7 intermediate revisions by the same user not shown) | |||
Line 1:
{{Documentation subpage}}
{{High-risk
{{used in system}}
{{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]]
<includeonly>{{Sandbox other|
| |||