←模板:网格/doc欢迎来到Undertale社区维基(*`∀´*)ノ亻,如果想要参与条目创建或编辑,请先登录哦因为以下原因,您没有权限编辑该页面: 您请求的操作仅限属于该用户组的用户执行:用户 您可以查看和复制此页面的源代码。 == 简介 == 本模板用于生成一个用于横向排版的网格。<br> 本模板将完整的横向内容区域划分为12个格子。 == 参数 == {| class="wikitable doc" |- ! 参数名 ! 说明 |- |匿名函数1~12 |各个格子的显示内容 |- |占列1~占列12 |控制各个格子分别占列的列数 |- |占列 |如果不指定具体格子的列数,则以这个值作为占列列数<br>模板生成的格子数=<code>12/这个值,向上取整</code> |- |center |如果为1,则每个格子内容在每个格子内横向居中 |} == 示例 == <code><nowiki>{{网格|<div style{{=}}"background: #0000ff;">6/12</div>|<div style{{=}}"background: #ff0000;">6/12</div>|占列=6|center=1}}</nowiki></code> {{网格|<div style{{=}}"background: #0000ff;">6/12</div>|<div style{{=}}"background: #ff0000;">6/12</div>|占列=6|center=1}} <code><nowiki>{{网格|<div style{{=}}"background: #0000ff;">3/12</div>|<div style{{=}}"background: #ff0000;">9/12</div>|1占列=3|2占列=9|占列=6|center=1}}</nowiki></code> {{网格|<div style{{=}}"background: #0000ff;">3/12</div>|<div style{{=}}"background: #ff0000;">9/12</div>|1占列=3|2占列=9|占列=6|center=1}} <code><nowiki>{{网格|<div style{{=}}"background: #0000ff;">3/12</div>|<div style{{=}}"background: #ff0000;">3/12</div>|1占列=3|2占列=3|占列=6|center=1}}</nowiki></code> {{网格|<div style{{=}}"background: #0000ff;">3/12</div>|<div style{{=}}"background: #ff0000;">3/12</div>|1占列=3|2占列=3|占列=6|center=1}} 该页面使用的模板: 模板:网格(查看源代码)返回模板:网格/doc。