Template talk:Deprecated
Add topicAppearance
Latest comment: 2 months ago by Wladek92 in topic template codeĀ : dead if branch Manual:{{{newvarname}}}Ā ?
template codeĀ : dead if branch Manual:{{{newvarname}}}Ā ?
[edit]It 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)