模板:图片框:修订间差异
外观
| 第1行: | 第1行: | ||
{{#if:{{{图片|}}}| | {{#if:{{{图片|}}}| | ||
<div class="scp-image-block block-{{{align|right}}}" style="width:{{{width|300px}}}; display: inline-block;"> | <div class="scp-image-block block-{{{align|right}}}" style="width:{{{width|300px}}}; display: inline-block;"> | ||
<img | |||
src="{{{图片}}}" | |||
width="{{{width|300px}}}" | |||
alt="{{{alt-text|}}}" | |||
href="{{{link|}}}" | |||
newtab="true" | |||
class="scp-image" | |||
/> | |||
{{#if:{{{描述|}}}| | {{#if:{{{描述|}}}| | ||
<div class="scp-image-caption" style="font-size: 0.9em; text-align: center; margin-top: 0.5em;"> | <div class="scp-image-caption" style="font-size: 0.9em; text-align: center; margin-top: 0.5em;"> | ||
| 第16行: | 第16行: | ||
</div> | </div> | ||
| | | | ||
<div class="error" style="color:red; padding: 1em;">请在 <code>图片=</code> | <div class="error" style="color:red; padding: 1em;">请在 <code>图片=</code> 参数中填入图片URL</div> | ||
}} | }} | ||
2026年2月19日 (四) 21:01的版本
请在
图片= 参数中填入图片URL