Difference between revisions of "Template:Term/ListingNameTemplate"

From Maths
Jump to: navigation, search
m
(Testing modified version)
Line 1: Line 1:
{{{1|}}}{{#if:{{{s|{{#if:{{{t|}}}|{{ucfirst:{{{t|}}}}} Theory|}}}}}|{{space}}({{{s|{{#if:{{{t|}}}|{{ucfirst:{{{t|}}}}} Theory|}}}}})|}}<noinclude>
+
{{{1|}}}{{#if:{{~targ|1={{{s|}}}<!--DEFAULT-->|2={{#if:{{{t|}}}|{{ucfirst:{{{t|}}}}} Theory|}}<!--END DEFAULT-->}}<!--first if term end-->|{{space}}({{~targ|1={{{s|}}}<!--start-->|2={{#if:{{{t|}}}|{{ucfirst:{{{t|}}}}} Theory|}}<!--end-->}})|}}<noinclude>
 
==Changelog==
 
==Changelog==
 
* First version [[User:Alec|Alec]] ([[User talk:Alec|talk]]) 12:26, 3 February 2018 (UTC)
 
* First version [[User:Alec|Alec]] ([[User talk:Alec|talk]]) 12:26, 3 February 2018 (UTC)
 
** Forgot brackets around subject [[User:Alec|Alec]] ([[User talk:Alec|talk]]) 12:29, 3 February 2018 (UTC)
 
** Forgot brackets around subject [[User:Alec|Alec]] ([[User talk:Alec|talk]]) 12:29, 3 February 2018 (UTC)
 +
* Using the new [[Template:~targ]] we replace the {{C|<nowiki>{{{a|f({{{b|}}})}}}</nowiki>}}-type logic, as if we have {{C|<nowiki>|a=|b=...|</nowiki>}} in the caller {{C|a}}, although empty, is still defined, thus {{C|<nowiki>{{{a|...}}}</nowiki>}} will always become the empty string in this case.
 
</noinclude>
 
</noinclude>

Revision as of 17:38, 3 February 2018

Changelog

  • First version Alec (talk) 12:26, 3 February 2018 (UTC)
    • Forgot brackets around subject Alec (talk) 12:29, 3 February 2018 (UTC)
  • Using the new Template:~targ we replace the {{{a|f({{{b|}}})}}}-type logic, as if we have |a=|b=...| in the caller a, although empty, is still defined, thus {{{a|...}}} will always become the empty string in this case.