Jump to content

Topic on Module talk:Version

Module constructs nonsense unicode strings for beta variables, when there's no active beta branch

3
FeRDNYC (talkcontribs)

As I initially mentioned over here instead, while the various MW beta version Foo templates have now been protected against showing bad data during periods when there is no beta branch to be reported on, the actual Module code itself is still producing that bad data. For example:

  • {{#invoke:Version|get|beta|branch}} => (...which is fine, but when concatenated with the tag prefix...)
  • {{#invoke:Version|get|beta|git}} => REL1_�
  • {{#invoke:Version|get|beta|url}} => WRONG

Heh! OK, "WRONG" is pretty amusing, I hadn't seen that one yet. (That's actually my fault, for using a bad parameter to #invoke. I hadn't realized that the {{MW beta branch link}}-type templates were constructing the URLs themselves, using the templates that {{#invoke:Version|get|beta|git}} and ...|branch}}.)

Legoktm (talkcontribs)

I updated the docs to indicate that beta is like alpha and only has defined behavior for "branch". I think it should be possible to fix properly though.

FeRDNYC (talkcontribs)

Whoops! Summarized the wrong topic. Thanks for looking into it!

Reply to "Module constructs nonsense unicode strings for beta variables, when there's no active beta branch"