Template talk:Deprecated
Latest comment: 2 months ago by Wladek92 in topic template code : dead if branch Manual:{{{newvarname}}} ?
template code : dead if branch Manual:{{{newvarname}}} ?
editIt is a bit difficult to understand but in the sequence below, it is strange that generating the link we make a second test on newvarlink| since we are already in the TRUE branch of a previous newvarlink| test. According to me (?) you never generate part Manual:{{{newvarname}}} and I cannot write the corresponding testcase.
{{#if: {{{newvarlink|}}} | <translate><!--T:2--> This feature was deprecated in version {{trim|{{{1|??}}}}}.</translate> {{{2|}}}{{#if:{{{newvarname|}}}{{{newvarlink|}}}| ''<translate><!--T:3--> See '''[[{{#if:{{{newvarlink|}}}|{{{newvarlink}}}|Manual:{{{newvarname}}}}}|{{{newvarname}}}]]''' for an alternative way to use this feature.</translate>''}} }}
should become:
{{#if: {{{newvarlink|}}} | <translate><!--T:2--> This feature was deprecated in version {{trim|{{{1|??}}}}}.</translate> {{{2|}}}{{#if:{{{newvarname|}}}{{{newvarlink|}}}| ''<translate><!--T:3--> See '''[[{{{newvarlink}}}|{{{newvarname}}}]]''' for an alternative way to use this feature.</translate>''}} }}
Any advice ? Thanks. -- Christian 🇫🇷 FR 🚲 Paris 2024🗼 (talk) 12:39, 9 October 2024 (UTC)