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>