Template:Info/doc
Preview
When no parameters are filled, the effect is as follows:
Warning! You haven't added any content yet
Brief Description
- The parameter
text
is required, all other parameters are optional.- You can also use parameter
1
directly. For example,{{Info|Content}}
and{{Info|text=Content}}
are equivalent.
- You can also use parameter
- You can use the parameter title to add a title, or use the parameter below to add a footer note.
- When using this template to create other templates, you can use the parameter
type
to fill in the category. Top (default) is [Top Notice Template], middle is [Middle Notice Template], none means no category.
Full Parameters
{{info |width= |color= |backgroundColor= |leftimage= |icon-style= |smallimage= |title= |title-style= |text= |text-style= |below= |below-style= |class= |type= }}
Parameter Explanation
{{info |width = <!-- Template width, default is 80% --> |color = <!-- Left stripe color, default is #1e90ff --> |backgroundColor = <!-- Background color, default is #fbfbfb --> |leftimage = <!-- Left icon, default is [[image:Icon-info.png|50px|link=]], will override parameter {{{smallimage}}} --> |icon-style = <!-- Icon style --> |smallimage = <!-- Icon size. If the parameter value is not empty, the icon size is 25px, otherwise it is 50px --> |title = <!-- Title content --> |title-style = <!-- Title style, formatted as inline style, such as color: red; font-style: italic; --> |text = <!-- Text content, equivalent to {{{content}}} and {{{1}}} --> |text-style = <!-- Text style, equivalent to {{{content-style}}} --> |below = <!-- Bottom content --> |below-style = <!-- Bottom style --> |class = <!-- Additional template class --> |type = <!-- Template type, for template page use only: top is [Top Notice Template], middle is [Middle Notice Template], none means no category; default is Top Notice Template on template pages, no category on non-template pages --> }}