Template:Info:修订间差异

H萌娘,万物皆可H的百科全书!
跳到导航 跳到搜索
imported>=海豚=
([InPageEdit] 没有编辑摘要)
imported>=海豚=
([InPageEdit] 没有编辑摘要)
第49行: 第49行:
  除了|text= 以外的所有参数留空或者删去是合理的用法。
  除了|text= 以外的所有参数留空或者删去是合理的用法。
  |text=可以用参数【1】代替
  |text=可以用参数【1】代替
  {{Color|red|可以使用参数title来增加一个标题<br />可以使用参数below来增加一个页脚}}
  {{Color|Green|可以使用参数title来增加一个标题<br />可以使用参数below来增加一个页脚}}


== 举例说明 ==
== 举例说明 ==
第58行: 第58行:
|title=欢迎来到H萌娘!
|title=欢迎来到H萌娘!
|text= 欢迎使用info模板框,这个模板是所有模板的父模板
|text= 欢迎使用info模板框,这个模板是所有模板的父模板
|class= infoBoxRed
|class= infoBoxGreen
|text-style= color: red; font-weight: bold; font-style: italic;
|text-style= color: Green; font-weight: bold; font-style: italic;
|leftimage= [[image:Icon-info.png|50px|link=]]
|leftimage= [[image:Icon-info.png|50px|link=]]
|color= red
|color= Green
|below=H萌娘,万物皆可H!
|below=H萌娘,万物皆可H!
|class=
|class=
第71行: 第71行:
|title=欢迎来到H萌娘!
|title=欢迎来到H萌娘!
|text= 欢迎使用info模板框,这个模板是所有模板的父模板
|text= 欢迎使用info模板框,这个模板是所有模板的父模板
|class= infoBoxRed
|class= infoBoxGreen
|text-style= color: red; font-weight: bold; font-style: italic;
|text-style= color: Green; font-weight: bold; font-style: italic;
|leftimage= [[image:Icon-info.png|50px|link=]]
|leftimage= [[image:Icon-info.png|50px|link=]]
|color= red
|color= Green
|below=H萌娘,万物皆可H!
|below=H萌娘,万物皆可H!
|class=
|class=

2020年4月12日 (日) 15:19的版本

这是效果预览

Icon-info.png
警告!你还没有添加任何内容
警告!你还没有添加任何内容


结构

{{Info
|class=
|width= 默认值是80%
|color= 默认值是#1e90ff
|title-style=
|title=
|icon-style=
|leftimage= 默认值是[[image:Icon-info.png|50px|link=]]
|text-style=
|text= 默认值是'''警告!你还没有添加任何内容'''
|below-style=
|below=
}}
{{Info
|class=
|width=
|color=
|title-style=
|title=
|icon-style=
|leftimage=
|text-style=
|text=
|below-style=
|below=
}}

 所有参数都可以留空或者删去,但是会使模板失去作用,不写任何东西的效果见上面的【效果预览】。  除了|text= 以外的所有参数留空或者删去是合理的用法。  |text=可以用参数【1】代替  可以使用参数title来增加一个标题
可以使用参数below来增加一个页脚

举例说明

{{info
|width=50% 
|title=欢迎来到H萌娘!
|text= 欢迎使用info模板框,这个模板是所有模板的父模板
|class= infoBoxGreen
|text-style= color: Green; font-weight: bold; font-style: italic;
|leftimage= [[image:Icon-info.png|50px|link=]]
|color= Green
|below=H萌娘,万物皆可H!
|class=
}}


欢迎来到H萌娘!
Icon-info.png
欢迎使用info模板框,这个模板是所有模板的父模板
H萌娘,万物皆可H!
欢迎来到H萌娘!
欢迎使用info模板框,这个模板是所有模板的父模板
H萌娘,万物皆可H!