打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

Template:着重号/doc:修订间差异

模板页面
删除的内容 添加的内容
AdorN留言 | 贡献
来源于萌娘百科,依CC BY-NC-SA 3.0 CN导入,原贡献者请参见来源页面历史
标签由半自动化工具或脚本执行的操作
 
Amero留言 | 贡献
无编辑摘要
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
本模板用CSS属性来给文字添加记号,用法如下:
本模板用CSS属性来给文字添加记号,用法如下:


<pre>{{text-emphasis|文字|记号|position=加注的位置|color=颜色}}</pre>
<pre>{{着重号|文字|记号|position=加注的位置|color=颜色}}</pre>


记号接受的值如下:
记号接受的值如下:
第11行: 第11行:
|-
|-
!<code>dot</code>
!<code>dot</code>
|“•”,{{text-emphasis|效果|filled dot}}||“◦”,{{text-emphasis|效果|open dot}}
|“•”,{{着重号|效果|filled dot}}||“◦”,{{着重号|效果|open dot}}
|-
|-
!<code>circle</code>
!<code>circle</code>
|“●”,{{text-emphasis|效果|filled circle}}||“○”,{{text-emphasis|效果|open circle}}
|“●”,{{着重号|效果|filled circle}}||“○”,{{着重号|效果|open circle}}
|-
|-
!<code>double-circle</code>
!<code>double-circle</code>
|“◉”,{{text-emphasis|效果|filled double-circle}}||“◎”,{{text-emphasis|效果|open double-circle}}
|“◉”,{{着重号|效果|filled double-circle}}||“◎”,{{着重号|效果|open double-circle}}
|-
|-
!<code>triangle</code>
!<code>triangle</code>
|“▲”,{{text-emphasis|效果|filled triangle}}||“△”,{{text-emphasis|效果|open triangle}}
|“▲”,{{着重号|效果|filled triangle}}||“△”,{{着重号|效果|open triangle}}
|-
|-
!<code>sesame</code>
!<code>sesame</code>
|“﹅”,{{text-emphasis|效果|filled sesame}}||“﹆”,{{text-emphasis|效果|open sesame}}
|“﹅”,{{着重号|效果|filled sesame}}||“﹆”,{{着重号|效果|open sesame}}
|}
|}
例子:<code>dot</code>、<code>open double-circle</code>、<code>triangle filled</code>。
例子:<code>dot</code>、<code>open double-circle</code>、<code>triangle filled</code>。
</li>
</li>
<li>一个自定义字符,须用单引号<code>'</code>包裹,如<code>'🤤'</code>,效果:{{text-emphasis|流口水|'🤤'}}。</li>
<li>一个自定义字符,须用单引号<code>'</code>包裹,如<code>'🤤'</code>,效果:{{着重号|流口水|'🤤'}}。</li>
</ul>
</ul>


第40行: 第40行:
最简单用例:
最简单用例:
<pre class="prettyprint lang-wiki">
<pre class="prettyprint lang-wiki">
下面对本文的理解,{{text-emphasis|不正确}}的一项是:……
下面对本文的理解,{{着重号|不正确}}的一项是:……
</pre>
</pre>
下面对本文的理解,{{text-emphasis|不正确}}的一项是:……<!--来自《标点符号用法》-->
下面对本文的理解,{{着重号|不正确}}的一项是:……<!--来自《标点符号用法》-->
</li>
</li>


第48行: 第48行:
竖排,改变着重号位置、记号:
竖排,改变着重号位置、记号:
<pre class="prettyprint lang-wiki">
<pre class="prettyprint lang-wiki">
<p style="writing-mode: vertical-lr;">{{text-emphasis|[[成龙历险记/黑暗杀手|甘文崔]]|filled double-circle|position=over left}}</p>
<p style="writing-mode: vertical-lr;">{{着重号|[[成龙历险记/黑暗杀手|甘文崔]]|filled double-circle|position=over left}}</p>
</pre>
</pre>
<p style="writing-mode: vertical-lr;">{{text-emphasis|[[成龙历险记/黑暗杀手|甘文崔]]|filled double-circle|position=over left}}</p>
<p style="writing-mode: vertical-lr;">{{着重号|[[成龙历险记/黑暗杀手|甘文崔]]|filled double-circle|position=over left}}</p>
</li>
</li>


第56行: 第56行:
使用自定义单字作为着重号:
使用自定义单字作为着重号:
<pre class="prettyprint lang-wiki">
<pre class="prettyprint lang-wiki">
{{text-emphasis|锟斤拷|'❌'}}
{{着重号|锟斤拷|'❌'}}
</pre>
</pre>
{{text-emphasis|锟斤拷|'❌'}}
{{着重号|锟斤拷|'❌'}}
</li>
</li>
</ul>
</ul>

==重定向==
{{tl|着重号}}重定向至此。


{{Template:格式模板}}
{{Template:格式模板}}


==外部链接==
==外部链接==
* [https://developer.mozilla.org/en-US/docs/Web/CSS/text-emphasis MDN文档:text-emphasis]
* [https://developer.mozilla.org/en-US/docs/Web/CSS/text-emphasis-position MDN文档:text-emphasis-position]
* [https://developer.mozilla.org/en-US/docs/Web/CSS/text-emphasis MDN文档:`text-emphasis`]
* [https://developer.mozilla.org/en-US/docs/Web/CSS/text-emphasis-position MDN文档:`text-emphasis-position`]
<noinclude>[[Category:模板文档]]</noinclude>
<noinclude>[[Category:模板文档]]</noinclude>

2025年10月29日 (三) 06:04的最新版本

本模板用CSS属性来给文字添加记号,用法如下:

{{着重号|文字|记号|position=加注的位置|color=颜色}}

记号接受的值如下:

  • filled(实心)或open(空心)与下表第一列的值的组合,顺序随意。filledopen可省略,省略时当作filled
    组合 filled open
    dot “•”,效果 “◦”,效果
    circle “●”,效果 “○”,效果
    double-circle “◉”,效果 “◎”,效果
    triangle “▲”,效果 “△”,效果
    sesame “﹅”,效果 “﹆”,效果

    例子:dotopen double-circletriangle filled

  • 一个自定义字符,须用单引号'包裹,如'🤤',效果:流口水

位置接受的值如下:

  • over(横排文字上方)或under(横排文字下方)、right(竖排文字右侧)或left(竖排文字左侧)的组合,顺序随意。竖排选项可省略。
    例子:overunderover leftleft under

根据中文排版习惯,本模板记号默认是dot,位置默认是under right,一般不需要更改。

应用例

  • 最简单用例:
    下面对本文的理解,{{着重号|不正确}}的一项是:……
    

    下面对本文的理解,不正确的一项是:……

  • 竖排,改变着重号位置、记号:
    <p style="writing-mode: vertical-lr;">{{着重号|[[成龙历险记/黑暗杀手|甘文崔]]|filled double-circle|position=over left}}</p>
    

    甘文崔

  • 使用自定义单字作为着重号:
    {{着重号|锟斤拷|'❌'}}
    

    锟斤拷

外部链接