Template:I WeaponSpawnSingle/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(we do a little documentation)
 
m (clean up, replaced: See Also → See also, {{Documentation subpage → {{Doc/subpage)
 
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 is just a shell template for I BaseEntity and I BaseAnimating.
This is just a shell template for I BaseEntity and I BaseAnimating.
Line 18: Line 18:
<code><nowiki>{{I WeaponSpawnSingle|portal2=1}}</nowiki></code> will display the {{portal2branch|4}}/{{csgobranch|4}} version:
<code><nowiki>{{I WeaponSpawnSingle|portal2=1}}</nowiki></code> will display the {{portal2branch|4}}/{{csgobranch|4}} version:
{{expandBox|{{I WeaponSpawnSingle|portal2=1}}}}
{{expandBox|{{I WeaponSpawnSingle|portal2=1}}}}
==See Also==
==See also==
*{{tl|I BaseAnimating}}
*{{tl|I BaseAnimating}}
*{{tl|I BaseEntity}}
*{{tl|I BaseEntity}}

Latest revision as of 02:24, 12 January 2024

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

This is just a shell template for I BaseEntity and I BaseAnimating.

Usage

This template accepts {{{base}}}, {{{l4d2}}}, {{{as}}}, {{{tf2}}}, and {{{portal2}}}. The first three are passed to BaseEntity, and the last two are passed to I BaseAnimating; however, {{{tf2}}} also activates {{{base}}}, and {{{portal2}}} also activates {{{as}}}. If none are set, both will display their default forms (i.e., all inputs).

{{{tf2}}} is for displaying inputs specific to Team Fortress 2 Team Fortress 2, while all the others are for displaying inputs added by those games.

Examples

{{I WeaponSpawnSingle|base=1}} will display the Source 2013 Source 2013/Left 4 Dead Left 4 Dead version:


{{I WeaponSpawnSingle|tf2=1}} will display the Team Fortress 2 Team Fortress 2 version:


{{I WeaponSpawnSingle|l4d2=1}} will display the Left 4 Dead 2 Left 4 Dead 2 version:


{{I WeaponSpawnSingle|as=1}} will display the Alien Swarm engine branch Alien Swarm engine branch version:


{{I WeaponSpawnSingle|portal2=1}} will display the Portal 2 engine branch Portal 2 engine branch/CS:GO engine branch CS:GO engine branch version:


See also

  • {{I BaseAnimating}}
  • {{I BaseEntity}}
  • {{O Weapon}}