Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
m (Correct result for guild.)
m (added note)
Line 26: Line 26:
 
|short||character||character||character||character
 
|short||character||character||character||character
 
|}
 
|}
  +
  +
== Notes ==
  +
* If this a used on a character in the "guild" context, it will return in the character-realm format if there is another character in the same guild with the same name, but on a different realm.
   
 
== Patch history ==
 
== Patch history ==

Revision as of 05:28, 15 January 2017

Returns a version of a character-realm string suitable for use in a given context.

name = Ambiguate("fullName", "context")

Arguments

fullName
String - character-realm for a character, e.g. "Shion-DieAldor"
context
String - context the name will be used in, one of: "all", "guild", "mail", "none", or "short".

Returns

name
String - character or character-realm name combination that would be equivalent to fullName in the specified context.
Context Same Realm Different Realm
Same Guild Other Guild Same Guild Other Guild
all character character character character-realm
guild character character character character-realm
mail character-realm character-realm character-realm character-realm
none character character character-realm character-realm
short character character character character

Notes

  • If this a used on a character in the "guild" context, it will return in the character-realm format if there is another character in the same guild with the same name, but on a different realm.

Patch history

Mists of Pandaria Patch 5.4.2 (2013-12-10): Added.