Navigation menu

WoW:API GetTitleName: Difference between revisions

Jump to navigation Jump to search
m
Move page script moved page API GetTitleName to WoW:API GetTitleName without leaving a redirect
m (flagged as API stub)
m (Move page script moved page API GetTitleName to WoW:API GetTitleName without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Stub/API}}
{{wowapi}} __NOTOC__
Get the name of the title used by the player.


titleName = GetTitleName(titleId)
== Parameters ==
=== Arguments ===
:(titleId)


:;titleId : Number - The number of the title currently select by the player.
Gets the name of the title associated with a title index.
=== Returns ===
local titleName = GetTitleName([[titleId]])
:name
 
 
== Arguments ==
:;[[titleId]] : Number - The index of the title to get the name of.
 
 
 
== Returns ==
:;titleName : String - The name of the title.
 


:;name : String - The name of the title.
== Example ==
== Example ==
<!-- begin code -->
  local titleId = GetCurrentTitle();
  local titleId = GetCurrentTitle();
  local titleName = GetTitleName(titleId);
  local titleName = GetTitleName([[titleId]]);
<!-- end code -->
 
__NOTOC__


== Notes ==
== Details ==
Supported starting in build 20000
: Introduced in build 20000.
Anonymous user