Based on DrEinsteinium's tWiki mod, WikiSearch is a tModLoader mod that allows you to search the Terraria Wiki for whatever is under the mouse cursor.
Press Q to search the wiki while hovering over any item, NPC, or tile.
To register your mod, you must use the Call()
method. Place the following code into your mod's main file (e.g. if your mod is MyMod, place this code into MyMod.cs
; in other words, into the file that inherits from Terraria.ModLoader.Mod
).
public override void PostSetupContent() {
if(ModLoader.TryGetMod("WikiSearch", out Mod wikiSearch) {
wikiSearch.Call("RegisterMod", this, "http://mymod.gamepedia.com/index.php?search=%s");
}
}
Note that the Gamepedia link can be any wiki link with the search term replaced. Just go to your wiki, search for something that isn't a real page (like "testtest"), and replace the search term with "%s".
- Some naturally-placed tiles cannot be searched
- Chests open the chest page instead of the individual page
- DrEinsteinium for the original tWiki mod
- DarkLight for suggesting mod support and linking some mod wikis