「Template:Mbox」:修訂間差異

出自Arcaea中文维基
無編輯摘要
(using lua)
 
第1行: 第1行:
{{
{{#invoke:Message box|mbox}}<noinclude>[[分类:信息模板]]{{Documentation}}</noinclude>
  {{namespace detect
  | demospace = {{{demospace|}}}
  | main    = ambox
  | talk    = tmbox
  | file    = imbox
  | category  = cmbox
  | other   = ombox
  }}
| type    = {{{type|}}}
| image    = {{{image|}}}
| imageright = {{{imageright|}}}
| class    = {{{class|}}}
| style    = {{{style|}}}
| textstyle  = {{{textstyle|}}}
| text    = {{{text}}}
| small    = {{{small|}}}
| smallimage = {{{smallimage|}}}
| smallimageright = {{{smallimageright|}}}
| smalltext  = {{{smalltext|}}}
| subst    = {{{subst|}}}
| date    = {{{date|}}}
| name    = {{{name|}}}
}}<noinclude>[[分类:信息模板]]{{Documentation}}</noinclude>

於 2021年2月5日 (五) 23:12 的最新修訂

模板文檔[查看] [編輯] [歷史] [清除緩存]

本模板是一個可自動偵測其所在的名字空間,並自動選擇合適的模板。

本模板是用於多名字空間共用的模板的元模板,一般情況只需要使用模板:Ambox(適用於主空間),模板:Ombox(適用於主空間)。

語法

{{mbox
| demospace = {{{demospace|}}} / main / talk / file / category / other
| type  = speedy / delete / content / style / notice / move / protection
| image = 图片链接
| imageright = 右侧图片链接
| style = 样式
| textstyle  = 文本样式
| text  = 文字
| small = {{{small|}}} / left / yes
| smallimage = 小图片链接
| smallimageright = 小右侧图片链接
| smalltext  = 小文字
}}

上述文檔嵌入自Template:Mbox/doc(編輯 | 歷史)
您還可以檢視Rotaeno中文維基中該模板的模板文檔,如果存在對應的同版本模板的話。