Wikia

WoWWiki

API KBSetup GetArticleHeaderData

Talk0
101,384pages on
this wiki
WoW API < KBSetup GetArticleHeaderData

Returns header information about an article.

id, title, isHot, isNew = KBSetup_GetArticleHeaderData(index)

Parameters Edit

Arguments Edit

(index)
index 
Integer - The articles index for that page.

Returns Edit

id, title, isHot, isNew
id 
Integer - The article's id.
title 
String - The article's title.
isHot 
Boolean - Show the "hot" symbol or not
isNew 
Boolean - Show the "new" symbol or not

Example Edit

 local id, title, isHot, isNew = KBSetup_GetArticleHeaderData(1)
 if isNew then
   ChatFrame1:AddMessage("The article " .. id .. "(" .. title .. ") is new.", 1.0, 1.0, 1.0)
 end

Details Edit

  • This will work on the "most asked" articles, not the articles of the active query.

Around Wikia's network

Random Wiki