「Template:Info」:修訂間差異
跳至導覽
跳至搜尋
imported>=海豚= |
imported>=海豚= 小 (已保护“模板:Info”([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期))) |
(無差異)
|
於 2020年4月26日 (日) 09:18 的修訂
這是效果預覽
警告!你還沒有添加任何內容
警告!你還沒有添加任何內容
結構
{{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= infoBoxRed |text-style= color: red; font-weight: bold; font-style: italic; |leftimage= [[image:Icon-info.png|50px|link=]] |color= red |below=H萌娘,万物皆可H! |class= }}