テンプレートの解説 この
解説は
テンプレート:Div col/docから
読み
込まれています。
(編 | 歴)編集する方へ: テンプレート本体をカテゴリに入れず、代わりに解説ページの<includeonly></includeonly>
内に記述してください。
{{#switch: {{BASEPAGENAME}}
|Div col=<templatedata>
{
"description": "
一覧をいくつかの
列に
自動的に
等分に
割ります。わざわざ
手動で
幅を
決める
必要はありません。
引数「 |content=」または{{div col end}}で
指定の
終わりを
指定します。",
"params": {
"colwidth": {
"label": "Column width",<!--
列幅 -->
"description": "
列の
幅を
指定すると、
表示する
画面の
幅から
割り
出して、
列の
数が
自動で
決まります。
大画面ほど
列の
数が
増えることになります。",
"type": "string",
"example": "30em"
},
"rules": {
"label": "Rules",<!--
縦の
罫線 -->
"description": "「yes」に
設定すると、
列の
間に
垂直の
罫線を
引きます。",
"type": "string",
"example": "yes"
},
"gap": {
"label": "Gap size",<!--
余白 -->
"description": "
隣接する2
列の
間に
設ける
余白を
指定します。",
"type": "string",
"example": "2em"
},
"class": {
"label": "HTML class",<!-- HTMLクラス -->
"description": "
任意のクラス、または
複数のクラスを
空白(スペース)で
区切って
指定します。",
"type": "string",
"example": "plainlist nowrap"
},
"style": {
"label": "CSS style",<!-- CSS スタイル -->
"description": "
書式をいずれもカスタムに
指定します。",
"type": "string",
},
"content": {
"label": "Content",<!--
内容 -->
"description": "どのコンテンツを
列に
分割するか
指定します。",
"type": "content"
},
"small": {
"label": "Small font",<!--
縮小文字 -->
"description": "
文字を
縮小します(90%)",
"example": "yes",
"type": "string"
}
}
}
</templatedata>
|Div col end=<templatedata>
{
"description": "{{div col}}で
開始した
複数列の
一覧を
終了します。パラメータは
使いません。",<!-- "Ends a multi-column list started by {{div col}}. It takes no parameters.", -->
"params": {
}
}
</templatedata>
}}
テンプレート用のサンドボックス(編集| 差分)とテストケース(作成)を使用できます。