Template:Notify/inline/doc/zh: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Doc/subpage}} 添加一个注释。 == 参数和示例 == {| class="standard-table" width="100%" ! width="15%" | 参数 ! 描述 ! 示例 ! width="20%" | 预览 |- {{#ifeq:...")
 
m (→‎现代注释模板的已知问题: clean up, replaced: {{ModernNote| → {{note|, Category:Notice templates → Category:Inline note templates, {{ModernBug → {{bug)
Line 48: Line 48:


== 现代注释模板的已知问题 ==
== 现代注释模板的已知问题 ==
* 如果注释以列表开头,则列表的开头将中断 (例如 {{Code|<nowiki>{{ModernNote|* Line 1}}</nowiki>}})。
* 如果注释以列表开头,则列表的开头将中断 (例如 {{Code|<nowiki>{{note|* Line 1}}</nowiki>}})。
* 指定注释内的文本会将其移动到列表下 (例如 {{Code|<nowiki># {{ModernBug|Line 1}}</nowiki>}})。
* 指定注释内的文本会将其移动到列表下 (例如 {{Code|<nowiki># {{bug|Line 1}}</nowiki>}})。


{{Doc/Sandbox other|
{{Doc/Sandbox other|
[[Category:Modern Templates]]
[[Category:Modern Templates]]
[[Category:Notice templates]]
[[Category:Inline note templates]]
[[Category:Inline note templates]]
[[Category:Inline note templates]]
}}
}}

Revision as of 11:48, 6 January 2024

Edit-copy.png
This is a documentation subpage for Template:Notify.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

添加一个注释。

参数和示例

参数 描述 示例 预览
{{{1}}}{{{text}}} 注释的文本内容。
Icon-Important.png重要:如果你的文本中存在产生冲突的 =,请使用 {{{text}}}。你也可以使用 {{=}} 或者 &#61; 替代 =
Icon-Important.png重要:如果你的文本中存在产生冲突的 |,请使用 {{!}}&#124;
{{Notify}} 这是一个示例文本。
{{Notify|这是一个示例文本。}}
{{Notify|text = 戈登 + 巴尼 = 啤酒}}
这是一个示例文本。
这是一个示例文本。
戈登 + 巴尼 = 啤酒

现代注释模板的已知问题

  • 如果注释以列表开头,则列表的开头将中断 (例如 {{note|* Line 1}})。
  • 指定注释内的文本会将其移动到列表下 (例如 # {{bug|Line 1}})。