Template:This is a/check name: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude>
<includeonly><onlyinclude>
{{#if:{{{arg|}}}|
{{#if:{{{arg|}}}|
{{#ifeq:{{ucfirst:{{ {{{arg}}}|link}}}}|{{ucfirst:{{#switch:{{{arg}}}
{{#ifeq:{{ucfirst:{{ {{{arg}}}|link}}}}|{{ucfirst:{{#switch:{{{arg}}}
|Black Mesa = Black Mesa (Source)
|Black Mesa = Black Mesa (Source)
|Source SDK Bases = Source SDK Base
|Source SDK Bases = Source SDK Base
|Source 2007|Source 2009|Source MP = Orange Box (engine branch)
|Source 2013 Multiplayer|Source 2013 Singleplayer = Source 2013
|Source 2013 Multiplayer|Source 2013 Singleplayer = Source 2013
|Counter-Strike 1 series = Counter-Strike series
|Team Fortress 2 branch = Team Fortress 2 engine branch
| #default = {{{arg}}}
| #default = {{{arg}}}
}}
}}
Line 11: Line 14:
}}
}}
|}}
|}}
</onlyinclude>
</onlyinclude></includeonly>
 
<!-- There cant be nested comments, so i added "/* */"; This should be replaced when the "actualname" param is set for most games
<onlyinclude>
{{#if:{{{arg|}}}|
{{#ifeq:{{ucfirst:{{ {{{arg}}}|actualname}}}}|Missing untranslated name!
|{{#ifeq:{{ucfirst:{{ {{{arg}}}|name}}}}|{{{arg}}} /* If actualname != Missing untranslated name!, use the name */
        |
        |* {{this is a/strings|wrong name|param={{{param}}}|arg={{{arg}}} }}
}}
    |{{#ifeq:{{ucfirst:{{ {{{arg}}}|actualname}}}}|{{{arg}}} /* If actualname == Missing untranslated name!, use actualname for comparison */
|
|* {{this is a/strings|wrong name|param={{{param}}}|arg={{{arg}}} }}
}}
}}
|}}
</onlyinclude>
-->

Latest revision as of 07:18, 12 June 2025