模板:图片框:修订间差异
外观
| 第1行: | 第1行: | ||
{{#if:{{{图片|}}}| | {{#if:{{{图片|}}}| | ||
{{#if:{{#pos:{{{图片|}}}|http://}}{{#pos:{{{图片|}}}|https://}}| | |||
<!-- 包含 http:// 或 https:// --> | |||
<div class="scp-image-block block-{{{align|right}}}" style="width:{{{width|300px}}}; display: inline-block;"> | |||
<htmltag tagname="img" src="{{{图片|}}}" style="width: 100%; height: auto; display: block;" alt="{{{alt-text|}}}" class="scp-image"></htmltag> | |||
{{#if:{{{描述|}}}| | |||
<div class="scp-image-caption" style="font-size: 0.9em; text-align: center; margin-top: 0.5em;">{{{描述}}}</div> | |||
}} | |||
</div> | |||
| | | | ||
<!-- 不包含协议头 --> | |||
[[File:{{{图片|}}}|{{{width|300px}}}|{{{align|right}}}|{{{描述|}}}]] | |||
}} | |||
| | |||
<!-- 未填写图片参数 --> | |||
<div style="color:red">未填写图片链接</div> | |||
}} | }} | ||
2026年2月23日 (一) 09:20的版本
未填写图片链接