Template talk:Stub text

will not work -- Pyrrhus (talk) 14:03, August 22, 2019 (EDT)
will not work, since MediaWiki:lang does not contain a $1, and does not accept parameters. I think you are confusing variables with parser functions. With variables, you can set a fallback value, as in. This works. But it won't work with a parser function, so won't work. Here is the code you are looking for:

Pyrrhus (talk) 14:03, August 22, 2019 (EDT)
 * This isn't looking for a parameter, syntax just means if the value returned by "abc" is blank then default to "test".  doesn't take parameters but finds the user's language and uses the value MediaWiki:lang/de (for instance). Any user with a language  not set falls back to "en" using the setting in LocalSettings.php. The code to fallback to "en" should hopefully never be used, but isn't a problem to leave there.  is more useful because if no "lang" parameter exists it defaults to "en" - this is more useful for things like defaulting little used languages or variants / dialects to a language with better support, eg if Afrikaans is passed in then it can fall back to English when no Afrikaans is available, or Galician (regional language in Spain) can fall back to Spanish (Spain has multiple official languages). Two  is used for templates, if statements or switches etc, and int:lang, three  are used for parameters or magic words.

This template is now working after today's changes here and in the Asbox module. notjusttired (talk) 14:32, August 22, 2019 (EDT)
 * You're confused.  does take parameters and you have introduced a syntax error.  I have described how  takes parameters here: MEpedia:Template_translation.  Again, you are confusing variables and parser functions.  Please review what I wrote so you don't create more syntax errors.
 * Pyrrhus (talk) 17:21, August 22, 2019 (EDT)