Template:Fl/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(huge example rehaul)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Doc/subpage}}
<!-- Please place categories where indicated at the bottom of this page.) -->
<!-- Please place categories where indicated at the bottom of this page. -->
This template is used to generate [[Flag]] definitions on entity pages.
This template is used to generate [[Flag]] definitions on entity pages.


== Usage ==
== Usage ==
<nowiki>{{Fl|<value>|<name>|<description>}}</nowiki>
{{Code|<nowiki>{{Fl|<value>|<name>|<description>}}</nowiki>}}


{{note|Don't forget to use [[Template:=]] to escape any "{{=}}" characters in the text.}}
{{Note|Don't forget to use {{code|<nowiki>{{=}}</nowiki>}} to escape any "{{=}}" characters in the text.}}


== Examples and Parameters ==  
== Examples and Parameters ==  
Line 12: Line 12:
! Parameter || Description || Example || Preview
! Parameter || Description || Example || Preview
|-
|-
| <code>deprecated</code> || This flag is deprecated and should no longer be used. || <code><nowiki>{{Fl|1|I'm deprecated|deprecated=1}}</nowiki><br><nowiki>{{Fl|2|I'm deprecated too!|Really, don't use me anymore!|deprecated=1}}</nowiki></code> || {{Fl|1|I'm deprecated|deprecated=1}}{{Fl|2|I'm deprecated too!|Really, don't use me anymore!|deprecated=1}}
| <code>deprecated</code> || This flag is deprecated and should no longer be used. || <code><nowiki>{{Fl|1|I'm deprecated|deprecated=1}}</nowiki></code><br><code><nowiki>{{Fl|2|I'm deprecated too!|Really, don't use me anymore!|deprecated=1}}</nowiki></code> || {{Fl|1|I'm deprecated|deprecated=1}}{{Fl|2|I'm deprecated too!|Really, don't use me anymore!|deprecated=1}}
|-
|-
| <code>nofgd</code> || This flag isn't available in the official FGD. || <code><nowiki>{{Fl|4|Add me to the FGD||nofgd=1}}</nowiki><br><nowiki>{{Fl|8|Add me to the FGD too!|Because I'm not there!|nofgd=1}}</nowiki></code> || {{Fl|4|Add me to the FGD||nofgd=1}}{{Fl|8|Add me to the FGD too!|Because I'm not there!|nofgd=1}}
| <code>nofgd</code> || This flag isn't available in the official FGD. || <code><nowiki>{{Fl|4|Add me to the FGD||nofgd=1}}</nowiki></code><br><code><nowiki>{{Fl|8|Add me to the FGD too!|Because I'm not there!|nofgd=1}}</nowiki></code> || {{Fl|4|Add me to the FGD||nofgd=1}}{{Fl|8|Add me to the FGD too!|Because I'm not there!|nofgd=1}}
|-
|-
| <code>since</code> || This f;ag is available since this game. Can use either <nowiki>{{<game> add}}</nowiki> or {{tl|Since}} templates. || <code><nowiki>{{Fl|16|I like Alien Swarm|since={{as}}}}</nowiki><br><nowiki>{{Fl|32|I like Alien Swarm too!|I'm available in Portal 2, too!|since={{as}}}}</nowiki></code> || {{Fl|16|I like Alien Swarm|since={{as}}}}{{Fl|32|I like Alien Swarm too!|I'm available in Portal 2, too!|since={{as}}}}
| <code>since</code> || This flag is available since this game. Can use either <nowiki>{{<game> add}}</nowiki> or {{tl|Since}} templates. || <code><nowiki>{{Fl|16|I like Alien Swarm|since={{as}}}}</nowiki></code><br><code><nowiki>{{Fl|32|I like Alien Swarm too!|I'm available in Portal 2, too!|since={{as}}}}</nowiki></code> || {{Fl|16|I like Alien Swarm|since={{as}}}}{{Fl|32|I like Alien Swarm too!|I'm available in Portal 2, too!|since={{as}}}}
|-
|-
| <code>also</code> || This flag is also available in this game. Can use either <nowiki>{{<game> also}}</nowiki> or {{tl|Also}} templates. || <code><nowiki>{{Fl|16|I like Alien Swarm|since={{as}}|also={{GMOD}}}}</nowiki><br><nowiki>{{Fl|32|I like Alien Swarm too!|I'm available in Portal 2, too! But also in GMOD!|since={{as}}|also={{GMOD}}}}</nowiki></code> || {{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}}}}
| <code>also</code> || This flag is also available in this game. Can use either <nowiki>{{<game> also}}</nowiki> or {{tl|Also}} templates. || <code><nowiki>{{Fl|16|I like Alien Swarm|since={{as}}|also={{GMOD}}}}</nowiki></code><br><code><nowiki>{{Fl|32|I like Alien Swarm too!|I'm available in Portal 2, too! But also in GMOD!|since={{as}}|also={{GMOD}}}}</nowiki></code> || {{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}}}}
|-
|-
| <code>only</code> || This flag is available only in this game. Can use either <nowiki>{{<game> only}}</nowiki> or {{tl|Only}} templates. || <code><nowiki>{{Fl|64|I love Alien Swarm|only={{as}}}}</nowiki><br>;nbsp<nowiki>{{Fl|128|I love Alien Swarm too!|I'm only available in Alien Swarm!|only={{as}}}}</nowiki></code> || {{Fl|64|I love Alien Swarm|only={{as}}}}{{Fl|128|I love Alien Swarm too!|I'm only available in Alien Swarm!|only={{as}}}}
| <code>only</code> || This flag is available only in this game. Can use either <nowiki>{{<game> only}}</nowiki> or {{tl|Only}} templates. || <code><nowiki>{{Fl|64|I love Alien Swarm|only={{as}}}}</nowiki></code><br><code><nowiki>{{Fl|128|I love Alien Swarm too!|I'm only available in Alien Swarm!|only={{as}}}}</nowiki></code> || {{Fl|64|I love Alien Swarm|only={{as}}}}{{Fl|128|I love Alien Swarm too!|I'm only available in Alien Swarm!|only={{as}}}}
|-
|-
| <code>not</code> || This flag is not available just in this game. Only uses the template {{tl|Not}}. || <code><nowiki>{{Fl|16|I like Alien Swarm!|since={{as}}|not={{csgo}}}}</nowiki><br>;nbsp<nowiki>{{Fl|32|I like Alien Swarm too!|I'm available in Portal 2 too, but not in CS:GO|since={{as}}|not={{csgo}}}}</nowiki></code> || {{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}}}}
| <code>not</code> || This flag is not available just in this game. Only uses the template {{tl|Not}}. || <code><nowiki>{{Fl|16|I like Alien Swarm!|since={{as}}|not={{csgo}}}}</nowiki></code><br><code><nowiki>{{Fl|32|I like Alien Swarm too!|I'm available in Portal 2 too, but not in CS:GO|since={{as}}|not={{csgo}}}}</nowiki></code> || {{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}}}}
|-
|-
| <code>removed</code> || This flag was removed in this game onwards. Only uses the template {{tl|Removed}}. || <code><nowiki>{{Fl|16|I like Alien Swarm|since={{as}}|removed={{portal2}}}}</nowiki><br>;nbsp<nowiki>{{Fl|32|I like Alien Swarm too!|Actually... I'm not here anymore since Portal 2, including CS:GO...|since={{as}}|removed={{portal2}}}}</nowiki></code> || {{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}}}}
| <code>removed</code> || This flag was removed in this game onwards. Only uses the template {{tl|Removed}}. || <code><nowiki>{{Fl|16|I like Alien Swarm|since={{as}}|removed={{portal2}}}}</nowiki></code><br><code><nowiki>{{Fl|32|I like Alien Swarm too!|Actually... I'm not here anymore since Portal 2, including CS:GO...|since={{as}}|removed={{portal2}}}}</nowiki></code> || {{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}}}}
|}
|}


== See also ==
== See also ==
* [[Template:KV]]
* [[Template:KV]]
* [[Template:IO]]
* [[Template:I]]
* [[Template:MatParam]]
* [[Template:O]]
* [[Template:MatParamDef]]


<includeonly>{{sandbox other||
<includeonly>{{sandbox other||

Latest revision as of 12:25, 23 August 2025

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

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

Usage

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

Note.pngNote:Don't forget to use {{=}} 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}}
I'm deprecated : [1] Obsolete
I'm deprecated too! : [2] 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}}
Add me to the FGD : [4] !FGD
Add me to the FGD too! : [8] !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}}}}
I like Alien Swarm : [16] (in all games since Alien Swarm)
I like Alien Swarm too! : [32] (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}}}}
I like Alien Swarm : [16] (in all games since Alien Swarm) (also in Garry's Mod)
I like Alien Swarm too! : [32] (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}}}}
I love Alien Swarm : [64] (only in Alien Swarm)
I love Alien Swarm too! : [128] (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}}}}
I like Alien Swarm : [16] (in all games since Alien Swarm) (not in Counter-Strike: Global Offensive)
I like Alien Swarm too! : [32] (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}}}}
I like Alien Swarm : [16] (in all games since Alien Swarm) (removed since Portal 2)
I like Alien Swarm too! : [32] (in all games since Alien Swarm) (removed since Portal 2)
Actually... I'm not here anymore since Portal 2, including CS:GO...

See also