# Welcome to the d2 wiki

This is the prototype's wiki: markdown topics that link to each other, to the domain model and to objects. Everything here is made up, a sandbox for trying d2.

## Start here

- [[ModelTour]]: how the sample mining model is put together, group by group.
- [[DrillingPrimer]]: from a drill program to an assay, in the model's terms.
- Three made-up companies: [[Frostline]] (a gold developer), [[Copperhead]] (a copper producer) and [[NorthRoyalty]] (a royalty and streaming company).

## The source topics

- [[mining-domain]] (a Spec topic) declares the classes, with `$class`.
- [[Story:mining-samples]] declares the sample objects, with `$object`.

Saving either one reloads the domain and the objects, so an edit there shows up at once in the [model graph](/domain/overview) and the [object browser](/dom).

## Links

- `[[TopicName]]` links a topic; a topic that doesn't exist yet shows as a create link, like [[YourNextTopic]].
- `[[Class:key]]` links an object, like [[Company:FLR]] or [[Deposit:dep-frost]].
- `[[target|label]]` sets the text: [[Company:CHM|Copperhead's company record]].
- `[[metals.Topic:Diesel2]]` links a d1 topic on another reactor: the [[metals.Topic:Diesel2|d2 spec]].

To play: open any topic and press **Edit**, or make a new one from the [wiki list](/topics). The red **Reset all** button on [Home](/home) puts everything back as it was.
