Template:This is a: Difference between revisions
Jump to navigation
Jump to search
1416006136 (talk | contribs) mNo edit summary |
1416006136 (talk | contribs) (added QC command; added aliases for convar and console command; code simplification) |
||
Line 16: | Line 16: | ||
|#default={{#switch:{{lc:{{{internal}}}}} | |#default={{#switch:{{lc:{{{internal}}}}} | ||
| 1 | | 1 | ||
| true = {{main other|{{#if:{{{nocat|}}}|| | | true = {{main other|{{#if:{{{nocat|}}}||[[Category:Internal entities]]}}}} | ||
| #default = {{main other|{{#if:{{{nocat|}}}|| | | #default = {{main other|{{#if:{{{nocat|}}}||[[Category:Non-internal entities]]}}}} }} | ||
|e2|brush={{main other|{{#if:{{{nocat|}}}|| | |e2|brush={{main other|{{#if:{{{nocat|}}}||[[Category:Non-internal entities]]}}}} | ||
|e1|e3|int point|int brush={{main other|{{#if:{{{nocat|}}}|| | |e1|e3|int point|int brush={{main other|{{#if:{{{nocat|}}}||[[Category:Internal entities]]}}}} | ||
|s1|s0|c1|c0|c2|convar|command|QC command=}}}}<!-- | |||
++ Icon for game ++ | ++ Icon for game ++ | ||
Line 97: | Line 98: | ||
|eo=vojan estaĵon | |eo=vojan estaĵon | ||
|zh=路径实体}}]] | |zh=路径实体}}]] | ||
|convar=[[Developer Console#Submitting|{{Autolang | |c2|convar=[[Developer Console#Submitting|{{Autolang | ||
|console variable | |console variable | ||
|zh=控制台变量}}]] | |zh=控制台变量}}]] | ||
|command=[[Developer Console#Submitting|{{Autolang | |c1|command=[[Developer Console#Submitting|{{Autolang | ||
|console command | |console command | ||
|zh=控制台命令}}]] | |zh=控制台命令}}]] | ||
|c0|QC command=[[Category:QC Commands|{{Autolang | |||
|QC command | |||
|zh=QC 命令}}]] | |||
}}<!-- | }}<!-- | ||
Line 183: | Line 187: | ||
-->}}<!-- | -->}}<!-- | ||
+ Warning + | + Warning (if {{{type}}} is not specified + | ||
-->{{#ifeq:{{{type|}}}||{{Warning|{{Autolang|The necessary parameter {{Code|{{Param|[[Template:Entity|type]]}}}} has not been specified.|zh=必要的参数 {{Code|{{Param|[[Template:Entity|type]]}}}} 尚未指定。}}}}}}<!-- | -->{{#ifeq:{{{type|}}}||{{Warning|{{Autolang|The necessary parameter {{Code|{{Param|[[Template:Entity|type]]}}}} has not been specified.|zh=必要的参数 {{Code|{{Param|[[Template:Entity|type]]}}}} 尚未指定。}}}}}}<!-- | ||
Line 190: | Line 194: | ||
-->{{#if: {{{game|}}} | -->{{#if: {{{game|}}} | ||
| {{Main other|{{#if:{{{nocat|}}}||[[Category:{{{game}}} {{{topic|{{#switch:{{{type|}}}|#default=Entities|convar=Console Variables|command=Console Command}}<!---->}}}]]}}}} | | {{Main other|{{#if:{{{nocat|}}}||[[Category:{{{game}}} {{{topic|<!-- | ||
-->{{#switch:{{{type|}}}<!-- | |||
-->|#default=Entities<!-- | |||
-->|c2|convar=Console Variables<!-- | |||
-->|c1|command=Console Command<!-- | |||
-->|c0|QC command=QC Command<!-- | |||
-->}}<!---->}}}]]}}}} | |||
| {{#if: {{{series|}}} | | {{#if: {{{series|}}} | ||
| {{Main other|{{#if:{{{nocat|}}}||[[Category:{{{series}}} {{{topic|{{#switch:{{{type|}}}|#default=Entities|convar=Console Variables|command=Console Command}}<!---->}}}]]}}}} | | {{Main other|{{#if:{{{nocat|}}}||[[Category:{{{series}}} {{{topic|<!-- | ||
-->{{#switch:{{{type|}}}<!-- | |||
-->|#default=Entities<!-- | |||
-->|c2|convar=Console Variables<!-- | |||
-->|c1|command=Console Command<!-- | |||
-->|c0|QC command=QC Command<!-- | |||
-->}}<!---->}}}]]}}}} | |||
| {{#if: {{{seriescs|}}} | | {{#if: {{{seriescs|}}} | ||
| {{Main other|{{#if:{{{nocat|}}}||[[Category:{{{seriescs}}}: Source {{#switch:{{{type|}}}|#default=Entities|convar=Console Variables|command=Console Command}}]]}}}} | | {{Main other|{{#if:{{{nocat|}}}||[[Category:{{{seriescs}}}: Source <!-- | ||
| {{Main other|{{#if:{{{nocat|}}}||[[Category:{{#switch:{{{engine|}}}|#default|0|2|source=Source|1|goldsrc|gldsrc=GoldSrc|3|source2=Source 2}} Base {{#switch:{{{type|}}}|#default=Entities|convar=Console Variables|command=Console Command}}]]}}}} | -->{{#switch:{{{type|}}}<!-- | ||
-->|#default=Entities<!-- | |||
-->|c2|convar=Console Variables<!-- | |||
-->|c1|command=Console Command<!-- | |||
-->|c0|QC command=QC Command<!-- | |||
-->}}]]}}}} | |||
| {{Main other|{{#if:{{{nocat|}}}||[[Category:<!-- | |||
-->{{#switch:{{{engine|}}}<!-- | |||
-->|#default|0|2|source=Source<!-- | |||
-->|1|goldsrc|gldsrc=GoldSrc<!-- | |||
-->|3|source2=Source 2<!-- | |||
-->}} Base <!-- | |||
-->{{#switch:{{{type|}}}<!-- | |||
-->|#default=Entities<!-- | |||
-->|c2|convar=Console Variables<!-- | |||
-->|c1|command=Console Command<!-- | |||
-->|c0|QC command=QC Command<!-- | |||
-->}}]]}}}} | |||
}} | }} | ||
}} | }} | ||
Line 206: | Line 239: | ||
|e4|mesh={{#if:{{{nocat|}}}||[[Category:Mesh Entities]]}} | |e4|mesh={{#if:{{{nocat|}}}||[[Category:Mesh Entities]]}} | ||
|e5|path={{#if:{{{nocat|}}}||[[Category:Path Entities]]}} | |e5|path={{#if:{{{nocat|}}}||[[Category:Path Entities]]}} | ||
}}{{#if:{{{nocat|}}}||{{#switch:{{{type|}}}|#default=[[Category:Entities]]|convar|command=}}}}}}</onlyinclude></includeonly> | }}<!-- | ||
-->{{#if:{{{nocat|}}}||<!-- | |||
-->{{#switch:{{{type|}}}<!-- | |||
-->|#default=[[Category:Entities]]<!-- | |||
-->|c1|c2|c0|QC command|convar|command=<!-- | |||
-->}}<!-- | |||
-->}}}}</onlyinclude></includeonly> | |||
[[Category:Templates]][[Category:Formatting templates]][[Category:Entity Templates]][[Category:FGD Templates]] | [[Category:Templates]][[Category:Formatting templates]][[Category:Entity Templates]][[Category:FGD Templates]] |