コンテンツにスキップ
サイドバーの切り替え
検索
日本語
アカウント作成
個人用ツール
アカウント作成
ログイン
ログアウトした編集者のページ
もっと詳しく
トーク
投稿記録
案内
メインページ
人気のページ
利用規約
最近の出来事
最近の更新
おまかせ表示
お問い合わせ
ツール
リンク元
関連ページの更新状況
特別ページ
ページ情報
他言語版
「
テンプレート:Multiple image/doc
」を編集中 (節単位)
テンプレート
議論
日本語
閲覧
ソースを編集
履歴表示
その他
閲覧
ソースを編集
履歴表示
警告:
ログインしていません。編集を行うと、あなたの IP アドレスが公開されます。
ログイン
または
アカウントを作成
すれば、あなたの編集はその利用者名とともに表示されるほか、その他の利点もあります。
スパム攻撃防止用のチェックです。 けっして、ここには、値の入力は
しない
でください!
==Syntax and parameters== Provide ''height[n]'' and ''total_width'' parameters to obtain automatic resizing. Note the different meanings of the ''width[n]'' parameters with vs. without automatic resizing. Please also note the option to set a ''total_width'' parameter at the beginning of the ''multiple image'' template. ;Automatic resizing of all images to the same height and to a given total width :<syntaxhighlight lang="wikitext"> {{Multiple image|total_width = 600 <!-- Layout parameters --> | align = <!-- right (default), left, center, none --> | direction = <!-- horizontal (default), vertical --> | background color = <!-- box background as a 'hex triplet' web color prefixed by # e.g. #33CC00 --> | width = <!-- displayed width of each image in pixels (an integer, omit "px" suffix); overrides "width[n]"s below --> | caption_align = <!-- left (default), center, right --> | image_style = <!-- border:1; (default) --> | image_gap = <!-- 5 (default)--> <!-- Header --> | header_background = <!-- header background as a 'hex triplet' web color prefixed by # e.g. #33CC00 --> | header_align = <!-- center (default), left, right --> | header = <!-- header text --> <!--image 1--> | image1 = <!-- filename only, i.e. without "File:" or "Image:" prefix --> | width1 = <!-- displayed width of image; overridden by "width" above --> | alt1 = | link1 = | thumbtime1 = | caption1 = <!--image 2--> | image2 = <!-- filename only, i.e. without "File:" or "Image:" prefix --> | width2 = <!-- displayed width of image; overridden by "width" above --> | alt2 = | link2 = | thumbtime2 = | caption2 = <!-- and so on, to a maximum of 10 images (image10) --> <!-- Footer --> | footer_background = <!-- footer background as a 'hex triplet' web color prefixed by # e.g. #33CC00 --> | footer_align = <!-- left (default), center, right --> | footer = <!-- footer text --> }} </syntaxhighlight> ;No automatic resizing of all images to the same height :<syntaxhighlight lang="wikitext"> {{multiple image <!-- Layout parameters --> | align = <!-- right (default), left, center, none --> | direction = <!-- horizontal (default), vertical --> | background color = <!-- box background --> | total_width = <!-- total width of all the displayed images in pixels (an integer, omit "px" suffix) --> | caption_align = <!-- left (default), center, right --> <!-- Header --> | header_background = | header_align = <!-- center (default), left, right --> | header = <!--image 1--> | image1 = <!-- filename only, i.e. without "File:" or "Image:" prefix --> | alt1 = | link1 = | thumbtime1 = | caption1 = <!--image 2--> | image2 = <!-- filename only, i.e. without "File:" or "Image:" prefix --> | alt2 = | link2 = | thumbtime2 = | caption2 = <!-- and so on, to a maximum of 10 images (image10) --> <!-- Footer --> | footer_background = | footer_align = <!-- left (default), center, right --> | footer = }} </syntaxhighlight> {| class=wikitable ! Parameter !! Description |- | align || right ''(default)'', left, center |- | direction || horizontal ''(default)'', vertical |- | background color || To set [[List of colors|the background color]] of the box in which the images appear. |- | header_background || |- | header_align || center ''(default)'', left, right |- | header || |- | width || Use to set the same width for each image (i.e. overrides any {{mono|width[n]}} below). Do not include if different image widths intended, including if images are to be resized to a fixed total width. |- | total_width || Use to scale the images to the same height and this total width. Do not use both {{mono|total_width}} and {{mono|width}}. |- | image''[n]'' || (where ''[n]'' = 1 to 10) Filename of [n]th image. |- | width''[n]'' || ''(as above)'' Two meanings: (1) The width (in pixels, integer, omit "px") of [n]th image. Overridden by {{mono|width}} (if set). (2) The full width of the original [n]th image if {{mono|total_width}} is given in order to resize all images to the same height and a given total width. |- | height''[n]'' || ''(as above)'' The full height of the original [n]th image if {{mono|total_width}} is given in order to resize all images to the same height and a given total width. Ignored otherwise. |- | alt''[n]'' || ''(as above)'' [[WP:ALT|Alt description]] for [n]th image. |- | link''[n]'' || ''(as above)'' The page linked to the [n]th image (i.e. the page that is loaded when the image is clicked). * If this parameter is omitted altogether, the image will link to its [[image description page]] as usual (<u>this is by far the most common usage case</u>). * If this parameter is present but left empty (i.e. {{mono|<nowiki>...|link1= |...</nowiki>}}), the image will not link to anything – this should be the case only for purely decorative images per [[WP:ALT]]. * '''Important:''' If the image is under a [[free license]] (such as the [[GNU Free Documentation License|GDFL]] or a free [[Creative Commons license|CC license]]), the terms of such license require the license, or a link to it, to be reproduced with the image. The image '''must''', therefore, link to its image description page, which can be achieved simply by omitting the link[n] parameter from the template as mentioned. Public domain and (theoretically) non-free use images are not subject to this restriction. |- | thumbtime''[n]'' || ''(as above)'' When using video files, sets the time within the video that is used for the initial display. This is either a number of seconds or hours:minutes:seconds; see [[:commons:Commons:Video#Setting a video thumbnail image]]. |- | caption''[n]'' || ''(as above)'' Caption for the [n]th image. |- | caption_align || left ''(default)'', center, right |- | footer_background || |- | footer_align || left ''(default)'', center, right |- | footer || Caption that spans the entire box, as opposed to individual images. Avoid "left" and "right" if possible, since mobile devices may [[#Using direction|display the images vertically]]. |}
編集内容の要約:
Wikiminatiへの投稿はすべて、クリエイティブ・コモンズ 表示-継承 (詳細は
Wikiminati:著作権
を参照)のもとで公開したと見なされることにご注意ください。 自分が書いたものが他の人に容赦なく編集され、自由に配布されるのを望まない場合は、ここに投稿しないでください。
また、投稿するのは、自分で書いたものか、パブリック ドメインまたはそれに類するフリーな資料からの複製であることを約束してください。
著作権保護されている作品は、許諾なしに投稿しないでください!
編集を中止
編集の仕方
(新しいウィンドウで開きます)