Template:Code Reference: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(add documentation)
m (Heladodebrownie moved page Template:Part Reference to Template:Code Reference: more apt name)
(No difference)

Revision as of 06:28, 1 August 2020

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

{{Part 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 part 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