跳转到内容

维基百科:用戶框

维基百科,自由的百科全书

这是本页的一个历史版本,由61.62.14.106留言2006年3月19日 (日) 16:12 See also编辑。这可能和当前版本存在着巨大的差异。

用户框可以是这样。
也可以是这样。
或两边皆有。File:Crystal ark.png

用戶框是用戶用來介紹自己的顯示框,是巴別顯示框的延伸。維基共享資源有很多圖片給用戶放入用戶框內。

用戶框用途包括介紹用戶興趣、技能、技術資訊、活動,或者樂趣等等。有四類型userbox模板。用戶框例子在右上顯示。

您能夠使用四種模板來創造您自己的用戶框,或使用現有的userboxes模板。

如果您想創建新模板,您應該先閲讀下方的如何創建一個用戶框

现存的用戶框

文化

語言

個人狀態

兴趣爱好

生活取向

Wikipedia Users

其他用戶框

Note to Editors

  • If a userbox does not belong in a category, please note its removal in your edit summary, and re-add the box to its appropiate category.
  • Issues concerning point of view and political correctness in userboxes have yet been resolved, so do not use this as criteria for deletion.
  • If there is a userbox that does not belong here, please list it on Wikipedia:Templates_for_deletion. Do not orphan or speedy delete these boxes until a consensus has been reached. To do so will only cause more controversy.

如何創建一個用戶框

建立一个用户框前

  • 通过浏览上面的分类列表,检查并确实你要建立的用户框还没有建立过。
  • 如果你希望将你的用户框做成模板(并阵列在上面分类中),先评估一下你的用户框是否必要。

用户框命名

  • 所有的用户框类模板必须加上User的前缀
  • 命名模板时,尽量让名称明确。像{{User code}}这样的名称可以代表很多事物,而 {{User Lost(TV Series)}}就更合适一些。

替换注意事项

  • 当你将用户框存为模板时,必须使用subst:前缀来转换模板代码为Wiki标记, 也就是使用{{subst:userbox|...}}。参看avoid using meta templates
  • 你愿意的话,也可以在你的用户页上完成这些。

内容

  • 用户框分布在用户页的内容中,因此,请遵循维基百科的关于用户页的指导方针
  • 如果你选择放置一张图像在用户框中,确保它的版权是自由的。维基百科的政策是不允许模板或用户页有版权作品在上面。版权作品的合理引用不允许出现在模板中,请参看维基百科合理使用指导方针获得更多信息。
  • 模板空间的所有内容要符合礼节

用户框的设计

There are a number of box types to select from when deciding to make a userbox. The most commonly used design is the "Standard box". It has one square shaped area on the left ("id") and a rectangular area on the right ("info").

For ease of use, userboxes are made using maker-templates that have a number of parameters. Once the maker-template is saved, it is automatically transformed to HTML. See #A note on substitution: above.

Template Parameters Meaning Value type
border-c The border color of the userbox CSS color value (#hex or color name)
border-s The border size of the userbox Width in pixels
id-c The background color of the id box CSS color value
id-s The font size of the id box Size in PostScript points
id-fc The font color of the id box text CSS color value
info-c The background color of info box CSS color value
info-s The font size of info box Size in PostScript points
info-fc The font color of info box CSS color value
id This is the content of the id box Text
info This is the content of info box Text

Userbox types

Code Appearance
Standard box
{{Userbox
  |border-c = #000
  |border-s = 1
  |id-c     = #fff
  |id-s     = 12
  |id-fc    = #000
  |info-c   = #039
  |info-s   = 8
  |info-fc  = #fff
  |id       = ID
  |info     = info box content
}}

or {{Userbox|side-box colour|main box colour|side-box content|main box content}}

IDinfo box content
Reverse box
{{Userbox-r
  |border-c = #000
  |border-s = 1
  |id-c     = #fff
  |id-s     = 12
  |id-fc    = #000
  |info-c   = #039
  |info-s   = 8
  |info-fc  = #fff
  |id       = ID
  |info     = info box content
}}

or {{Userbox-r|side-box colour|main box colour|side-box content|main box content}}

info box contentID
Double box
{{Userbox-2
  |border-c = #000
  |border-s = 1
  |id1-c    = #fff
  |id1-s    = 12
  |id1-fc   = #000
  |id2-c    = #000
  |id2-s    = 12
  |id2-fc   = #fff
  |info-c   = #039
  |info-s   = 8
  |info-fc  = #fff
  |id1      = ID 1
  |id2      = ID 2
  |info     = info box content
}}

or {{Userbox-2|side-box 1 color|main box color|side-box 1 content|message|side-box 2 content|border color|side-box 2 color|main box font-color|box border thickness}}
Note: If omitted, border color and side-box 2 color default to the same color as side-box 1, and font color is black. Default border thickness is 1.

ID 1info box contentID 2
Mini box
{{Userbox-m
  |border-c = #000
  |border-s = 1
  |id-c     = #fff
  |id-s     = 12
  |id-fc    = #000
  |id       = ID
}}

or {{Userbox-m|box color|box content}}

ID

Grouping userboxes

Example 1
这位用户是一位维基人
这位用户是一位维基人

Template:User browser Template:User Rome Template:User friendly

As with the Babel box, there is a box to group userboxes together. Just make a list of userboxes with {{Boxboxtop|box-name}} at the top and {{Boxboxbottom}} at the bottom. For example, the box to the right is created using the following list:

{{Boxboxtop|Example 1}}
{{User wikipedia|administrator}}
{{User wikipedia|welcoming committee}}
{{User browser}}
{{User Rome}}
{{User friendly}}
{{Boxboxbottom}}

You may also change the alignment by using 'right' or 'left' as the 2nd parameter, or explicitly using parameter align. Thus, it is possible to create the same boxbox on the right, but positioned on the left side of the page, by changing the the first line from {{Boxboxtop|Example 1}} to {{Boxboxtop|Example 1|left}}.

The actual Babel grouping system can also be used, e.g. {{Babel-4|sv|no-4|browser|rome}}. However, it only works for user boxes with a "User "-prefix, which must then be dropped for the arguments. Also, boxes that need arguments of their own can not be used with Babel, e.g. {{User wikipedia|administrator}}.)

參看

Wikipedia:UBS