Difference between revisions of "Template:ModernNote/doc/zh"

From Valve Developer Community
Jump to: navigation, search
m
m (Replaced content with "<noinclude>{{Delete|Replaced with Template:Notify/inline/doc.}}</noinclude>")
(Tag: Replaced)
 
Line 1: Line 1:
<noinclude>{{doc|0}}</noinclude>
+
<noinclude>{{Delete|Replaced with [[Template:Notify/inline/doc]].}}</noinclude>
{{Inline note templates|title=注释模板|suf=:zh-cn}}{{Modern Templates}}
 
== 用法 ==
 
=== 参数 ===
 
{{param|1}} - 要在右侧显示的文本。字符<code>=</code>和<code>|</code>可以破坏此模板,因为它们是模板调用中的特殊字符。使用<code>[[Template:=|<nowiki>{{</nowiki>=}}]]</code>和<code>[[Template:!|<nowiki>{{</nowiki>!}}]]</code>替代;另见 [[:Category:Templates for within templates]]
 
<br>
 
{{#ifeq: {{ROOTPAGENAME}} | ModernNote |
 
{{param|type}} - 注释的类型,即左侧显示的文本。这可能包括一个图标和一个冒号。如果指定了 {{param|color}},此文本也将使用它作为基色。
 
 
 
{{param|color}} - 以逗号分隔的 RGB 三元组,表示背景和类型文本颜色。默认背景和左边框值为 <code>231,233,191</code>。
 
 
 
{{param|style}} - 底层 &lt;div> 的附加/覆盖样式参数<br>
 
}}
 
{{param|suf}} - ''可选''。这是一个后缀,将添加到模板的所有元素中,以所需的语言显示内容(如果已翻译成该语言)。
 
:::: {{ModernNote|suf=:zh-cn|语言代码前应该有一个冒号,例如“:es”。}}
 
 
 
=== 示例 ===
 
{| style="border-collapse:collapse; background:none; border:1px solid rgba(255,255,255,0.2)" cellpadding=8
 
| <tt><nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|suf=:zh-cn}}</nowiki></tt>
 
| &rarr;
 
| {{ {{ROOTPAGENAME}} | suf=:zh-cn }}
 
|-
 
|style=white-space:nowrap| <tt><nowiki>{{</nowiki>{{ROOTPAGENAME}}|suf=:zh-cn|这是一个示例文本。}}</tt>
 
| &rarr;
 
| {{ {{ROOTPAGENAME}} | suf=:zh-cn |这是一个示例文本。}}
 
|-
 
|style=white-space:nowrap| <tt><nowiki>{{</nowiki>{{ROOTPAGENAME}}|suf=:zh-cn|<br>列举<br># 枚举<br># 时代<br>}}</tt>
 
| &rarr;
 
| {{ {{ROOTPAGENAME}} | suf=:zh-cn |
 
列举
 
# 枚举
 
# 时代
 
}}
 
|-
 
|colspan=3 style="border-top:1px solid rgba(255,255,255,0.2)"|
 
|-
 
| <tt>文本<br><nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|suf=:zh-cn|文本}}</nowiki><br>文本</tt>
 
| &rarr;
 
| {{lorem ipsum:zh-cn}} (乱数假文,无意义)
 
{{ {{ROOTPAGENAME}} | suf=:zh-cn | {{lorem ipsum:zh-cn}} (乱数假文,无意义) }}
 
{{lorem ipsum:zh-cn}} (乱数假文,无意义)
 
|}
 
{{clr}}
 
<includeonly>{{sandbox other||
 
<!-- Categories below this line, please -->
 
[[Category:Notice templates:zh-cn]]
 
}}</includeonly>
 

Latest revision as of 00:00, 27 April 2023

Warning icon.png
This template has been marked as a candidate for speedy deletion for the following reason:If you object to this decision, then please discuss why hereIf this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators - Remember to check if anything links here and the page history (last edit) before deleting.