Lib.InGameWiki 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Lib.InGameWiki --version 1.0.0
NuGet\Install-Package Lib.InGameWiki -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Lib.InGameWiki" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Lib.InGameWiki --version 1.0.0
#r "nuget: Lib.InGameWiki, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Lib.InGameWiki as a Cake Addin
#addin nuget:?package=Lib.InGameWiki&version=1.0.0

// Install Lib.InGameWiki as a Cake Tool
#tool nuget:?package=Lib.InGameWiki&version=1.0.0

How to install

  1. Open your mod project in visual studio.
  2. Right click on References>Manage NuGet Packages
  3. Inside the package manager window, click Browse and search for 'In-game wiki API'.
  4. Select the package (author: Epicguru) and select Install.
  5. Package should now be installed. Under references, click on InGameWiki and find the properties tab.
  6. Change Copy Local from True to False.

How to add basic auto-generated wiki

  1. Create a new C# file in your project called Wiki.cs
  2. Put this code in the file:
using InGameWiki;
using Verse;

namespace YourModNamespace
{
    [StaticConstructorOnStartup]
    internal static class Wiki
    {
        static Wiki()
        {
            // Get a reference to your mod instance.
            Mod myMod = MyModClass.Instance;
            
            // Create and register a new wiki.
            var wiki = ModWiki.Create(myMod);
            
            // Change some wiki properties.
            wiki.WikiTitle = "MyMod: My wiki";
        }
    }
}
  1. Edit the code to work with your mod; change namespace, get a reference to your mod class, change wiki title etc.

How to add custom pages

In your mod folder, next to the Textures, Assemblies, About folders, create a new folder called Wiki. Inside this folder, you can add custom pages.

Click here to see the format of custom pages.

You can also add custom content to auto-generated item pages. For example, add images and text to the page that was generated for a gun added by your mod.

Click here to see how to add content to existing auto-generated pages.

WIP documentation.

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.7.2

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
15.0.1 46 4/9/2024
15.0.0 58 4/9/2024
1.7.1 497 5/30/2021
1.7.0 344 5/30/2021
1.6.0 400 5/30/2021
1.5.0 415 9/24/2020
1.4.0 412 7/6/2020
1.3.0 406 6/5/2020
1.2.0 442 5/27/2020
1.1.0 465 5/24/2020
1.0.1 480 5/22/2020
1.0.0 421 5/22/2020

Initial release.