Difference between revisions of "Template:Fl"

From Valve Developer Community
Jump to: navigation, search
m (Missing <br>)
m (Added lang and use <onlyinclude>.)
 
Line 1: Line 1:
<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 | {{{{{only}}} only}} | {{only|{{{only}}}}}}} }}{{#if: {{{since|}}} | &nbsp;{{#ifexist: Template:{{{since}}} add | {{{{{since}}} add}} | {{since|{{{since}}}}}}} }}{{#if: {{{removed|}}} | &nbsp;{{removed|{{{removed}}}}} }}{{#if: {{{not|}}} | &nbsp;{{#ifexist: Template:{{{not}}} not | {{{{{not}}} not}} | {{not|{{{not}}}}}}} }}{{#if: {{{also|}}} | &nbsp;{{#ifexist: Template:{{{also}}} also | {{{{{also}}} also}} | {{also|{{{also}}}}}}} }}{{#if: {{{nofgd|}}} | &nbsp;<b>{{Not in FGD}}</b> }}{{#if: {{{deprecated|}}} | &nbsp;{{obs}} }}{{#if: {{{3|}}} | <br>&nbsp;&nbsp; {{#if:{{{deprecated|}}} | Deprecated. }} {{{3}}} }}</includeonly><noinclude>
+
*&nbsp;{{#if: {{{deprecated|}}} | <del> }}[<code>{{{1}}}</code>]&nbsp;:&nbsp;'''{{{2}}}'''{{#if: {{{deprecated|}}} | </del> }}{{#if: {{{only|}}} | &nbsp;{{#ifexist: Template:{{{only}}} only | {{{{{only}}} only}} | {{only|{{{only}}}}}}} }}{{#if: {{{since|}}} | &nbsp;{{#ifexist: Template:{{{since}}} add | {{{{{since}}} add}} | {{since|{{{since}}}}}}} }}{{#if: {{{removed|}}} | &nbsp;{{removed|{{{removed}}}}} }}{{#if: {{{not|}}} | &nbsp;{{#ifexist: Template:{{{not}}} not | {{{{{not}}} not}} | {{not|{{{not}}}}}}} }}{{#if: {{{also|}}} | &nbsp;{{#ifexist: Template:{{{also}}} also | {{{{{also}}} also}} | {{also|{{{also}}}}}}} }}{{#if: {{{nofgd|}}} | &nbsp;<b>{{Not in FGD}}</b> }}{{#if: {{{deprecated|}}} | &nbsp;{{obs}} }}{{#if: {{{3|}}} | <br>&nbsp;&nbsp; {{#if:{{{deprecated|}}} | Deprecated. }} {{{3}}} }}</includeonly></onlyinclude>
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories to the /doc subpage, not here -->
 
<!-- Add categories to the /doc subpage, not here -->
</noinclude>
 

Latest revision as of 06:23, 16 September 2021

English 简体中文
Template icon Template documentation[view] [edit] [history] [purge]

This template is used to generate Flag definitions on entity pages.

Usage

{{Fl|<value>|<name>|<description>}}

Note.png Note: Don't forget to use Template:= to escape any "=" characters in the text.

Examples and Parameters

Parameter Description Example Preview
deprecated This flag is deprecated and should no longer be used. {{Fl|1|I'm deprecated|deprecated=1}}
{{Fl|2|I'm deprecated too!|Really, don't use me anymore!|deprecated=1}}
  •  [1] : I'm deprecated <Obsolete>
  •  [2] : I'm deprecated too! <Obsolete>
       Deprecated. Really, don't use me anymore!
nofgd This flag isn't available in the official FGD. {{Fl|4|Add me to the FGD||nofgd=1}}
{{Fl|8|Add me to the FGD too!|Because I'm not there!|nofgd=1}}
  •  [4] : Add me to the FGD !FGD
  •  [8] : Add me to the FGD too! !FGD
       Because I'm not there!
since This flag is available since this game. Can use either {{<game> add}} or {{Since}} templates. {{Fl|16|I like Alien Swarm|since={{as}}}}
{{Fl|32|I like Alien Swarm too!|I'm available in Portal 2, too!|since={{as}}}}
  •  [16] : I like Alien Swarm (in all games since Alien Swarm)
  •  [32] : I like Alien Swarm too! (in all games since Alien Swarm)
       I'm available in Portal 2, too!
also This flag is also available in this game. Can use either {{<game> also}} or {{Also}} templates. {{Fl|16|I like Alien Swarm|since={{as}}|also={{GMOD}}}}
{{Fl|32|I like Alien Swarm too!|I'm available in Portal 2, too! But also in GMOD!|since={{as}}|also={{GMOD}}}}
  •  [16] : I like Alien Swarm (in all games since Alien Swarm) (also in Garry's Mod)
  •  [32] : I like Alien Swarm too! (in all games since Alien Swarm) (also in Garry's Mod)
       I'm available in Portal 2, too! But also in GMOD!
only This flag is available only in this game. Can use either {{<game> only}} or {{Only}} templates. {{Fl|64|I love Alien Swarm|only={{as}}}}
{{Fl|128|I love Alien Swarm too!|I'm only available in Alien Swarm!|only={{as}}}}
  •  [64] : I love Alien Swarm (only in Alien Swarm)
  •  [128] : I love Alien Swarm too! (only in Alien Swarm)
       I'm only available in Alien Swarm!
not This flag is not available just in this game. Only uses the template {{Not}}. {{Fl|16|I like Alien Swarm!|since={{as}}|not={{csgo}}}}
{{Fl|32|I like Alien Swarm too!|I'm available in Portal 2 too, but not in CS:GO|since={{as}}|not={{csgo}}}}
  •  [16] : I like Alien Swarm (in all games since Alien Swarm) (not in Counter-Strike: Global Offensive)
  •  [32] : I like Alien Swarm too! (in all games since Alien Swarm) (not in Counter-Strike: Global Offensive)
       I'm available in Portal 2 too, but not in CS:GO
removed This flag was removed in this game onwards. Only uses the template {{Removed}}. {{Fl|16|I like Alien Swarm|since={{as}}|removed={{portal2}}}}
{{Fl|32|I like Alien Swarm too!|Actually... I'm not here anymore since Portal 2, including CS:GO...|since={{as}}|removed={{portal2}}}}
  •  [16] : I like Alien Swarm (in all games since Alien Swarm) (removed since Portal 2)
  •  [32] : I like Alien Swarm too! (in all games since Alien Swarm) (removed since Portal 2)
       Actually... I'm not here anymore since Portal 2, including CS:GO...

See also