label
Find a labelled line (Owner: …) with line label=, and check its value with mask=.
Docking computer: Wrong port shape. No seal. Try again.
Quick reference
| Written as | Fails with | Applies to |
|---|---|---|
label=… | — | line |
mask=… | label-line-mismatch errormissing-line errorvalue-wrong-form errornot-done errorvalue-not-given errorvalue-not-allowed errorunknown-entity error | line |
Examples
label
The literal line prefix a line leaf's mask= inspects (case-insensitive match at line start).
mask
Validate every labeled line in the line leaf against a value mask — malformed values fail per line, absent stays silent, required demands at least one matching line. Requires a sibling label=.
A status from the allowed set passes
<!-- mdv: section required -->
## Status
<!-- mdv: line required label="Status:" mask="<word|oneOf:[Active, Blocked]>" -->## Status
Status: Active✓ passes
A status outside the set is flagged
<!-- mdv: section required -->
## Status
<!-- mdv: line required label="Status:" mask="<word|oneOf:[Active, Blocked]>" -->## Status
Status: Pending✗ value-not-allowed error · line 3
A missing labelled line is flagged
<!-- mdv: section required -->
## Status
<!-- mdv: line required label="Status:" mask="<word|oneOf:[Active, Blocked]>" -->## Status
The crew is fine.✗ missing-line error · line 3