Template:Code Reference

From Caves of Qud Wiki
Revision as of 06:30, 1 August 2020 by Sol (talk | contribs) (replace references to Part Reference with Code Reference)
Jump to navigation Jump to search

This template is used for cohesive citation of the game's C# classes. It's called like so:

{{Code Reference
| namespace = Fake.Namespace
| class     = FakeClass
| method    = FakeMethod
}}

All parameters except class can usefully be omitted:

  • If class is missing, the page will be tagged with Category:Pages with code reference errors.
  • If namespace is missing, it defaults to XRL.World.Parts.
  • If method is missing, the descriptive text related to it is omitted.

The above example results in the following citation:[1]

  1. Fake.Namespace.FakeClass, method FakeMethod