Template:Plain image with caption

Caption goes here.
Caption goes here.
テンプレートの解説[表示] [編集] [履歴] [キャッシュを破棄]

このテンプレートは、MediaWikiでは未対応の、フレームがない状態でキャプション付きの画像を表示する機能を提供します。

書式[編集]

パラメーターを明示
{{Plain image with caption|image=Example.svg|caption=Example text|upright=1.2|align=right|caption position=bottom}}
省略形
{{Plain image with caption|Example.svg|Example text|upright|right|bottom}}
  • 必須となるパラメーターはimageおよびcaptionのみです。
  • 省略形を使用する場合には、パラメーターの記入順に細心の注意を払ってください。
パラメーター 既定値 記入する値
image 必須 画像ファイル名(「ファイル:」や「File:」は省略可)
caption 必須 正しいWikiマークアップ
upright none 10進数(小数点以下の指定も可)
width none 幅のピクセル数(「px」は省略可)
height none 高さのピクセル数(「px」は省略可)
align right left(左)、center(中央)、right(右)、none(なし)
caption position bottom top(上)、bottom(下)
triangle none triangle(逆三角形マーカー)、none(なし)
triangle color #ff0080 CSSによるマーカーの色指定
image override 自由(画像部分を置換:複数画像を重ね合わせて表示する場合など)
caption override 自由(キャプション部分を置換)

使用例[編集]

triangleによりキャプションの文頭に逆三角形の色付きマーカーを表示します。

This is a picture of the James Webb Space Telescope.
This is a picture of the James Webb Space Telescope.

{{plain image with caption|James Webb Space Telescope Mirror37.jpg|caption=This is a picture of the [[ジェイムズ・ウェッブ宇宙望遠鏡|James Webb Space Telescope]].|align=left|caption position=top|triangle=triangle|triangle color=rgba(0,110,255,1)|upright=2}}

image-overrideにより複数画像を重ね合わせて表示する例。

Grana structure The prevailing model for granal structure is a stack of granal thylakoids linked by helical stromal thylakoids that wrap around the grana stacks and form large sheets that connect different grana.
The prevailing model for granal structure.

{{Plain image|File:Helical granum.png|'''Grana structure''' The prevailing model for [[グラナ|granal]] structure is a stack of granal [[チラコイド|thylakoids]] linked by helical [[ストロマ|stromal]] thylakoids that wrap around the grana stacks and form large sheets that connect different grana.|432px|left|top|triangle|#3cb14d|image override=<div style="float: right; position: relative; width: 432px; height: 432px;"> <div style="float: right; position: absolute; width: 432px;">[[File:Helical granum.png|432px]]</div> <div style="float: right; position: absolute; width: 432px;">[[File:Granum labels.svg|432px|The prevailing model for [[グラナ|granal]] structure.]]</div></div>}}

TemplateData[編集]

これはビジュアルエディターテンプレートウィザードにより使用されるテンプレートのためのTemplateData文書です。

Plain image with caption

フレームがない状態でキャプション付きの画像を表示するためのテンプレート。

テンプレートパラメーター[テンプレートデータを編集]

パラメーター説明状態
画像image 1

画像ファイル名

既定
文字列必須
キャプションおよび代替テキストcaption 2

画像の上部または下部に表示する文(代替テキストとしても使用)

既定
文字列必須
画像の拡大率upright

ログイン利用者が設定したサムネイル幅(既定値は220ピクセル)に対する拡大率

既定
0.75
文字列省略可能
画像の幅width 3

画像の幅のピクセル数(align=centerを指定する場合は必須)

既定
数値省略可能
画像の高さheight

画像の高さのピクセル数

数値省略可能
配置align 4

画面内でのテンプレートの配置(centerを指定する場合は同時にwidthの指定が必須)

既定
right
文字列省略可能
キャプションの位置caption position 5

画像に対するキャプションの位置

既定
bottom
文字列省略可能
逆三角形マーカーtriangle 6

キャプションの文頭に逆三角形マーカーを付加

既定
none
文字列省略可能
マーカーの色triangle color 7

CSSの構文でマーカーの色を指定

既定
#ff0080
文字列省略可能
画像指定の置換image override 8

HTMLの構文で標準的な画像指定の手順を置換

既定
文字列省略可能
キャプション指定の置換caption override 9

HTMLの構文で標準的なキャプション指定の手順を置換

既定
文字列省略可能

関連項目[編集]