Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classic parser tag arguments not interpreted correctly #12

Closed
JohnRDOrazio opened this issue Oct 6, 2021 · 3 comments
Closed

Classic parser tag arguments not interpreted correctly #12

JohnRDOrazio opened this issue Oct 6, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@JohnRDOrazio
Copy link

Describe the bug
It seems that the arguments are not being read correctly, or in the correct order, when using the classic #ev parser tag.

To Reproduce
Steps to reproduce the behavior:

  1. Insert a classic parser tag for youtube on the page, such as {{#ev:youtube|oCghUlTLKVA||center|||rel=0&enablejsapi=1&origin=https://mywiki.example}}
  2. Save the page
  3. See error EmbedVideo was given an illegal value for the valignment parameter "rel=0&enablejsapi=1&origin=https://mywiki.example". Valid values are "top", "middle", "bottom", or "baseline".

Expected behavior
The arguments should be read in this order:

{{#ev:service|id|dimensions|alignment|description|container|urlargs|autoresize}}

Between alignment and urlargs there should be two arguments description and container. If these are not used, there should be three pipes. However the only way to get rid of this error is to remove a pipe, and put the urlargs in the place of the container argument. However this would require updating all #ev parser tags on all wiki pages.

Screenshots
Immagine 2021-10-06 022515

Technical information:

  • OS: Ubuntu 20.04
  • Browser: chrome
  • Extension Version: v3.0.4
  • MediaWiki Version: v1.36.2
  • Host type: dedicated

Additional context

@JohnRDOrazio JohnRDOrazio added the bug Something isn't working label Oct 6, 2021
@octfx
Copy link
Member

octfx commented Oct 6, 2021

Thanks for thorough report!
The passed arguments should now be read in the expected order.
Would you mind testing the current develop branch?

@JohnRDOrazio
Copy link
Author

I can confirm that 04f9a20 fixes this issue

@octfx
Copy link
Member

octfx commented Oct 6, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants