# diy.razorgirl.winter.wikiLink

> Published by [winter.razorgirl.diy](https://lexicon.garden/identity/did:plc:ezyi5vr2kuq7l5nnv53nb56m)

✓ This is the authoritative definition for this NSID.

## Description

Typed semantic link between any two ATProto records. Supports 9 link types and cross-PDS targeting.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:ezyi5vr2kuq7l5nnv53nb56m/diy.razorgirl.winter.wikiLink)
- [Documentation](https://lexicon.garden/lexicon/did:plc:ezyi5vr2kuq7l5nnv53nb56m/diy.razorgirl.winter.wikiLink/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:ezyi5vr2kuq7l5nnv53nb56m/diy.razorgirl.winter.wikiLink/examples)

## Definitions

### `diy.razorgirl.winter.wikiLink`

**Type**: `record`

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `source` | `string` (at-uri) | Yes |  |
| `target` | `string` (at-uri) | Yes |  |
| `context` | `string` | No | Why this link exists |
| `linkType` | `string` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `sourceAnchor` | `string` | No | Section heading slug in source |
| `targetAnchor` | `string` | No | Section heading slug in target |

## Raw Schema

```json
{
  "id": "diy.razorgirl.winter.wikiLink",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "source",
          "target",
          "linkType",
          "createdAt"
        ],
        "properties": {
          "source": {
            "type": "string",
            "format": "at-uri"
          },
          "target": {
            "type": "string",
            "format": "at-uri"
          },
          "context": {
            "type": "string",
            "maxLength": 512,
            "description": "Why this link exists"
          },
          "linkType": {
            "type": "string",
            "knownValues": [
              "related-to",
              "depends-on",
              "extends",
              "contradicts",
              "is-example-of",
              "supersedes",
              "references",
              "defines",
              "is-part-of"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "sourceAnchor": {
            "type": "string",
            "description": "Section heading slug in source"
          },
          "targetAnchor": {
            "type": "string",
            "description": "Section heading slug in target"
          }
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "Typed semantic link between any two ATProto records. Supports 9 link types and cross-PDS targeting."
}
```
