Template:This is a: Difference between revisions
Jump to navigation
Jump to search

Consider discussing changes on the talk page before implementing them.
(Changing High-use param) |
(Todo: Make the warning params into a single warning (end of the template)) |
||
Line 149: | Line 149: | ||
Warning if parameters such as {{{game}}} don't use the full name of a game, engine, etc. (e.g. if {{{game}}} is set to "hl2" instead of "Half-Life 2") | Warning if parameters such as {{{game}}} don't use the full name of a game, engine, etc. (e.g. if {{{game}}} is set to "hl2" instead of "Half-Life 2") | ||
TODO: fix not working on non English pages then remove the conditional that depends on language | TODO: fix not working on non English pages then remove the conditional that depends on language | ||
TODO: Make the warning params into a single warning. The "Template:This is a/check name" is a simple template to check the name, params: {{{param}}} (e.g: game), {{{arg}}} (e.g: {{{game}}}) | |||
-->{{#ifeq:{{language}}|en|{{#if:{{{game|}}}|{{#ifeq:{{ucfirst:{{ {{{game}}}|name}}}}|{{ucfirst:{{{game}}}}}||{{warning|{{this is a/strings|wrong name|param=game|arg={{{game}}}}}}}[[Category:this is a template errors]]}}}}<!-- | -->{{#ifeq:{{language}}|en|<!-- | ||
-->{{#if:{{{game|}}}|{{#ifeq:{{ucfirst:{{ {{{game}}}|name}}}}|{{ucfirst:{{{game}}}}}||{{warning|{{this is a/strings|wrong name|param=game|arg={{{game}}}}}}}[[Category:this is a template errors]]}}}}<!-- | |||
-->{{#if:{{{game1|}}}|{{#ifeq:{{ucfirst:{{ {{{game1}}}|name}}}}|{{ucfirst:{{{game1}}}}}||{{warning|{{this is a/strings|wrong name|param=game1|arg={{{game1}}}}}}}[[Category:this is a template errors]]}}}}<!-- | -->{{#if:{{{game1|}}}|{{#ifeq:{{ucfirst:{{ {{{game1}}}|name}}}}|{{ucfirst:{{{game1}}}}}||{{warning|{{this is a/strings|wrong name|param=game1|arg={{{game1}}}}}}}[[Category:this is a template errors]]}}}}<!-- | ||
-->{{#if:{{{game2|}}}|{{#ifeq:{{ucfirst:{{ {{{game2}}}|name}}}}|{{ucfirst:{{{game2}}}}}||{{warning|{{this is a/strings|wrong name|param=game2|arg={{{game2}}}}}}}[[Category:this is a template errors]]}}}}<!-- | -->{{#if:{{{game2|}}}|{{#ifeq:{{ucfirst:{{ {{{game2}}}|name}}}}|{{ucfirst:{{{game2}}}}}||{{warning|{{this is a/strings|wrong name|param=game2|arg={{{game2}}}}}}}[[Category:this is a template errors]]}}}}<!-- |
Revision as of 00:43, 20 April 2025

This template is used on approximately 2800 pages and changes may be widely noticed.
Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage.Consider discussing changes on the talk page before implementing them.
This is a {{{semi-internal}}} {{{1}}} available in all Source games.
The above documentation is transcluded from Template:This is a/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.