「テンプレート:Infobox画像スライダー」の版間の差分
(ページの作成:「<includeonly><div class="ts-infobox-slider"><div class="ts-infobox-slider__track" tabindex="0">{{#if:{{{画像1|}}}|<div class="ts-infobox-slider__slide"><div class="ts-infobox-slider__imagebox"><img src="{{{画像1}}}" alt="{{{alt1|}}}" loading="lazy" decoding="async"></div>{{#if:{{{説明1|{{{出典1|}}}}}}|<div class="ts-infobox-slider__caption">{{{説明1|}}}{{#if:{{{出典1|}}}|<br><span class="ts-infobox-slider__source">出典:{{{出典1}}}</span>}}</div>}}</d…」) |
(相違点なし)
|
2026年9月2日 (水) 10:16時点における版
Infobox画像スライダーは、既存のInfoboxテンプレートを変更せず、画像引数の中に複数の外部画像を横スライド形式で表示するためのテンプレートです。
使用例
{{登場人物
|画像1 = {{Infobox画像スライダー
|画像1=https://example.com/image1.jpg
|alt1=レイン
|説明1=[[みっつばー]]によるレイン。
|出典1=[https://example.com/ 公式サイト]。2026年9月2日閲覧。
|画像2=https://example.com/image2.jpg
|alt2=レイン
|説明2=別媒体におけるレイン。
|出典2=[https://example.com/ 公式サイト]。2026年9月2日閲覧。
}}
|画像説明1 =
}}
画像には画像そのものの生URLを入力します。
説明と出典は各画像ごとに設定できます。
本テンプレート内で説明・出典を表示する場合、Infobox本体の画像説明1は空欄にすることを推奨します。
最大8枚まで指定できます。