m
Move page script moved page API UnitName to WoW:API UnitName without leaving a redirect
mNo edit summary |
m (Move page script moved page API UnitName to WoW:API UnitName without leaving a redirect) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 7: | Line 7: | ||
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | <!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | ||
name, realm = UnitName("unit") | name, realm = UnitName("unit") | ||
== Parameters == | == Parameters == | ||
| Line 18: | Line 17: | ||
=== Returns === | === Returns === | ||
<!-- List each return value, together with its type --> | <!-- List each return value, together with its type --> | ||
:;name : String - The name of the specified unit, "nil" if not applicable (e.g., if the specified unit is "target" but the player has no target selected). | :;name | ||
:;realm : String - The realm the specified unit is from. | :: String - The name of the specified unit, "nil" if not applicable (e.g., if the specified unit is "target" but the player has no target selected). | ||
:;realm | |||
:: String - The realm the specified unit is from. For "player" returns nil, for any other character on your own realm returns an empty string. This is as of 1.12 | |||
== Example == | == Example == | ||