Difference between revisions of "Template:Point ent"

From Valve Developer Community
Jump to: navigation, search
(Added doc template.)
(Used colorful template when the game icon is at the beginning of the sentence.)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{lang|Template:Point ent}}</noinclude><includeonly>{{#switch:{{lc:{{{internal}}}}}
+
{{lang|Template:Point ent}}<!--
 +
 
 +
--><onlyinclude><includeonly><!--
 +
 
 +
-->{{#switch:{{lc:{{{internal}}}}}
 
| #default    = [[Category:Non-internal entity]]
 
| #default    = [[Category:Non-internal entity]]
 
| 1          =
 
| 1          =
Line 5: Line 9:
 
| false      = [[Category:Non-internal entity]]
 
| false      = [[Category:Non-internal entity]]
 
| true        =
 
| true        =
}}</includeonly>{{#if: {{{sprite|}}} | [[File:{{#ifeq: {{{sprite}}} | 1 | {{{1|{{PAGENAME}}}}} | {{{sprite}}} }}.png|left|link=]] }}{{#if: {{{icon|}}} |{{{{{icon}}}}}&nbsp; }}{{#if:{{{1|}}} |{{DISPLAYTITLE:{{{1}}}}}'''<code>{{{1}}}</code>'''|This}} is a {{#switch:{{lc:{{{cut}}}}}
+
}}{{#if: {{{sprite|}}}
 +
| [[File:{{#ifeq: {{{sprite}}}
 +
  | 1
 +
  | {{{1|{{PAGENAME}}}}}.png
 +
  | {{{sprite}}}
 +
  }}|left|link=]]
 +
}}<!--
 +
 
 +
-->{{#if: {{{icon|}}}
 +
| {{ {{{icon}}} }}&nbsp;
 +
}}<!--
 +
 
 +
-->{{#if:{{{1|}}}
 +
| {{DISPLAYTITLE:{{{1}}}}}'''<code>{{{1}}}</code>'''
 +
| This
 +
}}<!--
 +
 
 +
--> is a <!--
 +
 
 +
-->{{#switch:{{lc:{{{cut}}}}}
 
| #default    =
 
| #default    =
| 1          = cutᅠ[[Category:Cut Entities]]
+
| 1          = cut&nbsp;ᅠ[[Category:Cut Entities]]
 
| 0          =  
 
| 0          =  
 
| false      =  
 
| false      =  
| true        = cutᅠ[[Category:Cut Entities]]
+
| true        = cutᅠ&nbsp;[[Category:Cut Entities]]
}}{{#if:{{{internal|}}} | [[internal entity|internal]]{{Main other|[[Category:Internal entities]]|}} }} [[point entity]] available in {{#if: {{{series|}}} | the [[{{{series}}}]] series | {{#if: {{{seriescs|}}} | the [[{{{seriescs}}}]] series {{#if:{{{game|}}} | (since [[{{{game}}}]]) }} | {{#if: {{{game|}}} | [[{{{game}}}]] | all {{{engine|Source}}} games {{#if: {{{since|}}} | since {{game link|{{{since}}}}} }} }} }} }}. {{#if: {{{game|}}} |{{Main other|[[Category:{{{game}}} Entities]]|}} | {{#if: {{{series|}}} |{{Main other|[[Category:{{{series}}} Entities]]|}} | {{#if: {{{seriescs|}}} |{{Main other|[[Category:{{{seriescs}}}: Source Entities]]|}} | <includeonly>{{Main other|[[Category:{{{engine|Source}}} Base Entities]]|}}</includeonly>}} }} }}<includeonly>{{Main other|[[Category:Point Entities]][[Category:Entities]]|}}</includeonly><noinclude>
+
}}<!--
 +
 
 +
-->{{#if:{{{internal|}}}
 +
| [[internal entity|internal]]{{Main other|[[Category:Internal entities]]|}}
 +
}}<!--
 +
 
 +
--> [[point entity]] available in <!--
 +
 
 +
-->{{#if: {{{series|}}}
 +
| the [[{{{series}}}]] series
 +
| {{#if: {{{seriescs|}}}
 +
  | the [[{{{seriescs}}}]] series <!--
 +
    -->{{#if:{{{game|}}}
 +
    | (since {{game name|name={{{game}}}}})
 +
    }}
 +
  | {{#if: {{{game|}}}
 +
    | {{#if: {{{icon|}}} | {{game name|name={{{game}}}|icon=0}} | {{game name|name={{{game}}}}} }}
 +
    | all {{{engine|Source}}} games <!--
 +
      -->{{#if: {{{since|}}}
 +
      | since {{game name|name={{{since}}}}}
 +
      }}
 +
    }}
 +
  }}
 +
}}. <!--
 +
 
 +
-->{{#if: {{{game|}}}
 +
| {{Main other|[[Category:{{{game}}} Entities]]|}}
 +
| {{#if: {{{series|}}}
 +
  | {{Main other|[[Category:{{{series}}} Entities]]|}}
 +
  | {{#if: {{{seriescs|}}}
 +
    | {{Main other|[[Category:{{{seriescs}}}: Source Entities]]|}}
 +
    | {{Main other|[[Category:{{{engine|Source}}} Base Entities]]|}}
 +
    }}
 +
  }}
 +
}}<!--
 +
 
 +
-->{{Main other|[[Category:Point Entities]][[Category:Entities]]|}}<!--
 +
 
 +
--></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 18:51, 30 September 2021

English Français Русский 简体中文 简体中文
Template icon Template documentation[view] [edit] [history] [purge]

Examples

Wikitext Result
{{point ent}}
This is a point entity available in all Source games.
{{point ent|info_player_start}}
info_player_start is a point entity available in all Source games.
{{point ent|game=Half-Life 2}}
This is a point entity available in Half-Life 2 Half-Life 2 .
{{point ent|series=Counter-Strike}}
This is a point entity available in the Counter-Strike series.
{{point ent|seriescs=Counter-Strike|game=Counter-Strike: Source}}
This is a point entity available in the Counter-Strike series (since Counter-Strike: Source Counter-Strike: Source ).
{{point ent|icon=tf2}}
Team Fortress 2 This is a point entity available in all Source games.
{{point ent|icon=tf2|game=Team Fortress 2}}
Team Fortress 2 This is a point entity available in Team Fortress 2 .

See Also