Jump to content

Template talk:Deprecated

Add topic
From mediawiki.org

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)Reply