「テンプレート:Side box」の版間の差分
提供: Yourpedia
								
												
				 (ページの作成:「<table class="mbox-small{{#ifeq:{{lc:{{{position|}}}}}|left|-left}} {{{class|}}}" style="border:1px solid #aaa; background-color:#f9f9f9; {{{style|}}}" {{#if:{{{id|}}}|id=...」)  | 
				 (条件文除去した版)  | 
				||
| 1行目: | 1行目: | ||
| − | <table class="mbox-small  | + | <includeonly><table class="mbox-small{{lc:{{{position|}}}}} {{{class|}}}" style="border:1px solid #aaa; background-color:#f9f9f9; {{{style|}}}" id="{{{id|}}}"}}>  | 
| − | <tr>  | + | <tr><td class="mbox-image">{{{image|}}}</td><td class="mbox-text" style="{{{textstyle|}}}"> {{{text|}}} </td><td class="mbox-imageright">{{{imageright|}}}</td></tr>  | 
| − | + | <tr><td colspan="3" class="mbox-text" style="{{{textstyle|}}}"> {{{below|}}} </td></tr>  | |
| − | + | </table></includeonly><noinclude>  | |
| − | + | ||
| − | + | ||
| − | <td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>  | + | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | </tr>  | + | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | </table><noinclude>  | + | |
{{Documentation}}  | {{Documentation}}  | ||
</noinclude>  | </noinclude>  | ||
2018年5月20日 (日) 10:37時点における版
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 | ||