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

From Valve Developer Community
Jump to navigation Jump to search
m (the previous edit comment was supposed to be this: "This should work, if not, how?")
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:
|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
|Counter-Strike 1 series = Counter-Strike series
|Team Fortress 2 branch = Team Fortress 2 engine branch
| #default = {{{arg}}}
| #default = {{{arg}}}
}}
}}
Line 13: Line 15:
|}}
|}}
</onlyinclude></includeonly>
</onlyinclude></includeonly>
<noinclude><!-- There cant be nested comments, so i added "/* */"; This should be replaced when the "actualname" param is set for most games
{{#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}}} }}
}}
}}
|}}
--></noinclude>

Latest revision as of 07:18, 12 June 2025