Предлошка:Ambox
This is the ambox or article message box meta template. It is used to create article message box templates such as {{wikify}} etc. It offers several different colours, uses default images if no image parameter is given and it has some other features. This meta template is just a thin wrapper for the ambox CSS classes in MediaWiki:Common.css. The classes can also be used directly in a wikitable, especially if special functionality is needed. See the how-to guide for that. UsageSimple usage example: {{ambox | text = Some text.}}
{{ambox | type = style | image = [[Image:Icon apps query.svg|38px]] | text = The message body text. }}
Default imagesThe following examples use different type parameters but use no image parameters thus they use the default images for each type.
Other imagesThe default images shown above are mostly for convenience. In many cases it is more appropriate to use more specific images. These examples use the image parameter to specify an image other than the default images.
SpecialSome other parameter combinations.
ParametersList of all parameters: {{ambox | type = serious / content / style / merge / growth / notice | image = none / blank / [[Image:Some image.svg|40px]] | imageright = [[Image:Some image.svg|40px]] | text = The message body text. }} type
image
imageright
text
Technical detailsIf you need to use special characters in the text parameter then you need to escape them like this: {{ambox | 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 and the "See also" links below. See also
|
Portal di Ensiklopedia Dunia