模板:Userboxtop

維基新聞,自由的新聞源
Userboxtop
用戶框

用途[編輯]

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

使用方式[編輯]

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

[userboxes]

{{userboxbottom}}

所有參數都是選擇性的

個人化[編輯]

以下有一些詳細介紹

參數 數值範圍
對齊 向左, 置中, 或 向右 (預設值)
背景顏色 任何 網頁顏色 (name or #XXXXXX hex format). 預設值為#FFFFFF.
圍框顏色 任何 網頁顏色 (name or #XXXXXX hex format). 預設值為#99B3FF.
額外-css Allows you to provide additional CSS style information.
文字顏色 任何 網頁顏色 (name or #XXXXXX hex format). 預設值為#000000.
頂置文字 Overrides the standard {{Userboxes}} text and link. Can include 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–

#userboxes { display: none; }

參見[編輯]