pageUrl
pageUrl: (Wiki, string) -> stringThe link to the wiki page titled title: wiki:pageUrl("Abyssal whip") is "https://oldschool.runescape.wiki/w/Abyssal%20whip".
wiki| Method | Returns | Description |
|---|---|---|
pageUrl(string) | string | The link to the wiki page titled title: wiki:pageUrl("Abyssal whip") is "https://oldschool.runescape.wiki/w/Abyssal%20whip". |
searchUrl(string) | string | The link to the wiki's search for text: the page of that title, else the results. |
itemUrl(number, string?) | string | The link to an item's wiki page, found by itemId, else by name. |
npcUrl(number, string?) | string | The link to an NPC's wiki page, found by npcId, else by name. |
dpsCalculatorLink(string, (string?, string?) -> ()) | () | The wiki's DPS calculator, loaded with the logged-in player's worn items, combat levels and buffs (the Wilderness, the Kandarin hard diary,… |
pageUrlpageUrl: (Wiki, string) -> stringThe link to the wiki page titled title: wiki:pageUrl("Abyssal whip") is "https://oldschool.runescape.wiki/w/Abyssal%20whip".
searchUrlsearchUrl: (Wiki, string) -> stringThe link to the wiki's search for text: the page of that title, else the results.
itemUrlitemUrl: (Wiki, number, string?) -> stringThe link to an item's wiki page, found by itemId, else by name.
npcUrlnpcUrl: (Wiki, number, string?) -> stringThe link to an NPC's wiki page, found by npcId, else by name.
dpsCalculatorLinkdpsCalculatorLink: (Wiki, string, (string?, string?) -> ()) -> ()The wiki's DPS calculator, loaded with the logged-in player's worn items, combat levels and buffs (the Wilderness, the Kandarin hard diary, a slayer task, Charge), for any plugin, published ones included. The request is the plugin's own: it goes out under userAgent, which is required like any wiki request's (printable ASCII, at most 256 characters, sent exactly as written; an unusable one raises). The client builds its body from the game, so it carries nothing of the plugin's but its name. callback(link, nil) runs on the client thread with the calculator's link, to open with ui:openUrl, or callback(nil, why), as when no player is logged in or the wiki has asked for a pause. The loadout and the player's name go to the calculator, which keeps them under the link. Each call is one request, one wiki request at a time across every plugin.