Предлошка:Dmbox
This is the {{dmbox}} or disambiguation footer message box meta-template. It is used to build disambiguation and set index article boxes, such as {{disambig}} and {{shipindex}}. This template works similarly to {{ambox}} and mostly uses the same parameters. The main differences are that this box uses the disambig style and only has two "type" settings. UsageSimple usage example: {{dmbox | text = Some text.}}
Complex example: {{dmbox | type = setindex | image = [[Image:Schooner.svg|27px]] [[Image:Disambig gray.svg|30px]] | textstyle = color: red; font-weight: bold; font-style: normal; | text = The message body text. }}
ParametersList of all parameters: {{dmbox | type = disambig / setindex | image = none / [[Image:Some image.svg|40px]] | imageright = [[Image:Some image.svg|40px]] | style = CSS values | textstyle = CSS values | text = The message body text. }} type
image
imageright
style
textstyle
text
Technical detailsThis template currently uses hard coded styles and class names. Later it will only use CSS classes making it easier to skin. (In the meantime it can be skinned by using the " If you need to use special characters in the text parameter then you need to escape them like this: {{dmbox | text = <div> Equal sign = and a start and end brace { } work fine as they are. But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>. And now a pipe and end braces <nowiki>|}}</nowiki>. </div> }}
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 parser functions and special characters in parameters. For more technical details see the talk page. Since this template works almost exactly like {{ambox}}, {{tmbox}}, {{imbox}}, {{cmbox}} and {{ombox}} their talk pages and related pages might also contain more details. Поврзано
|
Portal di Ensiklopedia Dunia