「テンプレート:Side box/doc」の版間の差分
提供: Yourpedia
細 (-tmp) |
(条件文除いた版対応) |
||
| 1行目: | 1行目: | ||
| − | + | '''Side box'''テンプレートは、tableを使って画像と文章を組合わせたテンプレートを作成するためのメタテンプレートです。Wikipediaの同名のテンプレートとの互換用に作成しました。 | |
| − | + | ||
| − | === | + | == 引数 == |
| − | *{{ | + | *position |
| − | *{{ | + | :tableの位置を指定します。既定値は中央揃えです。<code>left</code>と指定すると左寄せになります。 |
| − | + | *class | |
| − | *{{ | + | :tableのclass |
| − | *{{ | + | *style |
| − | + | :tableのstyle | |
| − | + | *id | |
| + | :tableのid | ||
| + | *image | ||
| + | :上段左側に表示する画像 | ||
| + | *textstyle | ||
| + | :文章全般のstyle | ||
| + | *text | ||
| + | :上段中央に表示する文章 | ||
| + | *imageright | ||
| + | :上段右側に表示する画像 | ||
| + | *below | ||
| + | :下段に表示する文章 | ||
| + | |||
| + | ==使用例== | ||
| + | === 基本 === | ||
| + | *入力 | ||
| + | <pre><nowiki>{{Side box | ||
| + | |image= 画像A<br / >画像A<br / >画像A | ||
| + | |text=文章A<br / > | ||
| + | |imageright=画像B | ||
| + | |below= 文章B | ||
| + | }}</nowiki></pre> | ||
| + | *出力 | ||
| + | {{Side box | ||
| + | |image= 画像A<br / >画像A<br / >画像A | ||
| + | |text=文章A | ||
| + | |imageright=画像B | ||
| + | |below= 文章B | ||
| + | }} | ||
| + | === オプション === | ||
| + | *入力 | ||
| + | <pre><nowiki>{{Side box | ||
| + | |position= left | ||
| + | |style= font-weight:bold; background-color:#FFFFCC | ||
| + | |textstyle= vertical-align:bottom; text-align:right; background-color:#CCFFCC | ||
| + | |image= 画像A<br / >画像A<br / >画像A | ||
| + | |text=文章A<br / > | ||
| + | |imageright=画像B | ||
| + | |below= 文章B | ||
| + | }}</nowiki></pre> | ||
| + | *出力 | ||
| + | {{Side box | ||
| + | |position= left | ||
| + | |style= font-weight:bold; background-color:#FFFFCC | ||
| + | |textstyle= vertical-align:bottom; text-align:right; background-color:#CCFFCC | ||
| + | |image= 画像A<br / >画像A<br / >画像A | ||
| + | |text=文章A | ||
| + | |imageright=画像B | ||
| + | |below= 文章B | ||
| + | }} | ||
=== 関連項目 === | === 関連項目 === | ||
* {{lts|Ambox-mini}} | * {{lts|Ambox-mini}} | ||
* {{lts|Sister}} | * {{lts|Sister}} | ||
| + | * {{lts|Ombox}} | ||
| + | * {{lts|ウィキプロジェクトリンク}} | ||
| + | |||
| + | <noinclude> | ||
| + | [[Category:テンプレート文書]] | ||
| + | </noinclude> | ||
<includeonly> | <includeonly> | ||
{{DEFAULTSORT:{{PAGENAME}}}} | {{DEFAULTSORT:{{PAGENAME}}}} | ||
[[Category:メタテンプレート]] | [[Category:メタテンプレート]] | ||
| + | *[[:wiki:eo:Ŝablono:Flanka kesto]] | ||
| + | *[[:wiki:hsb:Předłoha:Bóčny kašćik]] | ||
[[en:Template:Side box]] | [[en:Template:Side box]] | ||
| − | |||
| − | |||
</includeonly> | </includeonly> | ||
2018年5月20日 (日) 10:35時点における版
Side boxテンプレートは、tableを使って画像と文章を組合わせたテンプレートを作成するためのメタテンプレートです。Wikipediaの同名のテンプレートとの互換用に作成しました。
引数
- position
- tableの位置を指定します。既定値は中央揃えです。
leftと指定すると左寄せになります。
- class
- tableのclass
- style
- tableのstyle
- id
- tableのid
- image
- 上段左側に表示する画像
- textstyle
- 文章全般のstyle
- text
- 上段中央に表示する文章
- imageright
- 上段右側に表示する画像
- below
- 下段に表示する文章
使用例
基本
- 入力
{{Side box
|image= 画像A<br / >画像A<br / >画像A
|text=文章A<br / >
|imageright=画像B
|below= 文章B
}}
- 出力
| 画像A 画像A 画像A | 文章A | 画像B |
| 文章B | ||
オプション
- 入力
{{Side box
|position= left
|style= font-weight:bold; background-color:#FFFFCC
|textstyle= vertical-align:bottom; text-align:right; background-color:#CCFFCC
|image= 画像A<br / >画像A<br / >画像A
|text=文章A<br / >
|imageright=画像B
|below= 文章B
}}
- 出力
| 画像A 画像A 画像A | 文章A | 画像B |
| 文章B | ||