man1aq 1 Posted May 4, 2015 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? Quote Share this post Link to post Short link Share on other sites
sirmax 5,499 #268325 Posted May 4, 2015 (edited) 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 May 4, 2015 by sirmax 2 Quote Share this post Link to post Short link Share on other sites
man1aq 1 #268335 Posted May 4, 2015 Thank you. That did the job! Could you put in readme file couple more examples of advanced macro usage? Quote Share this post Link to post Short link Share on other sites
sirmax 5,499 #268342 Posted May 4, 2015 I don't know what examples would be useful. May be someone from "power XVM users" can do it. Quote Share this post Link to post Short link Share on other sites