Template:Hlist
{{hlist}}は、横並べのリストを生成するテンプレートで、パラメータ指定することでリストの項目ごと含�…
| Luaモジュールを使用しています: |
| このテンプレートはテンプレートスタイルを使用しています: |
{{hlist}}は、横並べのリストを生成するテンプレートで、パラメータ指定することでリストの項目ごと含めて追加のCSS指定が可能です。{{hlist-comma}}を使用すると区切り文字が日本語の読点「、」になります。英字であってもコンマ(,)にはなりません。
使用法
基本的
{{hlist|1項目目|2項目目|3項目目|...}}
全パラメータ
{{hlist
|1項目目|2項目目|3項目目|...
|class = クラス指定
|style = 全体のCSS指定
|list_style = ulタグのCSS指定
|item_style = 全liタグのCSS指定
|item1_style = 最初のliタグに対するCSS指定 |item2_style = 2番目のliタグに対するCSS指定 |...
|indent = リストのインデント
}}
パラメータ
- 名前なしパラメータ (
1,2,3...) - リストの項目。指定がない箇所は表示されない。 class- リスト全体で適用される<div>...</div>タグのカスタムクラス。例としてplainlinksなど。style- リスト全体で適用される<div>...</div>タグのカスタムCSS。例としてfont-size: 90%;など。list_style- リストで適用される<ul>...</ul>タグのカスタムCSS。|style=パラメータと指定方法は同じ。item_style- リストの全項目部(<li>...</li>タグ)で適用されるカスタムCSS。|style=パラメータと指定方法は同じ。item1_style,item2_style,item3_style... - リストの各項目に適用されるカスタムCSS。|style=パラメータと指定方法は同じ。indent- リストのインデントを指定。入力例は2など。em単位かつ指定された値の1.6倍で計算される。指定がない場合既定値として0となる。
使用例
| 入力 | 表示 |
|---|---|
{{hlist|entry1|entry2|entry3|entry4|entry5|entry6|entry7|entry8|entry9}}
|
|
{{hlist|優勝|準優勝|第3位|item_style=color:blue;}}
|
|
{{hlist|優勝|準優勝|第3位|item_style=color:blue;|indent=2}}
|
|
{{hlist|優勝|準優勝|第3位|item1_style=background-color:yellow;|item2_style=background-color:silver;}}
|
|
関連項目
- {{リスト}} · {{番号付きリスト}} · {{定義リスト}} - Wiki記法の代替
- {{Bulleted list}} - ビュレット付きのリスト
- {{Unbulleted list}} · {{Plainlist}} · {{Indented plainlist}} · {{Unbulleted indent list}} - 装飾のない縦並びのリスト
- {{Hlist}} · {{Flatlist}} - 中黒で項目が分割される横並びのリスト
- {{Hlist-comma}} - 読点 ( 、 ) で項目が分割される横並びのリスト
- {{Ordered list}} - 番号付きの縦並びのリスト
- {{Pagelist}} - 内部リンクのリスト
- {{Columns-list}} - 段組み形式のリスト(ビュレット付き、番号付き、装飾なし)
- モジュール:List - 大本のLuaモジュール
- WP:HLIST
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.