2023年政策修订增补工作正在进行中,欢迎参与!
  • Moegirl.ICU:萌娘百科流亡社群 581077156(QQ),欢迎对萌娘百科运营感到失望的编辑者加入
  • Moegirl.ICU:账号认领正在试运行,有意者请参照账号认领流程

Template:Userboxtop

萌娘百科,万物皆可萌的百科全书!转载请标注来源页面的网页链接,并声明引自萌娘百科。内容不可商用。
跳转到导航 跳转到搜索
Userboxtop
用戶框
Template-info.svg 模板文档  [查看] [编辑] [历史] [刷新]

模板介紹

這個模板可以將好幾個用戶框和其連帶的圖片整理收集為一個整齊的區塊。這個模板功能不只限於用戶框,它也可以用來整理圖片以方便在條目中展示。

使用方法

{{userboxtop
| align = 
| backgroundcolor = 
| bordercolor = 
| extra-css =
| textcolor = 
| toptext = 
}}

[userboxes]

{{userboxbottom}}

所有參數都是選擇性的

本模板使用了hCard微格式標記,被標記的人物或地點資料可以被電腦分析讀取,以便将其自動归類,或者透過專門的瀏覽器取得資料訊息,例如將訊息加入通訊錄。關於在維基百科使用微格式的詳細訊息,請參見微格式維基專題

出生日期(bday)參數只能使用於包含了 {{Birth date and age}} 模板的信息框。

  • adr
  • bday
  • county-name
  • fn(必須)
  • geo
  • honorific-prefix
  • honorific-suffix
  • label
  • locality
  • nickname
  • note
  • org
  • role
  • vcard

請不要移除或重新命名這些class。

個人化

以下有一些詳細介紹

參數 數值範圍
align 对齐,left, middle, 或 right (預設值)
backgroundcolor 背景顏色,任何 網頁顏色(详见Help:颜色列表)(name or #XXXXXX hex format). 預設值為#FFFFFF.
bordercolor 圍框顏色,任何 網頁顏色(详见Help:颜色列表)(name or #XXXXXX hex format). 預設值為#99B3FF.
extra-css 額外-css,允许你增加额外的 CSS 样式信息.
textcolor 文字顏色,任何 網頁顏色(详见Help:颜色列表) (name or #XXXXXX hex format). 預設值為#000000.
toptext 頂置文字,Overrides the standard {{Userboxes}} text and link.可以包括 wiki-markup.

中間可插入新行以及重組分類。詳情可參看{{Userboxbreak}}。

隱藏用戶框

You can hide userboxes which utilize this (as well as a few other) forms of template-based userbox organization. Simply edit your userspace CSS override (for example, monobook.css for the Monobook skin) and add the following–

您可以隐藏使用这种(以及其他几种)基于模板的userbox组织形式的用户框。只需编辑您的用户空间CSS覆盖(例如,用于Monobook外观的monbook.css)并添加以下内容-

#userboxes { display: none; }

參見