「Template:Stereo image」の版間の差分
表示
削除された内容 追加された内容
Category:画像関連のテンプレートが混然としているので通常記事空間へのレイアウト配置系を独立・整理 |
m Bot作業依頼: collapsibleとcollapsedクラスをmw-collapsibleとmw-collapsedに置換する (insource:/class=\"collaps/) - log |
||
1行目: | 1行目: | ||
{| class="infobox" border="0" cellpadding="0" cellspacing="0" |
{| class="infobox" border="0" cellpadding="0" cellspacing="0" |
||
|<table class="collapsible" border="0" cellpadding="0" cellspacing="0" width="100%"><tr style="background-color:#cccccc;text-align:center;">ステレオグラム</tr></table> |
|<table class="mw-collapsible" border="0" cellpadding="0" cellspacing="0" width="100%"><tr style="background-color:#cccccc;text-align:center;">ステレオグラム</tr></table> |
||
|- |
|- |
||
|<table class="collapsible collapsed" border="0" cellpadding="0" cellspacing="0" width="100%"><tr style="background-color:#cccccc;"><th style="text-align:center;">{{#ifeq:{{{swap|0}}}|0|左|未右}}側</th></tr><tr><td align="center"><div style="position:relative; width:{{#expr:{{{width|200}}}/2}}px; height:{{{height|100}}}px; padding:0; overflow:hidden;"><div style="position:absolute; left:0; top:0;">[[File:{{{image|World_Ocean_Current.ja.jpg}}}|{{{width|200}}}px|]]</div></div></td></tr></table> |
|<table class="mw-collapsible mw-collapsed" border="0" cellpadding="0" cellspacing="0" width="100%"><tr style="background-color:#cccccc;"><th style="text-align:center;">{{#ifeq:{{{swap|0}}}|0|左|未右}}側</th></tr><tr><td align="center"><div style="position:relative; width:{{#expr:{{{width|200}}}/2}}px; height:{{{height|100}}}px; padding:0; overflow:hidden;"><div style="position:absolute; left:0; top:0;">[[File:{{{image|World_Ocean_Current.ja.jpg}}}|{{{width|200}}}px|]]</div></div></td></tr></table> |
||
|- |
|- |
||
|<table class="collapsible" border="0" cellpadding="0" cellspacing="0" width="100%"><tr style="background-color:#cccccc;"><th style="text-align:center;">{{#ifeq:{{{swap|0}}}|0|右|左}}側</th></tr><tr><td align="center"><div style="position:relative; width:{{#expr:{{{width|200}}}/2}}px; height:{{{height|100}}}px; top:0; left:0; padding:0; overflow:hidden;"><div style="position:absolute; left:-{{#expr:{{{width|200}}}/2}}px; top:0;">[[File:{{{image|World_Ocean_Current.ja.jpg}}}|{{{width|200}}}px|]]</div></div></td></tr></table> |
|<table class="mw-collapsible" border="0" cellpadding="0" cellspacing="0" width="100%"><tr style="background-color:#cccccc;"><th style="text-align:center;">{{#ifeq:{{{swap|0}}}|0|右|左}}側</th></tr><tr><td align="center"><div style="position:relative; width:{{#expr:{{{width|200}}}/2}}px; height:{{{height|100}}}px; top:0; left:0; padding:0; overflow:hidden;"><div style="position:absolute; left:-{{#expr:{{{width|200}}}/2}}px; top:0;">[[File:{{{image|World_Ocean_Current.ja.jpg}}}|{{{width|200}}}px|]]</div></div></td></tr></table> |
||
|- |
|- |
||
|<table class="collapsible collapsed" border="0" cellpadding="0" cellspacing="0" width="100%"><tr style="background-color:#cccccc;"><th style="text-align:center;">{{#ifeq:{{{swap|0}}}|0|並列|内斜}}視野{{stereogram guide|wall}}</th></tr><tr><td align="center"><div style="position:relative; width:{{{width|200}}}px; height:{{{height|100}}}px; padding:0; overflow:hidden;"><div style="position:absolute; left:0; top:0;">[[File:{{{image|World_Ocean_Current.ja.jpg}}}|{{{width|200}}}px|]]</div></div></td></tr></table> |
|<table class="mw-collapsible mw-collapsed" border="0" cellpadding="0" cellspacing="0" width="100%"><tr style="background-color:#cccccc;"><th style="text-align:center;">{{#ifeq:{{{swap|0}}}|0|並列|内斜}}視野{{stereogram guide|wall}}</th></tr><tr><td align="center"><div style="position:relative; width:{{{width|200}}}px; height:{{{height|100}}}px; padding:0; overflow:hidden;"><div style="position:absolute; left:0; top:0;">[[File:{{{image|World_Ocean_Current.ja.jpg}}}|{{{width|200}}}px|]]</div></div></td></tr></table> |
||
|- |
|- |
||
|<table class="collapsible collapsed" border="0" cellpadding="0" cellspacing="0" width="100%"><tr style="background-color:#cccccc;"><th style="text-align:center;">{{#ifeq:{{{swap|0}}}|0|内斜|並列}}視野{{stereogram guide|cross}}</th></tr><tr><td align="center"><div style="position:relative; width:{{{width|200}}}px; height:{{{height|100}}}px; padding:0; overflow:hidden;"><div style="position:absolute; left:-{{#expr:{{{width|200}}}/2}}px; top:0;">[[File:{{{image|World_Ocean_Current.ja.jpg}}}|{{{width|200}}}px|]]</div><div style="position:absolute; left:{{#expr:{{{width|200}}}/2}}px; top:0;">[[File:{{{image|World_Ocean_Current.ja.jpg}}}|{{{width|200}}}px|]]</div></div></td></tr></table> |
|<table class="mw-collapsible mw-collapsed" border="0" cellpadding="0" cellspacing="0" width="100%"><tr style="background-color:#cccccc;"><th style="text-align:center;">{{#ifeq:{{{swap|0}}}|0|内斜|並列}}視野{{stereogram guide|cross}}</th></tr><tr><td align="center"><div style="position:relative; width:{{{width|200}}}px; height:{{{height|100}}}px; padding:0; overflow:hidden;"><div style="position:absolute; left:-{{#expr:{{{width|200}}}/2}}px; top:0;">[[File:{{{image|World_Ocean_Current.ja.jpg}}}|{{{width|200}}}px|]]</div><div style="position:absolute; left:{{#expr:{{{width|200}}}/2}}px; top:0;">[[File:{{{image|World_Ocean_Current.ja.jpg}}}|{{{width|200}}}px|]]</div></div></td></tr></table> |
||
|- |
|- |
||
|style="width:{{#expr:{{{width|200}}}/2}}px"|{{{caption|}}} |
|style="width:{{#expr:{{{width|200}}}/2}}px"|{{{caption|}}} |
2021年8月8日 (日) 22:53時点における最新版
ステレオグラム | ||
| ||
| ||
| ||
| ||
![](http://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
使用法
ステレオグラム | ||
| ||
| ||
| ||
| ||
キャプション |
ステレオグラムやオートステレオグラムを表示するためのテンプレートで最初に別々の枠(1つの画像のちょうど半分を表示)を、次に並列もしくは内斜の視野(それぞれ半分の画像を入れ替える)を表示する構成。
パラメータは"image"、"caption"、"width"、"height"、"swap"
{{stereo image
|image = PSM V21 D047 Left and right projection of a cone.jpg
|caption = caption
|width = 320
|height = 145
|swap = <!-- set this if source image is cross-view, otherwise parallel is assumed -->
}}
表示例は右側
関連項目
- {{Stereogram guide}}