Template talk:Cl

From Angelina Jordan Wiki
Revision as of 21:42, 2 September 2025 by Dcljr (talk | contribs) (Why ifeq)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Why ifeq

@Most2dot0: Am I missing something? Instead of using {{#ifeq:}} to test whether U+2063 has been passed in the 2nd parameter (which I assume is what you're doing, since there's a non-printing character in that location in the code), why not just use {{#if:}}, like so?

 {{#if:{{{1|}}}
  | {{#if: {{{2|}}} | [[{{{1}}}|{{{2}}}]] }}
 }}

Which can also be done this way:

 {{#if: {{both|{{{1|}}}|{{{2|}}}}} | [[{{{1}}}|{{{2}}}]] }} }}

AFAICT, U+2063 counts as whitespace, and hence would evaluate as false. - dcljr (talk) 21:42, 2 September 2025 (UTC)