Template:Fl:zh-cn: Difference between revisions
Jump to navigation
Jump to search
Note:不要忘记使用 Template:= 来转义文本中的任何“=”字符。
1416006136 (talk | contribs) (Created page with "{{lang|Template:Fl}}<onlyinclude><includeonly> * {{#if: {{{deprecated|}}} | <del> }}[<code>{{{1}}}</code>] : '''{{{2}}}'''{{#if: {{{deprecated|}}} | </del> }}{{...") |
Kestrelguy (talk | contribs) m (made it use Chinese !fgd instead of English.) |
||
Line 1: | Line 1: | ||
{{lang|Template:Fl}}<onlyinclude><includeonly> | {{lang|Template:Fl}}<onlyinclude><includeonly> | ||
* {{#if: {{{deprecated|}}} | <del> }}[<code>{{{1}}}</code>] : '''{{{2}}}'''{{#if: {{{deprecated|}}} | </del> }}{{#if: {{{only|}}} | {{#ifexist: Template:{{{only}}} only:zh-cn | {{{{{only}}} only:zh-cn}} | {{only:zh-cn|{{{only}}}}}}} }}{{#if: {{{since|}}} | {{#ifexist: Template:{{{since}}} add:zh-cn | {{{{{since}}} add:zh-cn}} | {{since:zh-cn|{{{since}}}}}}} }}{{#if: {{{removed|}}} | {{removed:zh-cn|{{{removed}}}}} }}{{#if: {{{not|}}} | {{#ifexist: Template:{{{not}}} not:zh-cn | {{{{{not}}} not:zh-cn}} | {{not:zh-cn|{{{not}}}}}}} }}{{#if: {{{also|}}} | {{#ifexist: Template:{{{also}}} also:zh-cn | {{{{{also}}} also:zh-cn}} | {{also:zh-cn|{{{also}}}}}}} }}{{#if: {{{nofgd|}}} | <b>{{Not in FGD}}</b> }}{{#if: {{{deprecated|}}} | {{obs}} }}{{#if: {{{3|}}} | <br> {{#if:{{{deprecated|}}} | 已弃用。}} {{{3}}} }}</includeonly></onlyinclude> | * {{#if: {{{deprecated|}}} | <del> }}[<code>{{{1}}}</code>] : '''{{{2}}}'''{{#if: {{{deprecated|}}} | </del> }}{{#if: {{{only|}}} | {{#ifexist: Template:{{{only}}} only:zh-cn | {{{{{only}}} only:zh-cn}} | {{only:zh-cn|{{{only}}}}}}} }}{{#if: {{{since|}}} | {{#ifexist: Template:{{{since}}} add:zh-cn | {{{{{since}}} add:zh-cn}} | {{since:zh-cn|{{{since}}}}}}} }}{{#if: {{{removed|}}} | {{removed:zh-cn|{{{removed}}}}} }}{{#if: {{{not|}}} | {{#ifexist: Template:{{{not}}} not:zh-cn | {{{{{not}}} not:zh-cn}} | {{not:zh-cn|{{{not}}}}}}} }}{{#if: {{{also|}}} | {{#ifexist: Template:{{{also}}} also:zh-cn | {{{{{also}}} also:zh-cn}} | {{also:zh-cn|{{{also}}}}}}} }}{{#if: {{{nofgd|}}} | <b>{{Not in FGD:zh-cn}}</b> }}{{#if: {{{deprecated|}}} | {{obs}} }}{{#if: {{{3|}}} | <br> {{#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>}}

示例和参数
参数 | 描述 | 示例 | 预览 |
---|---|---|---|
deprecated |
此键值已弃用,不应再使用。 | {{Fl:zh-cn|1|我已弃用。|deprecated=1}} {{Fl:zh-cn|2|我也弃用了!|真的,不要再用我啦!|deprecated=1}} |
|
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}}}} |
|
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}}}} |
|
only |
此选项仅在此游戏中存在。可以使用 {{<game> only}} 或 {{Only}} 模板。 |
{{Fl:zh-cn|64|我喜爱 Alien Swarm|only={{as}}}} {{Fl:zh-cn|128|我也喜爱 Alien Swarm!|我只在 Alien Swarm 中存在!|only={{as}}}} |
|
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}}}} |
|
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}}}} |
另请参阅
以上文档摘自 Template:Fl:zh-cn/doc。(编辑 | 历史记录)
编辑者可以在此模板的沙盒 (创建 | 将本页内容写入至沙盒页面) 和 testcases(测试用例) (创建) 页面编辑。
请将分类(类别)添加到 /doc 子页面。 此模板的子页面
编辑者可以在此模板的沙盒 (创建 | 将本页内容写入至沙盒页面) 和 testcases(测试用例) (创建) 页面编辑。
请将分类(类别)添加到 /doc 子页面。 此模板的子页面