LLWiki正在建设中,欢迎加入我们

“Template:Column-list”的版本间差异

来自LLWiki
跳转到导航 跳转到搜索
(创建页面,内容为“<noinclude>{{doc}}category:格式模板</noinclude><includeonly><!--</includeonly><syntaxhighlight lang="html+handlebars"> -->{{#if:{{{width|}}}||<div class="err…”)
 
第1行: 第1行:
<noinclude>{{doc}}[[category:格式模板]]</noinclude><includeonly><!--</includeonly><syntaxhighlight lang="html+handlebars">
<noinclude>{{doc}}[[category:列表模板]]</noinclude><includeonly><!--</includeonly><syntaxhighlight lang="html+handlebars">
-->{{#if:{{{width|}}}||<div class="error">未填写width参数,请检查窄屏显示效果。</div>}}<{{#vardefineecho:tag|{{#switch:{{{type|}}}|ul|*|#default=ul|ol|#=ol}}}} style="{{#if:{{{count|}}}|column-count:{{{count}}};|}}{{#if:{{{width|}}}|column-width:{{{width}}};|}}{{#if:{{{gap|}}}|column-gap:{{{gap}}};|}}">{{#fornumargs:num|val|<li>{{#var:val}}</li>}}</{{#var:tag}}><!--
-->{{#if:{{{width|}}}||<div class="error">未填写width参数,请检查窄屏显示效果。</div>}}<{{#vardefineecho:tag|{{#switch:{{{type|}}}|ul|*|#default=ul|ol|#=ol}}}} style="{{#if:{{{count|}}}|column-count:{{{count}}};|}}{{#if:{{{width|}}}|column-width:{{{width}}};|}}{{#if:{{{gap|}}}|column-gap:{{{gap}}};|}}">{{#fornumargs:num|val|<li>{{#var:val}}</li>}}</{{#var:tag}}><!--
</syntaxhighlight><includeonly>--></includeonly>
</syntaxhighlight><includeonly>--></includeonly>

2020年10月6日 (二) 03:36的版本

Template-info.png 模板文档

本模板用于将有序或无序列表分栏。

参数

参数 说明
type ul*对应无序列表,ol#对应有序列表;默认为无序列表
count 最大栏数
width 最小栏宽;为保障窄屏显示效果,这是一个必需参数
gap 栏间距;建议省略使用默认值
匿名参数 列表内容,依序填写

示例

{{column-list|type=#|width=220px
|这是第一项
|这是第二项
|这是第三项
|这是第四项
|依此类推
}}
  1. 这是第一项
  2. 这是第二项
  3. 这是第三项
  4. 这是第四项
  5. 依此类推

<syntaxhighlight lang="html+handlebars"> -->

未填写width参数,请检查窄屏显示效果。

    </includeonly>