「テンプレート:Infobox/rowhld」の版間の差分
提供: Yourpedia
(クラス設定の除去など) |
細 |
||
| 1行目: | 1行目: | ||
<noinclude><table> | <noinclude><table> | ||
| − | </noinclude><tr><th colspan="{{{colnum|2}}}" style="background-color: | + | </noinclude><tr><th colspan="{{{colnum|2}}}" style="background-color:transparent; {{{headerstyle|}}}">{{{header|}}}</th></tr> |
<tr style="vertical-align:top; {{{rowstyle|}}}"><th style="text-align:left; white-space:nowrap; {{{labelstyle|}}}">{{{label|}}}</th><td colspan="{{{datacolnum|1}}}" style="background-color:transparent; {{{datastyle|}}}">{{{data|}}}</td></tr><noinclude> | <tr style="vertical-align:top; {{{rowstyle|}}}"><th style="text-align:left; white-space:nowrap; {{{labelstyle|}}}">{{{label|}}}</th><td colspan="{{{datacolnum|1}}}" style="background-color:transparent; {{{datastyle|}}}">{{{data|}}}</td></tr><noinclude> | ||
</table> | </table> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
2018年5月27日 (日) 01:12時点における版
Infobox/rowhldはInfoboxを組成するためのテンプレートです。ヘッダ・ラベル付きデータ行作成用です。
引数一覧
{{Infobox/rowhld
|colnum=
|headerstyle=
|header=
|rowstyle=
|labelstyle=
|label=
|datacolnum=
|datastyle=
|data=
}}
既定値
- headerstyle - text-align:center; font-weight:bold; background-color:transparent
- rowstyle - vertical-align:top
- labelstyle - white-space:nowrap; text-align:left;font-weight:bold
- datastyle - text-align:left; background-color:transparent
- colnum - 2
- datacolnum - 1
使用例
常にtableの中で使用します。
- 入力例
<table>
{{Infobox/rowhld
|headerstyle= font-size:large; background-color:yellow
|header= header
|labelstyle= width:5em; background-color:orange
|label= label
|datastyle= width:15em; background-color:yellowgreen
|data= data<br />data<br />data
}}
</table>
- 出力例
| header | |
|---|---|
| label | data data data |
関連テンプレート
- {{Infobox}}
- {{Infobox/rowh}}
- {{Infobox/rowd}}
- {{Infobox/rowld}}
- {{Infobox/rowldd}}
- {{Infobox/rowhldd}}