m // Edit via Wikiplus |
m Protected "Template:Info" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
(No difference)
| |
When no parameters are filled in, the result is this:
Page Template:模板:info/style.css has no content.text= or 1=?text is required, all other parameters are optional.
1, for example, {{Info|content}} and {{Info|text=content}} are equivalent.type. top (default) is [Page-top prompt templates], middle is [Page-middle prompt templates], and none means no category.{{info
|width=
|color=
|backgroundColor=
|leftimage=
|icon-style=
|smallimage=
|title=
|title-style=
|text=
|text-style=
|below=
|below-style=
|class=
|type=
}}
{{Info
|width= <!-- total width, default is 80% -->
|color= <!-- Color of the left border, default is #1e90ff-->
|backgroundColor= <!--Background color, default is #fbfbfb -->
|leftimage= <!--Left side image, default is [[Image:Icon-info.png|50px|link=]], will override the {{{smallimage}}} parameter -->
|icon-style= <!-- Style of the image -->
|smallimage= <!-- Image size. When the parameter value is not empty, the default is 25px, otherwise 50px -->
|title= <!-- The title content -->
|title-style= <!-- style of the title, formatted as inline style, such as color: red; font-style: italic; -->
|text= <!-- Text content, equivalent to {{{content}}} or {{{1}}} -->
|text-style= <!--The text style, equivalent to {{{content-style}}} -->
|below= <!-- Footnote content -->
|below-style= <!-- Footnote style -->
|class= <!--Template extra class -->
|type= <!--The template's category, for template pages only: top is [Page-top prompt templates], middle is [Page-middle prompt templates], and none is no category; defaults to [Page-top prompt templates] in template pages, defaults to no category in non-template pages -->
}}