Wowpedia

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

READ MORE

Wowpedia
Register
Advertisement

Returns header information about an article.

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

Parameters[]

Arguments[]

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

Returns[]

id, title, isHot, isNew
id
number - 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[]

 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[]

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