模板:三级行标题1:修订间差异
来自ANACHRONISM
更多操作
补 TOC 锚点:新增视觉隐藏的 h4(取「标题」参数,带 #if 守卫),使该组件参与页面目录生成 |
诊断:模板开头插入不可见 HTML 注释标记,用于判定转包含读取的是新内容还是旧缓存(其余零改动) |
||
| 第1行: | 第1行: | ||
<!--TOCMARK-20261006-A--> | |||
<div style="position:relative;text-align:left;width:100%;padding:0.4em 0;box-sizing:border-box;display:flex;align-items:flex-end;"><div style="align-self:center;position:relative;filter:drop-shadow(0 2px 3px rgba(0,0,0,0.55));margin-right:0.4em;flex-shrink:0;">{{#if:{{{转动|}}}|{{旋转变换|符号=<div style="width:1em;height:0.87em;background:{{{色块颜色|#56000d}}};clip-path:polygon(0 0,100% 0,50% 100%);"></div>|转动角=180|呼吸=off|发光=off|大小=1}}|<div style="width:1em;height:0.87em;background:{{{色块颜色|#56000d}}};clip-path:polygon(0 0,100% 0,50% 100%);"></div>}}</div><div class="font-{{{编号字体|mono}}}" style="font-size:1.5em;font-weight:bold;line-height:1;">{{{编号|}}}</div><div class="font-{{{标题字体|}}}" style="font-size:1.2em;line-height:1;margin:0 0.4em;">{{{标题|}}}</div><span class="font-{{{英文字体|}}}" style="font-size:0.9em;opacity:0.7;line-height:1;letter-spacing:0.1em;">{{{英文标题|}}}</span> | <div style="position:relative;text-align:left;width:100%;padding:0.4em 0;box-sizing:border-box;display:flex;align-items:flex-end;"><div style="align-self:center;position:relative;filter:drop-shadow(0 2px 3px rgba(0,0,0,0.55));margin-right:0.4em;flex-shrink:0;">{{#if:{{{转动|}}}|{{旋转变换|符号=<div style="width:1em;height:0.87em;background:{{{色块颜色|#56000d}}};clip-path:polygon(0 0,100% 0,50% 100%);"></div>|转动角=180|呼吸=off|发光=off|大小=1}}|<div style="width:1em;height:0.87em;background:{{{色块颜色|#56000d}}};clip-path:polygon(0 0,100% 0,50% 100%);"></div>}}</div><div class="font-{{{编号字体|mono}}}" style="font-size:1.5em;font-weight:bold;line-height:1;">{{{编号|}}}</div><div class="font-{{{标题字体|}}}" style="font-size:1.2em;line-height:1;margin:0 0.4em;">{{{标题|}}}</div><span class="font-{{{英文字体|}}}" style="font-size:0.9em;opacity:0.7;line-height:1;letter-spacing:0.1em;">{{{英文标题|}}}</span> | ||
<!-- TOC 锚点:视觉隐藏,参与目录 --> | <!-- TOC 锚点:视觉隐藏,参与目录 --> | ||
{{#if:{{{标题|}}}|<h4 style="position:absolute;top:0;left:0;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;pointer-events:none;">{{{标题|}}}</h4>|}} | {{#if:{{{标题|}}}|<h4 style="position:absolute;top:0;left:0;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;pointer-events:none;">{{{标题|}}}</h4>|}} | ||
</div> | </div> | ||