WoW:API KBSetup GetArticleHeaderData: Difference between revisions
Jump to navigation
Jump to search
(New page: {{wowapi}} __NOTOC__ <div style="float: right"><small>'''Main Page'''</small></div> Returns header information about an article. id, title, isHot, isNew = KBSetup_GetA...) |
m (Move page script moved page API KBSetup GetArticleHeaderData to WoW:API KBSetup GetArticleHeaderData without leaving a redirect) |
(No difference)
| |
Latest revision as of 04:46, 15 August 2023
← WoW API < KBSetup GetArticleHeaderData
Returns header information about an article.
id, title, isHot, isNew = KBSetup_GetArticleHeaderData(index)
Parameters
Arguments
- (index)
- index
- Integer - The articles index for that page.
Returns
- 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
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.