Template:Fl:zh-cn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{lang|Template:Fl}}<onlyinclude><includeonly> * {{#if: {{{deprecated|}}} | <del> }}[<code>{{{1}}}</code>] : '''{{{2}}}'''{{#if: {{{deprecated|}}} | </del> }}{{...")
 
m (made it use Chinese !fgd instead of English.)
 
Line 1: Line 1:
{{lang|Template:Fl}}<onlyinclude><includeonly>
{{lang|Template:Fl}}<onlyinclude><includeonly>
*&nbsp;{{#if: {{{deprecated|}}} | <del> }}[<code>{{{1}}}</code>]&nbsp;:&nbsp;'''{{{2}}}'''{{#if: {{{deprecated|}}} | </del> }}{{#if: {{{only|}}} | &nbsp;{{#ifexist: Template:{{{only}}} only:zh-cn | {{{{{only}}} only:zh-cn}} | {{only:zh-cn|{{{only}}}}}}} }}{{#if: {{{since|}}} | &nbsp;{{#ifexist: Template:{{{since}}} add:zh-cn | {{{{{since}}} add:zh-cn}} | {{since:zh-cn|{{{since}}}}}}} }}{{#if: {{{removed|}}} | &nbsp;{{removed:zh-cn|{{{removed}}}}} }}{{#if: {{{not|}}} | &nbsp;{{#ifexist: Template:{{{not}}} not:zh-cn | {{{{{not}}} not:zh-cn}} | {{not:zh-cn|{{{not}}}}}}} }}{{#if: {{{also|}}} | &nbsp;{{#ifexist: Template:{{{also}}} also:zh-cn | {{{{{also}}} also:zh-cn}} | {{also:zh-cn|{{{also}}}}}}} }}{{#if: {{{nofgd|}}} | &nbsp;<b>{{Not in FGD}}</b> }}{{#if: {{{deprecated|}}} | &nbsp;{{obs}} }}{{#if: {{{3|}}} | <br>&nbsp;&nbsp; {{#if:{{{deprecated|}}} | 已弃用。}} {{{3}}} }}</includeonly></onlyinclude>
*&nbsp;{{#if: {{{deprecated|}}} | <del> }}[<code>{{{1}}}</code>]&nbsp;:&nbsp;'''{{{2}}}'''{{#if: {{{deprecated|}}} | </del> }}{{#if: {{{only|}}} | &nbsp;{{#ifexist: Template:{{{only}}} only:zh-cn | {{{{{only}}} only:zh-cn}} | {{only:zh-cn|{{{only}}}}}}} }}{{#if: {{{since|}}} | &nbsp;{{#ifexist: Template:{{{since}}} add:zh-cn | {{{{{since}}} add:zh-cn}} | {{since:zh-cn|{{{since}}}}}}} }}{{#if: {{{removed|}}} | &nbsp;{{removed:zh-cn|{{{removed}}}}} }}{{#if: {{{not|}}} | &nbsp;{{#ifexist: Template:{{{not}}} not:zh-cn | {{{{{not}}} not:zh-cn}} | {{not:zh-cn|{{{not}}}}}}} }}{{#if: {{{also|}}} | &nbsp;{{#ifexist: Template:{{{also}}} also:zh-cn | {{{{{also}}} also:zh-cn}} | {{also:zh-cn|{{{also}}}}}}} }}{{#if: {{{nofgd|}}} | &nbsp;<b>{{Not in FGD:zh-cn}}</b> }}{{#if: {{{deprecated|}}} | &nbsp;{{obs}} }}{{#if: {{{3|}}} | <br>&nbsp;&nbsp; {{#if:{{{deprecated|}}} | 已弃用。}} {{{3}}} }}</includeonly></onlyinclude>
{{documentation:zh-cn}}
{{documentation:zh-cn}}
<!-- 将类别添加到 /doc 子页面,而不是这里 -->
<!-- 将类别添加到 /doc 子页面,而不是这里 -->

Latest revision as of 15:41, 4 May 2022

本模板由大康翻译于2021年10月2日。部分内容由机器翻译。


此模板用于在实体页面上生成选项(非键值)/标志(Flag)定义。

用法

{{Fl:zh-cn|<value>|<name>|<description>}}

Note.pngNote:不要忘记使用 Template:= 来转义文本中的任何“=”字符。

示例和参数

参数 描述 示例 预览
deprecated 此键值已弃用,不应再使用。 {{Fl:zh-cn|1|我已弃用。|deprecated=1}}
{{Fl:zh-cn|2|我也弃用了!|真的,不要再用我啦!|deprecated=1}}
  •  [1] : 我已弃用。 Obsolete
  •  [2] : 我也弃用了 Obsolete
       已弃用。 真的,不用再用我啦!
nofgd 该选项没有包含在官方 FGD 中。 {{Fl:zh-cn|4|把我添加到 FGD 里||nofgd=1}}
{{Fl:zh-cn|8|把我也添加到 FGD 里!|因为我不在那里!|nofgd=1}}
since 该选项自该游戏起可以使用。它使用了模板 {{<game> also}} 或者 {{Since}} 模板。 {{Fl:zh-cn|16|我喜欢 Alien Swarm|since={{as}}}}
{{Fl:zh-cn|32|我喜欢 Alien Swarm too!|我也在传送门 2 中存在!|since={{as}}}}
  •  [16] : 我喜欢 Alien Swarm (存在于自 Alien Swarm 以来)
  •  [32] : 我喜欢 Alien Swarm too! (存在于自 Alien Swarm 以来)
       我也在传送门 2 中存在!
also 该选项在这个游戏中也是存在的。可以使用{{<game> also}} 或{{Also}}模板。 {{Fl:zh-cn|16|我喜欢 Alien Swarm|since={{as}}|also={{GMOD}}}}
{{Fl:zh-cn|32|我喜欢 Alien Swarm too!|我也在传送门 2 中存在!但也在 GMOD 中存在!|since={{as}}|also={{GMOD}}}}
  •  [16] : 我喜欢 Alien Swarm (存在于自 Alien Swarm 以来) Template:Also:zh-cn
  •  [32] : 我喜欢 Alien Swarm too! (存在于自 Alien Swarm 以来) Template:Also:zh-cn
       我也在传送门 2 中存在!但也在 GMOD 中存在!
only 此选项仅在此游戏中存在。可以使用 {{<game> only}} 或 {{Only}} 模板。 {{Fl:zh-cn|64|我喜爱 Alien Swarm|only={{as}}}}
{{Fl:zh-cn|128|我也喜爱 Alien Swarm!|我只在 Alien Swarm 中存在!|only={{as}}}}
  •  [64] : 我喜爱 Alien Swarm (仅存在于 Alien Swarm 中)
  •  [128] : 我也喜爱 Alien Swarm! (仅存在于 Alien Swarm 中)
       我只在 Alien Swarm 中存在!
not 此选项仅在此游戏中不存在。仅使用模板 {{Not}} {{Fl:zh-cn|16|我喜欢 Alien Swarm!|since={{as}}|not={{csgo}}}}
{{Fl:zh-cn|32|我喜欢 Alien Swarm too!|我也在传送门 2 中存在,但在 CS:GO 中不存在|since={{as}}|not={{csgo}}}}
  •  [16] : 我喜欢 Alien Swarm (存在于自 Alien Swarm 以来) (存在于 Counter-Strike: Global Offensive 中)
  •  [32] : 我喜欢 Alien Swarm too! (存在于自 Alien Swarm 以来) (存在于 Counter-Strike: Global Offensive 中)
       我也在传送门 2 中存在,但在 CS:GO 中不存在
removed 此选项在此游戏中被删除。仅使用模板 {{Removed}} {{Fl:zh-cn|16|我喜欢 Alien Swarm|since={{as}}|removed={{portal2}}}}
{{Fl:zh-cn|32|我喜欢 Alien Swarm too!|实际上……自从传送门 2 之后我就不在这里了,包括 CS:GO……|since={{as}}|removed={{portal2}}}}
  •  [16] : 我喜欢 Alien Swarm (存在于自 Alien Swarm 以来) (自从 Portal 2移除)
  •  [32] : 我喜欢 Alien Swarm too! (存在于自 Alien Swarm 以来) (自从 Portal 2移除)
       实际上……自从传送门 2 之后我就不在这里了,包括 CS:GO……

另请参阅