AndyB is {x} place holder and SomeOtherUsernameHere is {y} placeholder. AndyB is coming from $visitor.username and SomeOtherUsernameHere is coming from $user.username
Can you show the code example where the above phrase is used? That would allow me to understand the question more clearly (English isn't my first language )
I think you're getting confused by the 'name=' part in which case the screenshot I posted has {name} in the Phrase text.
Have you tried what I posted with your code? {$user.username} is being stored in 'name' ({name}) for use in the phrase. Just like @batpool52! examples shows {x} and {y} placeholders.
{xenhrase there_no_messages_on_xs_profile_yet, 'name={$user.username}'} is the code that goes in the template. (Change $user.username to $visitor.username if you're trying to use the current visitor's info instead). Then go create the phrase "there_no_messages_on_xs_profile_yet" (first parameter in the template call), with the content "there are no message on {name}'s profile yet." I've bolded the parts that match up.
@Steve F and @batpool52! have done a great job explaining this, I think you're over complicating it, just try doing his exact instructions and after seeing it work, go from there.
In order to use a variable in a phrase, one must add additional code to the normal phrase code. The example below is a normal phrase code used in a template without any additional code:
Code:
{xen:phrase sidebardonations_message}
In the template code below I added two variables to the normal phrase code which will be passed to the phrase, {name} and {boardTitle} will both be passed to the phrase.
It depends on where you use it. Take message_user_info template, for example. On that template, $user contains info of the message whose user it belongs to. But $visitor will always contains info of the one currently viewing the template on the live site (literally, the visitor).