1,763
回編集
編集の要約なし タグ: 手動差し戻し |
編集の要約なし |
||
1行目: | 1行目: | ||
<includeonly>{{ | <includeonly><nomobile> | ||
| | {| class="wikitable" style="text-align: center; padding: 8px;border-style: none; width: 250px;" | ||
| | |<img src="{{{url}}}" width="{{{width}}}" height="auto"> | ||
} | |- | ||
|{{{画像説明}}} | |||
|}</nomobile> | |||
<mobileonly>{| class="wikitable" style="text-align: center; padding: 8px;border-style: none; width: 100% | |||
|<img src="{{{url}}}" width="{{{mobilewidth}}}" height="auto"> | |||
|- | |||
|{{{画像説明}}} | |||
|}</mobileonly> | |||
</includeonly><noinclude> | |||
ギャラリー項目に使用するテンプレートです。画像を掲載することができます。 | ギャラリー項目に使用するテンプレートです。画像を掲載することができます。 | ||
<pre> | <pre> | ||
8行目: | 16行目: | ||
|url= | |url= | ||
|width= | |width= | ||
|mobilewidth= | |||
|画像説明= | |画像説明= | ||
}} | }} | ||
15行目: | 24行目: | ||
**サイトurlを入力。 | **サイトurlを入力。 | ||
*'''width''' | *'''width''' | ||
** | **PC画面でのwidth(横幅)を入力。%表記で入力する。 | ||
*'''mobilewidth''' | |||
**モバイル画面でのwidth(横幅)を入力。%表記で入力する。適宜、見やすいサイズにする。 | |||
*'''画像説明'''(必須) | *'''画像説明'''(必須) | ||
**画像についての説明を入力。必ず[[Template:web引用]]を付け、引用元を示す。 | **画像についての説明を入力。必ず[[Template:web引用]]を付け、引用元を示す。 | ||
== 使用例 == | |||
{{ギャラリー | |||
|url=https://cs1.animestore.docomo.ne.jp/anime_kv/html/CJ/img/tensuraX_inte_img9_202312.png | |||
|width=150% | |||
|mobilewidth=50% | |||
|画像説明=aaa | |||
}} | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"url": { | "url": { | ||
"type": "url", | |||
"required": true | "required": true | ||
}, | }, | ||
"width": { | "width": { | ||
"description": " | "description": "画像の横幅をpx、もしくは%表記で入力する。適宜、見やすいサイズになる値にする。" | ||
}, | }, | ||
"画像説明": { | "画像説明": { | ||
"type": "content", | |||
"required": true | |||
}, | |||
} | "mobilewidth": { | ||
"description": "モバイル画面での画像の横幅をpx、もしくは%表記で入力する。適宜、見やすいサイズになる値にする。" | |||
} | |||
}, | |||
"description": "ギャラリー項目に使用するテンプレートです。画像を掲載することができます。" | |||
} | } | ||
</templatedata> | </templatedata></noinclude> | ||
</noinclude> |