Jump to content
Korean Random
man1aq

{{language}} macro bugged?

Recommended Posts

Hi, i've tried to set my default value for language macro:

<img src='xvm://res/icons/lang/{{language|eurosojuz}}.png' width='16' height='13'>

and it works just for few seconds (all flags are eurosojuz.png), but when net services (wn8, flags) are loaded it overwrites my value "eurosojuz" back to "default" (default.png).

 

My guess is net services return wrong value ("default" instead of "null"). Am i right?

Share this post


Link to post

Short link
Share on other sites

Hi, i've tried to set my default value for language macro:

<img src='xvm://res/icons/lang/{{language|eurosojuz}}.png' width='16' height='13'>

and it works just for few seconds (all flags are eurosojuz.png), but when net services (wn8, flags) are loaded it overwrites my value "eurosojuz" back to "default" (default.png).

 

My guess is net services return wrong value ("default" instead of "null"). Am i right?

No, all is correct. 'default' is the correct value. You can do what you want using this macro:

{{language=default?eurosojuz|{{language}}}}
Edited by sirmax
  • Upvote 2

Share this post


Link to post

Short link
Share on other sites

Thank you. That did the job! Could you put in readme file couple more examples of advanced macro usage?

Share this post


Link to post

Short link
Share on other sites

I don't know what examples would be useful. May be someone from "power XVM users" can do it.

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...