“模板:Curtain”的版本间差异

来自ThunionWiki
(修复模板功能)
(实现不了 css 引用,添加无法实现的提示)
 
第1行: 第1行:
<templatestyles src="/styles.css" />
<includeonly>
<includeonly>
<span title="{{{2|你知道的太多了}}}" class="curtain">{{{1}}}</span>
<!--<span title="{{{2|你知道的太多了}}}" class="curtain">{{{1}}}</span>-->
<span title="此模板(Template:Curtain)的功能因技术限制无法实现。" style="text-decoration: underline dotted;">{{{1}}}</span><sup>[[Template:Curtain|?]]</sup>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
{{Curtain|这是一段测试文字}}
{{Documentation|content={{/doc}}}}
{{Documentation|content={{/doc}}}}
</noinclude>
</noinclude>

2025年11月1日 (六) 17:15的最新版本


这是一段测试文字?


文档页


用黑色遮罩层覆盖文字,只有鼠标悬停时才显示。

由于技术限制,无法实现::after伪元素,因此本模板无法发挥预期功能,使用本模板只会给文字添加下划线和悬停提示,并在文字右上角添加指向本模板的链接(显示为?)。