查看“模板:Box/doc”的源代码
←
模板:Box/doc
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
This template is to be used with fixed width objects to arrange them in a free "floating" fashion where they will take the least amount of vertical space by utilizing as much horizontal space as the individual "boxes" allows. There's also no limit to the amount of boxes you want to make with this, it can be anything from 2 to however many you want. But it does look bad if the objects/boxes are of different height. ==Variables== The structure is as follows '''<nowiki>{{box|</nowiki> '''''first variable''' | '''optional variable ('''padding=''','''padding-bottom=''','''margin-left=''','''margin-right=''') '''''<nowiki>}}</nowiki>''' *The first variable has three values you can set it to. ;start :Used for the first instance in the array. ;break :Used between two boxes. ;end :Used to end the array of boxes. *'''padding= / padding-bottom=''' Set this to any value with either pixels (for example 5px) or em sizes (for example 1em). *'''margin-left= / margin-right=''' Set this to any value with either pixels (for example 5px) or em sizes (for example 1em). ==Example== <pre> <nowiki>{{Box|start|padding=1em}} {| class="wikitable" width="400px" |<br /> |} {{Box|break|padding=1em}} {| class="wikitable" width="400px" |<br /> |} {{Box|break}} {| class="wikitable" width="400px" | |} {{Box|end}}</nowiki></pre> This code will become these three boxes below, displayed either in a single row a single column or 2 on one row and 1 on the next, depending on your browser window size. Also there's no need to use padding on the last break as nothing can come after it. {{Box|start|padding=1em}} {| class="wikitable" width="400px" |<br /> |} {{Box|break|padding=1em}} {| class="wikitable" width="400px" |<br /> |} {{Box|break}} {| class="wikitable" width="400px" |<br /> |} {{Box|end}}
本页使用的模板:
模板:Box
(
查看源代码
)
返回
模板:Box/doc
。
导航菜单
个人工具
中文(中国大陆)
创建账号
登录
命名空间
模板
讨论
大陆简体
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息