跳转到内容

模板:折叠图片框:修订间差异

来自失传媒体中文维基
HW
HW留言 | 贡献 (创建页面,内容为“<includeonly> {{#if:{{{图片|}}}| <details class="nsfw-reveal" style="margin: 1.2em 0; border: 1px solid #800; border-radius: 6px; overflow: hidden;"> <summary style=" background: #300000; color: #ffdddd; padding: 16px 20px; cursor: pointer; font-weight: bold; text-align: center; list-style: none; user-select: none; "> <span style="font-size: 1.3em; color: #ff4444;">⚠️</span> 此图片含限制性内容<br> <span style="font-size: 0.95em; opacity: 0.9;">…”)
 
HW
HW留言 | 贡献
第1行: 第1行:
<includeonly>
<includeonly>
{{#if:{{{图片|}}}|
 
<details class="nsfw-reveal" style="margin: 1.2em 0; border: 1px solid #800; border-radius: 6px; overflow: hidden;">
<summary style="
background: #300000;
color: #ffdddd;
padding: 16px 20px;
cursor: pointer;
font-weight: bold;
text-align: center;
list-style: none;
user-select: none;
">
<span style="font-size: 1.3em; color: #ff4444;">⚠️</span> 此图片含限制性内容<br>
<span style="font-size: 0.95em; opacity: 0.9;">可能不适合未满18周岁者阅读。若符合年龄要求并愿意继续,请点击此处</span>
</summary>
<div style="padding: 15px; background: #111; text-align: center;">
[[File:{{{图片}}}|{{{宽度|300px}}}|center|alt={{{alt|{{{描述|无描述}}}}}}|link=]]
{{#if:{{{描述|}}}|
<div class="scp-image-caption" style="font-size: 0.9em; color: #aaa; margin-top: 0.8em; text-align: center;">
{{{描述}}}
</div>
}}
</div>
</details>
|<!-- 无图片时显示警告 -->
'''错误:未提供图片文件名'''<br>
请在模板中使用 <code>|图片=文件名.jpg</code>
}}
</includeonly>
</includeonly>



2026年3月6日 (五) 22:52的版本