个人工具

模板:Anno

出自Meshal Lite

(修订版本间的差异)
跳转到: 导航, 搜索
 
(由1名用户作出的10个中途修订版本未被显示)
第1行: 第1行:
<includeonly><div class="block" style="background-color: rgba(86, 126, 142, 0.1); color: #333333;">
+
<includeonly><div class="block" style="background-color: #eef7fb; color: #333333; width: calc(100% - {{{indent|0}}}em); margin-left: {{{indent|0}}}em;">
 
<div class="blockContent" style="{{{textstyle|}}}">
 
<div class="blockContent" style="{{{textstyle|}}}">
{{{1|{{{text|}}}}}}</div></div></includeonly><noinclude>[[category:模板]][[category:编辑]]
+
{{{1|{{{text|}}}}}}</div></div></includeonly><noinclude>{{tpl_helpdoc}}</noinclude>
== 模板说明 ==
+
加入一段文本, 该文本会以注解的形式呈现.
+
 
+
== 参数 ==
+
;1 或 text
+
:这段文字的具体内容
+
;textstyle
+
:正文区追加的css样式
+
 
+
== 使用 ==
+
<source lang="text">
+
{{anno
+
|text=
+
}}
+
</source>
+
</noinclude>
+

在2019年1月3日 (四) 13:13的最新修订版本

编辑简介内容 生成一个注解文本块,注解文字被包含在一个浅色容器内。

编辑帮助内容

使用
{{anno|
  |[1] text=
  |textstyle=
  |indent=0
}}
1 text

注解文本

textstyle

正文区追加的css样式,可自定义

indent

这个区块的缩进尺寸,单位是em。填写1即等于缩进1em。

  • 默认为0