# Watership DITA content model > The documentation types an organization writes in, authored in DITA: 7 types (concept, task, reference, interface guide, and tutorial, plus glossary entry and troubleshooting as supporting types), what each is for, its required parts, and the style guide rules for writing it. Release 0.1.0. License: CC BY 4.0. Every page of the content model as Markdown, in reading order. Each page starts with a level-2 heading and its address. The page list, with a description of each page, is at https://watership.ca/content-model/llms.txt. --- ## The Watership DITA content model Address: https://watership.ca/content-model/topics/overview.html The content model is the set of documentation types an organization writes its documentation in. Each type answers one kind of reader need, has a fixed set of parts, and links to the other types in set ways. A reader opens documentation with one need at a time. They want to understand something, or get one thing done, or look up a fact, or find out what a control on a screen does, or learn by doing, or fix something that went wrong. A page that tries to meet two of those needs at once usually meets neither: the steps get buried in explanation, or the explanation gets cut into steps. The content model gives each need its own type of page. Writers choose the type before they write, so they know what the page must contain and what to leave out. Readers learn the shapes and find their way faster. Tools can check a page against its type. ### The types Five core types cover most documentation. Two supporting types, inherited from DITA, cover definitions and problems. | Type | The reader | | --- | --- | | [Concept](https://watership.ca/content-model/types/type-concept.html) | wants to understand an idea, how something works, or why. | | [Task](https://watership.ca/content-model/types/type-task.html) | knows what they want to do and needs the steps. | | [Reference](https://watership.ca/content-model/types/type-reference.html) | needs a fact: an option, a limit, a code, a status. | | [Interface guide](https://watership.ca/content-model/types/type-interface-guide.html) | is looking at a screen and wants to know what is on it and what each part does. | | [Tutorial](https://watership.ca/content-model/types/type-tutorial.html) | is new and wants to learn by building something real, with the writer guiding every step. | | [Glossary entry](https://watership.ca/content-model/types/type-glossary-entry.html) | meets a term and needs its meaning. | | [Troubleshooting](https://watership.ca/content-model/types/type-troubleshooting.html) | has a problem and wants it gone. | [How to choose a type](https://watership.ca/content-model/topics/choosing-a-type.html) turns the table into decisions, and [How the types link to each other](https://watership.ca/content-model/topics/linking.html) sets out which types point to which. ### Built on DITA The model is based on DITA, the Darwin Information Typing Architecture, an open standard maintained by [the OASIS DITA Technical Committee](https://www.oasis-open.org/committees/dita/). Concept, task, reference, glossary entry, and troubleshooting are DITA’s own topic types. The model builds on them as the standard defines them, with a few added requirements that each type’s page sets out. The model adds two types that core DITA doesn’t have. The interface guide documents one screen, and the tutorial guides a learner through a lesson. Both are DITA specializations: new types defined on top of existing ones, so any DITA tool can still process them. [Why DITA, and how the types are built](https://watership.ca/content-model/topics/specialization.html) explains how they are built. Other systems split documentation in similar ways. [Comparison with Diátaxis](https://watership.ca/content-model/topics/diataxis-comparison.html) compares this model with one of them. ### What this site contains - One page per type, with its purpose, its required parts, and its rules. - A [worked example of every type](https://watership.ca/content-model/topics/examples.html), each a real DITA topic of that type, documenting one fictional web app. - The grammar for the two specializations, as DTDs in a DITA Open Toolkit plugin, and an [element reference](https://watership.ca/content-model/topics/element-reference.html) for them. - [types.json](https://watership.ca/content-model/types.json), the types as data for tools such as the Watership engine, generated from these pages at build time. ### The Watership Content Model The DITA content model is one of the open resources from [Watership](https://watership.ca/). It’s part of the content standards in the [Watership Content Model](https://watership.ca/model.html), which takes its documentation types from it. The others are the [Style guide](https://watership.ca/style-guide/), [UX writing guide](https://watership.ca/ux-writing/), [Slop guard](https://watership.ca/slop-guard/), the [Glossary](https://watership.ca/glossary/), [Voices](https://watership.ca/voices/), [Tone scales](https://watership.ca/tone-scales/), the [API docs example](https://watership.ca/api-docs/), and the [Vale checks](https://watership.ca/parts.html#vale-watership). Release 0.1.0. The text is licensed under Creative Commons Attribution 4.0. - **[Why DITA, and how the types are built](https://watership.ca/content-model/topics/specialization.html)** DITA lets you define a new topic type as a stricter version of an existing one. The interface guide and the tutorial are built that way, so they get their own rules without leaving the standard. --- ## Why DITA, and how the types are built Address: https://watership.ca/content-model/topics/specialization.html DITA lets you define a new topic type as a stricter version of an existing one. The interface guide and the tutorial are built that way, so they get their own rules without leaving the standard. ### Why DITA A content model is only useful if something enforces it. In DITA, each topic type has a grammar, and every topic is checked against the grammar of its type, so an interface guide element without a label fails the build. Where the standard grammar is looser than the model, this site’s build adds a check: the DITA task grammar leaves steps optional, and the build fails a task without them. The model stops being a convention people remember and becomes a rule the tools apply. DITA also separates content from output. The same topics become this website, and could become PDF or in-product help, without anyone rewriting them. And because DITA is an open standard, the source isn’t tied to one vendor’s tool. ### What specialization is Specialization defines a new element as a narrower version of an element that already exists. The new element can rename the old one, require parts the old one left optional, and leave out parts it allowed. It can’t add anything the old one couldn’t hold. Every element records its ancestry in its `@class` attribute. The screen name in an interface guide, for example, carries this value: ``` class="- topic/title reference/title interfaceGuide/screenName " ``` That line says a `` is a kind of reference title, which is a kind of topic title. A tool that has never heard of interface guides reads the ancestry, treats the element as a title, and renders it as one. Mapping a specialized element back to its ancestor is called generalization, and it’s why a specialized topic still works everywhere DITA works. ### The interface guide is a specialized reference An interface guide is reference material: facts about a screen, organized the way the screen is organized, for a reader to look up. So it specializes DITA’s reference type. The specialization names the parts (screen name, purpose, regions, elements) and makes the important ones required. Each element in a region is a specialized definition list entry, with a label followed by what it does, its default, what changes when you use it, and who can see or change it, always in that order. The [Interface guide](https://watership.ca/content-model/types/type-interface-guide.html) page lists the rules. ### The tutorial is a specialized task A tutorial could have been specialized from the generic topic type, but DITA’s task already has nearly everything a lesson needs: numbered steps, a command in each step, a place for the result of a step, and a place for the result of the whole procedure. Processors already know how to number and lay out those parts. Starting from task means the specialization only has to tighten the rules: - The outcome (a specialized task context) is required and comes first. - Every step must end with a visible result (a specialized step result), which task leaves optional. - The closing summary of what the learner built (a specialized task result) is required. - Optional parts of task that don’t belong in a lesson, such as choice tables and substeps, are left out. Starting from the generic topic would have meant redefining steps from lists, and a processor that didn’t know the tutorial type would render it as plain lists instead of a procedure. The [Tutorial](https://watership.ca/content-model/types/type-tutorial.html) page lists the rules. ### Where the grammar lives The two types are defined in DTD modules in a DITA Open Toolkit plugin, plugins/ca.watership.types. Each type has three files: an entity file, an element module, and a document type shell that puts the type together with the DITA 1.3 modules it builds on. A second plugin, plugins/ca.watership.html5, adds headings and labels to the HTML5 output. The [Element reference for the specializations](https://watership.ca/content-model/topics/element-reference.html) lists every element. --- ## Documentation types Address: https://watership.ca/content-model/topics/types.html Seven types: five core types for most documentation, and two supporting types for definitions and problems. Each has a page with its purpose, its required parts, and its rules. Table 1. The types at a glance | Type | Group | Built on | DITA element | | --- | --- | --- | --- | | [Concept](https://watership.ca/content-model/types/type-concept.html) | Core | DITA topic | `` | | [Task](https://watership.ca/content-model/types/type-task.html) | Core | DITA topic | `` | | [Reference](https://watership.ca/content-model/types/type-reference.html) | Core | DITA topic | `` | | [Interface guide](https://watership.ca/content-model/types/type-interface-guide.html) | Core | DITA reference, specialized by Watership | `` | | [Tutorial](https://watership.ca/content-model/types/type-tutorial.html) | Core | DITA task, specialized by Watership | `` | | [Glossary entry](https://watership.ca/content-model/types/type-glossary-entry.html) | Supporting | DITA concept | `` | | [Troubleshooting](https://watership.ca/content-model/types/type-troubleshooting.html) | Supporting | DITA topic | `` | ### How the type pages are organized Every type page has the same parts, in the same order: - A one-sentence purpose, under the title - When to use the type, and when to use another - Its required parts, with the DITA element for each - The rules a page of that type follows, each linked to the style guide rule it restates - A link to its worked example The build reads the purpose, the base type, the required parts, and the cited style guide rules from these pages into [types.json](https://watership.ca/content-model/types.json), so the data and the pages can’t disagree. - **[Concept](https://watership.ca/content-model/types/type-concept.html)** Explains an idea, how something works, or why. The reader wants to understand. - **[Task](https://watership.ca/content-model/types/type-task.html)** Gives the steps to complete one specific goal. The reader knows what they want to do. - **[Reference](https://watership.ca/content-model/types/type-reference.html)** Holds facts for lookup, organized like the thing it describes: an API, a set of options, error codes. It’s austere. - **[Interface guide](https://watership.ca/content-model/types/type-interface-guide.html)** Describes one screen or panel: what is on it and what each element does. It’s a specialization of reference. - **[Tutorial](https://watership.ca/content-model/types/type-tutorial.html)** A guided lesson in which the learner does something real and succeeds. It’s a specialization of task. - **[Glossary entry](https://watership.ca/content-model/types/type-glossary-entry.html)** Defines one term as the product or organization uses it. It’s a supporting type, inherited from DITA. - **[Troubleshooting](https://watership.ca/content-model/types/type-troubleshooting.html)** Takes a reader from a symptom to a fix: what they see, what causes it, and what to do. It’s a supporting type, inherited from DITA. --- ## Concept Address: https://watership.ca/content-model/types/type-concept.html Explains an idea, how something works, or why. The reader wants to understand. ### When to use it Write a concept when the reader needs a mental model before they can act well, or wants one for its own sake: what a feature is for, how its parts fit together, why it behaves as it does, what the trade-offs are. If the page is turning into steps, the steps belong in a [task](https://watership.ca/content-model/types/type-task.html). If it’s turning into a list of values or limits, they belong in a [reference](https://watership.ca/content-model/types/type-reference.html). Link to both instead. ### Required parts DITA’s concept type needs only a title. A Watership concept also needs a short description and a body. | Part | Element | What it holds | | --- | --- | --- | | Title | `` | A noun phrase naming the idea, or “How” and what works: “How holds work”. | | Purpose | `<shortdesc>` | The idea in one or two sentences, so a reader who stops there still has it. | | Explanation | `<conbody>` | The explanation: paragraphs, examples, diagrams, and sections with titles. | ### Rules Each rule links to the style guide rule it restates, which gives the rule’s tier, check type, and examples. - Open with one sentence that says what the thing is, in words the reader already knows. ([type-concept-define-first](https://watership.ca/style-guide/documentation-types/#type-concept-define-first)) - Explain one idea per concept. A second idea gets its own concept and a link. ([type-concept-one-idea](https://watership.ca/style-guide/documentation-types/#type-concept-one-idea)) - Say why, not only what. The reason is what lets a reader handle a case the page doesn’t cover. ([type-concept-why](https://watership.ca/style-guide/documentation-types/#type-concept-why)) - Give no steps. Link to the task that applies the idea. ([type-concept-no-steps](https://watership.ca/style-guide/documentation-types/#type-concept-no-steps)) - Use a concrete example early. An abstract explanation with no instance is hard to hold. ([type-concept-why](https://watership.ca/style-guide/documentation-types/#type-concept-why)) - Make the page stand on its own. A reader may arrive from a search, not from the page before. ([type-concept-stand-alone](https://watership.ca/style-guide/documentation-types/#type-concept-stand-alone)) ### Example [How holds and check-in work](https://watership.ca/content-model/examples/how-holds-work.html) explains the hold, the weekly limit, and check-in in a fictional room-booking app. **Related concepts** - [How holds and check-in work](https://watership.ca/content-model/examples/how-holds-work.html) --- ## Task Address: https://watership.ca/content-model/types/type-task.html Gives the steps to complete one specific goal. The reader knows what they want to do. ### When to use it Write a task when the reader has a goal and needs the actions that reach it: book a room, change a setting, export a report. The reader arrives knowing what they want; the task gets them there with as little reading as possible. If the reader is new and needs to learn as they go, write a [tutorial](https://watership.ca/content-model/types/type-tutorial.html). If they are looking at a screen and want to know what a control does, that’s an [interface guide](https://watership.ca/content-model/types/type-interface-guide.html). ### Required parts A prerequisites section, context, a result, and next steps are optional. Use them when the task needs them, in that order around the steps. | Part | Element | What it holds | | --- | --- | --- | | Title | `<title>` | The goal, starting with a verb: “Book a study room”. | | Purpose | `<shortdesc>` | What the task achieves, and when a reader would do it. | | Steps | `<steps>` | The numbered steps, in the order the reader does them. | | Action | `<cmd>` | In each step, the one action the reader takes. | ### Rules Each rule links to the style guide rule it restates, which gives the rule’s tier, check type, and examples. - Cover one goal. Two goals are two tasks, linked. ([type-task-one-goal](https://watership.ca/style-guide/documentation-types/#type-task-one-goal)) - Put one action in each step. If a step needs “and then”, split it. ([proc-one-action-per-step](https://watership.ca/style-guide/procedures/#proc-one-action-per-step)) - Put a condition or a location before the action: “In Branch, select your branch.” ([proc-condition-and-optional](https://watership.ca/style-guide/procedures/#proc-condition-and-optional)) - Write interface labels exactly as the screen shows them, marked as interface text. ([ui-bold-labels](https://watership.ca/style-guide/ui-elements/#ui-bold-labels)) - Keep explanation to what the step needs. Link to the concept for the rest. ([type-task-link-context](https://watership.ca/style-guide/documentation-types/#type-task-link-context)) - Say what the reader sees when a step’s outcome isn’t obvious, and what the result of the task is. ([proc-result-in-step](https://watership.ca/style-guide/procedures/#proc-result-in-step), [proc-verify-end](https://watership.ca/style-guide/procedures/#proc-verify-end)) ### Example [Book a study room](https://watership.ca/content-model/examples/book-a-study-room.html) books a room in a fictional room-booking app. **Related tasks** - [Book a study room](https://watership.ca/content-model/examples/book-a-study-room.html) --- ## Reference Address: https://watership.ca/content-model/types/type-reference.html Holds facts for lookup, organized like the thing it describes: an API, a set of options, error codes. It’s austere. ### When to use it Write a reference when the reader needs a fact and will scan for it: the values an option takes, the limits on an account, what each status means, the fields in a response. A reader rarely reads a reference from top to bottom. They jump to the entry they need. A screen is a special case. For one screen or panel, write an [interface guide](https://watership.ca/content-model/types/type-interface-guide.html), the reference type made for screens. ### Required parts The body holds tables, property lists, or sections, whichever matches the structure of the thing described. | Part | Element | What it holds | | --- | --- | --- | | Title | `<title>` | The name of the thing described: “Booking statuses”. | | Purpose | `<shortdesc>` | What the reference covers, in one sentence. | | Entries | `<refbody>` | The facts, as tables, property lists, or titled sections. | ### Rules Each rule links to the style guide rule it restates, which gives the rule’s tier, check type, and examples. - Organize the page like the thing described: an API by its resources, a form by its fields, codes in numeric order. ([type-ref-mirror-thing](https://watership.ca/style-guide/documentation-types/#type-ref-mirror-thing)) - Give every entry the same fields in the same order, so readers learn where to look. ([type-ref-same-shape](https://watership.ca/style-guide/documentation-types/#type-ref-same-shape)) - State facts. No instructions, no opinions, no selling. ([type-ref-austere](https://watership.ca/style-guide/documentation-types/#type-ref-austere)) - Be complete. A reference that leaves out values sends the reader to guess. ([type-ref-complete](https://watership.ca/style-guide/documentation-types/#type-ref-complete)) - Link to the concept that explains the facts and the task that uses them, instead of explaining inline. ([type-ref-austere](https://watership.ca/style-guide/documentation-types/#type-ref-austere)) ### Example [Booking statuses](https://watership.ca/content-model/examples/booking-statuses.html) lists the states a booking can be in, in a fictional room-booking app. **Related reference** - [Booking statuses](https://watership.ca/content-model/examples/booking-statuses.html) --- ## Interface guide Address: https://watership.ca/content-model/types/type-interface-guide.html Describes one screen or panel: what is on it and what each element does. It’s a specialization of reference. ### When to use it Write an interface guide for every screen or panel a reader can open. The reader is usually looking at the screen, or about to, and wants to know what an element is, what it will do, or why it isn’t there for them. One page covers one screen. An interface guide describes; it doesn’t instruct. The steps that use the screen belong in [tasks](https://watership.ca/content-model/types/type-task.html), and the interface guide links to them. ### Required parts Access details, an element’s default, what changes when you use it, and who can see or change it are optional in the grammar, because not every screen or element has them. Include each one whenever it applies. | Part | Element | What it holds | | --- | --- | --- | | Screen name | `<screenName>` | The name of the screen exactly as the product shows it. | | Purpose | `<screenPurpose>` | A first sentence that says what the screen is for and how to get there. | | Region | `<screenRegion>` | One region of the screen, titled, in the order the screen reads. | | Element | `<uiElement>` | One element in a region, in the order the region reads. | | Label | `<uiLabel>` | The element’s label exactly as shown, capitals and punctuation included. | | What it does | `<uiAction>` | What the element does or shows. | | Related tasks | `<relatedTasks>` | Links to the tasks that use the screen. | ### Rules Each rule links to the style guide rule it restates, which gives the rule’s tier, check type, and examples. - Write one page per screen or panel. ([type-ui-one-screen](https://watership.ca/style-guide/documentation-types/#type-ui-one-screen)) - Name the screen exactly as the product does. If the product calls it “Room schedule”, so does the page title. ([type-ui-exact-name](https://watership.ca/style-guide/documentation-types/#type-ui-exact-name)) - Make the first sentence say what the screen is for and how to get there. ([type-ui-purpose-and-path](https://watership.ca/style-guide/documentation-types/#type-ui-purpose-and-path)) - List elements in the order the screen reads, grouped by region. Title a region with its name on screen, or, if it has none, with where it sits. ([type-ui-screen-order](https://watership.ca/style-guide/documentation-types/#type-ui-screen-order)) - For each element, give its label exactly as shown, what it does, its default, what changes when you use it, and who can see or change it, in that order. ([type-ui-element-entry](https://watership.ca/style-guide/documentation-types/#type-ui-element-entry)) - Link to the tasks that use the screen instead of giving steps inline. ([type-ui-link-tasks](https://watership.ca/style-guide/documentation-types/#type-ui-link-tasks)) The grammar enforces the order of the parts and requires the screen name, the purpose, at least one region, a label and an action for every element, and the related tasks. The build also checks that every related task is a link to a task or tutorial and that the page contains no steps. ### Example [Room schedule](https://watership.ca/content-model/examples/room-schedule.html) documents the main screen of a fictional room-booking app. **Related information** - [Room schedule](https://watership.ca/content-model/examples/room-schedule.html) --- ## Tutorial Address: https://watership.ca/content-model/types/type-tutorial.html A guided lesson in which the learner does something real and succeeds. It’s a specialization of task. ### When to use it Write a tutorial for a reader who is new to the product, or to a part of it, and learns best by doing. The writer takes responsibility for the learner’s success: if the learner follows the steps, they finish with something that works. A tutorial differs from a [task](https://watership.ca/content-model/types/type-task.html) in who it serves. A task serves a reader who already knows what they want and takes the shortest path. A tutorial serves a learner, chooses the path for them, and shows them at every step that it worked. ### Required parts Prerequisites and next steps are optional. Most tutorials have both. | Part | Element | What it holds | | --- | --- | --- | | Title | `<title>` | What the learner will build, starting with a verb. | | Purpose | `<shortdesc>` | One sentence on what the learner will build and learn. | | Outcome | `<outcome>` | What the learner will have at the end, concrete enough that they can tell when they’re done, and how long it takes. | | Steps | `<lessonSteps>` | The numbered steps, one path, no choices. | | Action | `<cmd>` | In each step, the one action the learner takes. | | Visible result | `<visibleResult>` | In each step, what the learner sees when the step has worked. | | What you built | `<whatYouBuilt>` | A close that names what the learner made and what it showed them. | ### Rules Each rule links to the style guide rule it restates, which gives the rule’s tier, check type, and examples. - Build something real. The result should be useful, or the first version of something useful, not a toy. ([type-tut-real-result](https://watership.ca/style-guide/documentation-types/#type-tut-real-result)) - Make every step produce a visible result, and say what it is. ([type-tut-visible-result](https://watership.ca/style-guide/documentation-types/#type-tut-visible-result)) - Keep explanation to a sentence at most, and link to the concept for the rest. The learner is here to do, not to read. ([type-tut-minimal-explanation](https://watership.ca/style-guide/documentation-types/#type-tut-minimal-explanation)) - Choose the path. Offer no options or alternatives; mention them in the next steps instead. ([type-tut-one-path](https://watership.ca/style-guide/documentation-types/#type-tut-one-path)) - Test the tutorial from a clean start, in the product as it ships, before you publish it and after every release. A tutorial that fails is worse than none. ([type-tut-tested](https://watership.ca/style-guide/documentation-types/#type-tut-tested)) - End by naming what the learner built. ([type-tut-name-what-you-built](https://watership.ca/style-guide/documentation-types/#type-tut-name-what-you-built)) The grammar requires the outcome, at least one step, a visible result in every step, and the closing summary. ### Example [Set up a room and take a booking](https://watership.ca/content-model/examples/set-up-a-room.html) takes a new branch administrator from an empty room record to a tested booking, in a fictional room-booking app. **Related information** - [Set up a room and take a booking](https://watership.ca/content-model/examples/set-up-a-room.html) --- ## Glossary entry Address: https://watership.ca/content-model/types/type-glossary-entry.html Defines one term as the product or organization uses it. It’s a supporting type, inherited from DITA. ### When to use it Write a glossary entry for a term that has a specific meaning in your product or organization, or one readers are likely to misread. Other topics define the term at first use too; the entry is where the definition lives, so every page and tool can point to the same one. If the definition needs more than a few sentences, the idea needs a [concept](https://watership.ca/content-model/types/type-concept.html). Keep the entry short and link to it. ### Required parts Usage notes and other forms (synonyms, abbreviations, and forms not to use) are optional. | Part | Element | What it holds | | --- | --- | --- | | Term | `<glossterm>` | The term, in lowercase unless it’s a proper noun. | | Definition | `<glossdef>` | What the term means here, as a phrase that could stand in for it. | ### Rules Each rule links to the style guide rule it restates, which gives the rule’s tier, check type, and examples. - Define one term per entry. ([type-glossary-entry](https://watership.ca/style-guide/documentation-types/#type-glossary-entry)) - Start the definition with what kind of thing the term is: “A 10-minute claim on a free slot”. ([type-glossary-entry](https://watership.ca/style-guide/documentation-types/#type-glossary-entry)) - Don’t use the term, or a form of it, to define itself. ([type-glossary-entry](https://watership.ca/style-guide/documentation-types/#type-glossary-entry)) - Define the term as your product uses it, not as a dictionary does. ([type-glossary-entry](https://watership.ca/style-guide/documentation-types/#type-glossary-entry)) - List forms not to use, so writers and linters can catch them. ([type-glossary-forms-not-to-use](https://watership.ca/style-guide/documentation-types/#type-glossary-forms-not-to-use)) The [Watership glossary](https://watership.ca/glossary/) is written entirely in this type. ### Example [hold](https://watership.ca/content-model/examples/hold.html) defines one term from a fictional room-booking app. **Related concepts** - [hold](https://watership.ca/content-model/examples/hold.html) --- ## Troubleshooting Address: https://watership.ca/content-model/types/type-troubleshooting.html Takes a reader from a symptom to a fix: what they see, what causes it, and what to do. It’s a supporting type, inherited from DITA. ### When to use it Write a troubleshooting topic for a problem readers actually report: from support tickets, forum posts, or error logs. The reader arrives with a symptom and wants it gone. They don’t yet know the cause, so the page starts from what they see. An error message with one cause and one fix can go in a [reference](https://watership.ca/content-model/types/type-reference.html) of error codes. Use troubleshooting when there are several possible causes to tell apart. ### Required parts DITA’s troubleshooting type makes the condition optional. A Watership troubleshooting topic always states it. | Part | Element | What it holds | | --- | --- | --- | | Title | `<title>` | The symptom, in the reader’s words: “A free room shows as booked”. | | Purpose | `<shortdesc>` | Who sees the problem and what the page helps them do. | | Condition | `<condition>` | The symptom in detail, so the reader can confirm it’s their problem. | | Solution | `<troubleSolution>` | One per cause, most likely first. | | Cause | `<cause>` | In each solution, the cause and how to tell it applies. | | Remedy | `<remedy>` | In each solution, the steps that fix it. | ### Rules Each rule links to the style guide rule it restates, which gives the rule’s tier, check type, and examples. - Title the page with the symptom, never the cause. The reader knows the symptom. ([type-troubleshooting](https://watership.ca/style-guide/documentation-types/#type-troubleshooting)) - Order the solutions from most likely to least likely. ([type-troubleshooting](https://watership.ca/style-guide/documentation-types/#type-troubleshooting)) - Give each cause a test the reader can run, so they know which solution to follow. ([type-trouble-cause-test](https://watership.ca/style-guide/documentation-types/#type-trouble-cause-test)) - Write each remedy as steps. ([type-troubleshooting](https://watership.ca/style-guide/documentation-types/#type-troubleshooting)) - End with what to do if nothing worked, and who to contact. ([type-trouble-if-nothing-worked](https://watership.ca/style-guide/documentation-types/#type-trouble-if-nothing-worked)) ### Example [A free room shows as booked](https://watership.ca/content-model/examples/free-room-shows-booked.html) covers a booking problem in a fictional room-booking app. **Related information** - [A free room shows as booked](https://watership.ca/content-model/examples/free-room-shows-booked.html) --- ## How to choose a type Address: https://watership.ca/content-model/topics/choosing-a-type.html Choose the type from the reader’s need, not from the material you have. Find the row that matches what the reader arrives wanting, and write that type. Writers often start from what they know: a feature, a screen, a list of settings. The same material can become several pages of different types. Start instead from the question the reader brings to the page. If you can’t name one question, you have more than one page. Table 1. Decision table | The reader arrives | The page gives them | Write a | | --- | --- | --- | | wanting to understand an idea, how something works, or why | an explanation, with examples | [concept](https://watership.ca/content-model/types/type-concept.html) | | knowing what they want to do | the steps to do it, and nothing else | [task](https://watership.ca/content-model/types/type-task.html) | | needing a fact they will look up and leave | entries to scan, organized like the thing described | [reference](https://watership.ca/content-model/types/type-reference.html) | | looking at a screen or panel, wondering what a part of it does | every element of that screen, in screen order | [interface guide](https://watership.ca/content-model/types/type-interface-guide.html) | | new, and wanting to learn by doing | one guided path to a real result, with proof at every step | [tutorial](https://watership.ca/content-model/types/type-tutorial.html) | | stopped by a word they don’t know | a short definition | [glossary entry](https://watership.ca/content-model/types/type-glossary-entry.html) | | with something going wrong | the likely causes, a way to tell them apart, and a fix for each | [troubleshooting](https://watership.ca/content-model/types/type-troubleshooting.html) topic | ### Close calls **Task or tutorial?** Ask who the page serves. A task serves a reader who knows what they want, and gets out of the way. A tutorial serves a learner and chooses the path: it picks every value for them and shows them each result. The same procedure can have both: a tutorial for the first time, a task for every time after. **Task or interface guide?** Ask whether the reader has a goal or a screen. A goal often spans several screens, and a screen serves several goals. Write the task for the goal and the interface guide for the screen, and link them. **Reference or interface guide?** Ask whether the facts belong to a screen. The options on one screen go in its interface guide. Facts that apply everywhere, such as limits, statuses, or error codes, go in a reference. **Concept or glossary entry?** Ask how long the explanation is. If a reader needs more than a few sentences, write the concept, keep the glossary entry to its definition, and link the entry to the concept. **Troubleshooting or task?** Ask whether the reader knows the cause. If they do, the fix is a task. If they only know the symptom, they need the troubleshooting topic that gets them to the cause first. ### When a page is two types A draft that mixes types shows it: steps in the middle of an explanation, a table of settings in a task, a paragraph of background before step one. Split the draft at the change of need. Move the explanation to a concept, the settings to a reference or interface guide, and link to them from the task. Each page gets shorter, and each can be found on its own. The style guide states this as a rule, [type-one-per-page](https://watership.ca/style-guide/documentation-types/#type-one-per-page), and asks for a title that signals the type, [type-title-signals-type](https://watership.ca/style-guide/documentation-types/#type-title-signals-type). --- ## How the types link to each other Address: https://watership.ca/content-model/topics/linking.html Because each type answers one need, the types depend on each other. A task leaves the explanation to a concept and the screen to an interface guide, so the links between them are part of the model, not an afterthought. Keeping types apart only works if a reader can cross from one to the next when their need changes. A reader halfway through a task who wonders why a limit exists should be one link from the concept that explains it. These are the links every Watership documentation set makes. Table 1. Link rules | From | Links to | Why | | --- | --- | --- | | Concept | The tasks that apply it; the references it explains | A reader who understands wants to act, or to see the details. | | Task | The concept behind it; the interface guide for each screen it uses; the references it relies on | The task stays short because the explanation, the screen, and the facts are one link away. | | Reference | The concept that explains the facts | Facts without meaning invite misreading. | | Interface guide | Every task that uses the screen, in its related tasks | The guide says what the screen does; the tasks say how to get something done with it. Steps never appear in the guide itself. | | Tutorial | Concepts for its brief explanations; tasks and concepts in its next steps | The lesson stays focused on doing. The links are where the learner goes once they’ve succeeded. | | Glossary entry | The concept that explains the idea at length | The definition stays short. | | Troubleshooting | The task where the problem shows up; the references that identify the cause | A reader who has fixed the problem returns to what they were doing. | ### Inline links and related links Link inline when the reader needs the target at that point in the text: a term’s definition, the concept behind a step. Put everything else in the related links at the end of the page, where a reader who has finished looks for what comes next. On this site, the related links come from a relationship table in the map rather than from the topics. A topic doesn’t know which other topics exist, so it can be reused in another documentation set without broken links, and the links between types are maintained in one place. This site’s map has two tables: one links each type page to its example, and one links the examples to each other by the rules above. ### Terms Mark a defined term with `<term>` and a key reference to its glossary entry. The term then links to its definition wherever it appears, and the definition is maintained once. ### In the examples [Book a study room](https://watership.ca/content-model/examples/book-a-study-room.html) links to [How holds and check-in work](https://watership.ca/content-model/examples/how-holds-work.html) for the reason behind the hold, to [Room schedule](https://watership.ca/content-model/examples/room-schedule.html) for the screen it uses, and to [Booking statuses](https://watership.ca/content-model/examples/booking-statuses.html) for the states a booking moves through. The interface guide lists the task, and the tutorial, under the tasks that use the screen. The troubleshooting topic sends the reader back to the task once the room is free. --- ## Comparison with Diátaxis Address: https://watership.ca/content-model/topics/diataxis-comparison.html Diátaxis by Daniele Procida is a well-known framework for documentation that reaches a similar split by reader need. This page describes how the two compare, in Watership’s own words. ### What Diátaxis is Diátaxis is an approach to documentation that sorts it into four kinds, according to whether the reader is studying or working, and whether they need practical steps or theoretical knowledge. One of its four kinds is the tutorial, a lesson for newcomers. Its author describes it in full at [diataxis.fr](https://diataxis.fr/), which is the place to read about it; this page doesn’t reproduce it. Credit: Diátaxis by Daniele Procida. ### Where the two agree - Both start from the reader’s need, not from the product’s structure. - Both keep explanation, instructions, and facts on separate pages, and treat a page that mixes them as a page to split. - Both separate a lesson for learners from instructions for people who already know what they want. Watership’s tutorial type was added for that reason: core DITA has no tutorial type of its own. ### Where they differ Table 1. Differences between the two | Aspect | Watership DITA content model | Diátaxis | | --- | --- | --- | | Basis | DITA, an OASIS open standard, with two specializations | A framework described by its author, independent of any markup | | Enforcement | Each type has a grammar; a page that breaks it fails the build | Guidance applied by the writer’s judgment, not enforced by tools | | Screens | A dedicated type, the interface guide, one page per screen | No separate kind for screens | | Supporting types | Glossary entries and troubleshooting, inherited from DITA | Four kinds only | | Output | Structured topics that tools can validate and export, such as [types.json](https://watership.ca/content-model/types.json) | Not tied to a format or toolchain | ### Reading one in terms of the other A team that knows Diátaxis will find Watership’s concept, task, reference, and tutorial familiar. The mapping is close but not exact: a Watership concept covers explanation of how something works as well as why, and the interface guide is a kind of reference organized by screen. Choose Watership types with [How to choose a type](https://watership.ca/content-model/topics/choosing-a-type.html) rather than by translating from another framework. ### How this site treats Diátaxis Watership describes Diátaxis only in its own words, links to the original, and credits its author. Diátaxis is published under the Creative Commons Attribution-ShareAlike 4.0 license (CC BY-SA 4.0). Its share-alike terms would carry over to anything adapted from it, and Watership’s text is licensed under CC BY 4.0, so this site copies none of its text, diagrams, or artwork. DITA is different: it’s an OASIS open standard, published for anyone to implement. --- ## Element reference for the specializations Address: https://watership.ca/content-model/topics/element-reference.html Every element in the interface guide and tutorial types: what it specializes, what it may contain, and what it holds. ### Document type declarations Start a topic with one of these document type declarations. DITA-OT resolves the public identifier through the catalog in plugins/ca.watership.types. ``` <!DOCTYPE interfaceGuide PUBLIC "-//WATERSHIP//DTD DITA Interface Guide//EN" "interfaceGuide.dtd"> <!DOCTYPE tutorial PUBLIC "-//WATERSHIP//DTD DITA Tutorial//EN" "tutorial.dtd"> ``` Both shells include the DITA 1.3 highlighting, programming, software, user interface, utilities, indexing, hazard statement, abbreviated form, markup, and XML domains. Neither type nests topics. ### Interface guide elements In the content column, a comma means “followed by”, `?` means optional, `+` means one or more, and `*` means any number. | Element | Specializes | Content | Holds | | --- | --- | --- | --- | | `<interfaceGuide>` | `<reference>` | `screenName, titlealts?, screenPurpose, prolog?, igBody, related-links?` | One screen or panel. | | `<screenName>` | `<title>` | Title content | The screen’s name, exactly as the product shows it. | | `<screenPurpose>` | `<shortdesc>` | Short description content | What the screen is for and how to get there, in the first sentence. | | `<igBody>` | `<refbody>` | `screenAccess?, screenRegion+, relatedTasks` | The body. | | `<screenAccess>` | `<section>` | `title?, (p \| ul \| ol \| note)+` | Every way to reach the screen, and who can open it. Rendered under “How to get here” when it has no title. | | `<screenRegion>` | `<section>` | `title, (p \| note \| fig)*, uiElements` | One region, titled with its name on screen or where it sits. | | `<uiElements>` | `<dl>` | `uiElement+` | The elements in a region, in screen order. | | `<uiElement>` | `<dlentry>` | `uiLabel, uiAction, uiDefault?, uiEffect?, uiPermissions?` | One element. | | `<uiLabel>` | `<dt>` | Term content | The label exactly as shown. | | `<uiAction>` | `<dd>` | Definition content | What the element does or shows. | | `<uiDefault>` | `<dd>` | Definition content | Its value or state before anyone changes it. Rendered as “Default”. | | `<uiEffect>` | `<dd>` | Definition content | What changes, on the screen or elsewhere, when you use it. Rendered as “What changes”. | | `<uiPermissions>` | `<dd>` | Definition content | Who can see it and who can change it. Rendered as “Who can see or change it”. | | `<relatedTasks>` | `<section>` | `title?, p*, ul` | Links to the tasks that use the screen, one per list item. Rendered under “Tasks that use this screen” when it has no title. | ### Tutorial elements Steps also use `<cmd>`, `<info>`, `<stepxmp>`, and `<tutorialinfo>` from DITA’s task type. | Element | Specializes | Content | Holds | | --- | --- | --- | --- | | `<tutorial>` | `<task>` | `title, titlealts?, shortdesc, prolog?, tutorialBody, related-links?` | One lesson. | | `<tutorialBody>` | `<taskbody>` | `outcome, prerequisites?, lessonSteps, whatYouBuilt, nextSteps?` | The body. | | `<outcome>` | `<context>` | Section content without a title | What the learner will build, and how long it takes. Rendered under “What you’ll build”. | | `<prerequisites>` | `<prereq>` | Section content without a title | What the learner needs first. Rendered under “Before you start”. | | `<lessonSteps>` | `<steps>` | `lessonStep+` | The numbered steps. Rendered under “Steps”. | | `<lessonStep>` | `<step>` | `cmd, (info \| stepxmp \| tutorialinfo)*, visibleResult` | One step. | | `<visibleResult>` | `<stepresult>` | Item group content | What the learner sees once the step has worked. Rendered after the label “You see”. | | `<whatYouBuilt>` | `<result>` | Section content without a title | What the learner made, and what it showed them. Rendered under “What you built”. | | `<nextSteps>` | `<postreq>` | Section content without a title | Where to go next. Rendered under “Next steps”. | --- ## Worked examples Address: https://watership.ca/content-model/topics/examples.html One topic of every type, all documenting the same fictional product: Library Rooms, the room-booking web app of the Ferncastle Public Library. Each example is a real DITA topic of its type, checked against the type’s grammar at every build. Read them side by side to see how the same product produces different pages for different needs. ### The product Library Rooms lets library members book study and meeting rooms at the library’s three branches: Central, Riverside, and Hillcrest. The product and the library are invented for these examples. - **Members** book rooms for themselves, up to 6 hours a week and 2 hours at a time. - **Staff** book for members, block slots, and see who booked what. - **Branch administrators** add rooms and set their hours. Selecting a free slot places a [*hold*](https://watership.ca/content-model/examples/hold.html) on it for 10 minutes. A booking that nobody checks in to within 15 minutes of its start is released. ### The examples | Type | Example | | --- | --- | | Concept | [How holds and check-in work](https://watership.ca/content-model/examples/how-holds-work.html) | | Task | [Book a study room](https://watership.ca/content-model/examples/book-a-study-room.html) | | Reference | [Booking statuses](https://watership.ca/content-model/examples/booking-statuses.html) | | Interface guide | [Room schedule](https://watership.ca/content-model/examples/room-schedule.html) | | Tutorial | [Set up a room and take a booking](https://watership.ca/content-model/examples/set-up-a-room.html) | | Glossary entry | [hold](https://watership.ca/content-model/examples/hold.html) | | Troubleshooting | [A free room shows as booked](https://watership.ca/content-model/examples/free-room-shows-booked.html) | The interface guide is the most detailed: it documents every element of the app’s main screen to the rules on the [Interface guide](https://watership.ca/content-model/types/type-interface-guide.html) page. - **[How holds and check-in work](https://watership.ca/content-model/examples/how-holds-work.html)** Library Rooms keeps rooms fair to book in two ways: a short hold stops two people booking the same slot at once, and check-in frees rooms that people book but don’t use. - **[Book a study room](https://watership.ca/content-model/examples/book-a-study-room.html)** Book a room at any branch for up to 2 hours, up to 14 days ahead. - **[Booking statuses](https://watership.ca/content-model/examples/booking-statuses.html)** Every status a booking in Library Rooms can have, in the order a booking moves through them. - **[Room schedule](https://watership.ca/content-model/examples/room-schedule.html)** The Room schedule shows which rooms at one branch are free on one day, and is where you book them; to open it, select Rooms in the main menu. - **[Set up a room and take a booking](https://watership.ca/content-model/examples/set-up-a-room.html)** Add a new room to Library Rooms, make it bookable, and prove it works by booking it yourself. - **[hold](https://watership.ca/content-model/examples/hold.html)** - **[A free room shows as booked](https://watership.ca/content-model/examples/free-room-shows-booked.html)** If a room is empty but its slot on the Room schedule is gray, one of three things is holding it. Find which one, and you’ll know whether you can book it. --- ## How holds and check-in work Address: https://watership.ca/content-model/examples/how-holds-work.html Example Concept Library Rooms keeps rooms fair to book in two ways: a short hold stops two people booking the same slot at once, and check-in frees rooms that people book but don’t use. The library has more people who want rooms than it has rooms. Without rules, the same few people would book the best rooms every week, and rooms would sit empty because someone booked them and didn’t come. The hold, the weekly limit, and check-in each deal with one part of that problem. ### The hold When you select a free slot on the [Room schedule](https://watership.ca/content-model/examples/room-schedule.html), Library Rooms places a [*hold*](https://watership.ca/content-model/examples/hold.html) on it for 10 minutes. While the hold lasts, everyone else sees the slot as booked, so nobody can take it while you choose a length and type a purpose. Without the hold, two people looking at the same free slot could both fill in the booking panel, and one of them would lose the slot only at the last moment. The hold makes the first person to select the slot the one who gets it. If you don’t finish booking in time, the hold ends and the slot is free again for everyone. ### The weekly limit Each member can book up to 6 hours of room time a week, Monday to Sunday, and up to 2 hours in one booking. Time you’ve booked counts against the limit from the moment you book, and comes back if you cancel at least an hour before the start. The limit spreads the rooms across more people. At 6 hours a week, a member can still book a study session most days, and a popular room is free for someone else on most afternoons. Staff aren’t limited, because they book on behalf of members and for library events. ### Check-in and release A booking only holds the room if someone turns up. You check in at the branch’s front desk, or with Check in in My bookings, from 10 minutes before the start. If nobody checks in within 15 minutes of the start, the booking is released: the room becomes free for anyone, and the booked time doesn’t come back to your weekly limit. Release is what keeps the schedule honest. A room that looks booked but sits empty is the most common complaint the library hears, and 15 minutes is long enough to allow for a late bus but short enough that most of the slot can still be used. ### How the three fit together A booking moves through a short series of states: held, then confirmed, then checked in or released. [Booking statuses](https://watership.ca/content-model/examples/booking-statuses.html) lists every state and what triggers it. To book a room yourself, see [Book a study room](https://watership.ca/content-model/examples/book-a-study-room.html). **Related concepts** - [hold](https://watership.ca/content-model/examples/hold.html) **Related tasks** - [Book a study room](https://watership.ca/content-model/examples/book-a-study-room.html) **Related reference** - [Concept](https://watership.ca/content-model/types/type-concept.html) - [Booking statuses](https://watership.ca/content-model/examples/booking-statuses.html) --- ## Book a study room Address: https://watership.ca/content-model/examples/book-a-study-room.html Example Task Book a room at any branch for up to 2 hours, up to 14 days ahead. You need a library card and a Library Rooms account, and you must be signed in. Bookings count against your weekly limit of 6 hours. [How holds and check-in work](https://watership.ca/content-model/examples/how-holds-work.html) explains the limit. 1. In the main menu, select Rooms. The [Room schedule](https://watership.ca/content-model/examples/room-schedule.html) opens on today’s date at your home branch. 2. In Branch, select the branch. 3. In Date, select the day. 4. **Optional:** If you need step-free access, select Accessible rooms only. The schedule shows only rooms with step-free access. 5. Select a white slot in the row of the room you want, at the time you want to start. White slots are free. The New booking panel opens, and the slot is held for you for 10 minutes. 6. In Length, select how long you need the room. 7. **Optional:** In Purpose, type a few words about what the room is for. Staff see the purpose. It helps them if they need to move your booking. 8. Select Book. The slot turns blue on the schedule, and a confirmation email arrives with the room, the time, and a link to cancel. Check in within 15 minutes of the start, at the front desk or with Check in in My bookings. Otherwise the booking is released. **Related concepts** - [How holds and check-in work](https://watership.ca/content-model/examples/how-holds-work.html) **Related reference** - [Task](https://watership.ca/content-model/types/type-task.html) - [Booking statuses](https://watership.ca/content-model/examples/booking-statuses.html) **Related information** - [Room schedule](https://watership.ca/content-model/examples/room-schedule.html) - [A free room shows as booked](https://watership.ca/content-model/examples/free-room-shows-booked.html) --- ## Booking statuses Address: https://watership.ca/content-model/examples/booking-statuses.html Example Reference Every status a booking in Library Rooms can have, in the order a booking moves through them. Table 1. Statuses | Status | On the Room schedule | Set when | Can change to | | --- | --- | --- | --- | | Held | Blue to the person holding it; gray to everyone else | Someone selects a free slot. Lasts 10 minutes. | Confirmed, or free again when the hold ends or is discarded | | Confirmed | Blue to the booker; gray to everyone else | The booker selects Book. | Checked in, Released, Canceled | | Checked in | Blue with a check mark to the booker; gray to everyone else | The booker or a staff member checks in, from 10 minutes before the start to 15 minutes after it. | Completed | | Completed | Not shown; past slots are dimmed | The booked time ends after a check-in. | None | | Released | White (free) | Nobody checks in within 15 minutes of the start. | None | | Canceled | White (free) | The booker or a staff member cancels before the start. | None | ### Blocked slots A blocked slot isn’t a booking status. Staff block a slot for an event or maintenance, and it shows gray stripes to everyone until a staff member unblocks it. It has no booker, so it never counts against a weekly limit. ### Effect on the weekly limit | Status | Booked time against the member’s weekly limit | | --- | --- | | Held | Not counted | | Confirmed, Checked in, Completed | Counted | | Released | Counted | | Canceled at least 1 hour before the start | Not counted | | Canceled less than 1 hour before the start | Counted | **Related concepts** - [How holds and check-in work](https://watership.ca/content-model/examples/how-holds-work.html) **Related tasks** - [Book a study room](https://watership.ca/content-model/examples/book-a-study-room.html) **Related reference** - [Reference](https://watership.ca/content-model/types/type-reference.html) **Related information** - [A free room shows as booked](https://watership.ca/content-model/examples/free-room-shows-booked.html) --- ## Room schedule Address: https://watership.ca/content-model/examples/room-schedule.html Example Interface guide The Room schedule shows which rooms at one branch are free on one day, and is where you book them; to open it, select Rooms in the main menu. ### How to get here You can also open the Room schedule from: - A booking confirmation email: select View in schedule to open the schedule on the booking’s branch and date - A room’s details: select See schedule You must be signed in. Staff and branch administrators also see the Staff tools region. ### Top of the screen The filters choose which rooms and which day the grid shows. **Branch** A list of the library’s branches: Central, Riverside, and Hillcrest. The grid shows the rooms at the branch you select. Default Your home branch, as set in your profile. What changes The grid reloads with the rooms at that branch. The date and the other filters stay as they are. Who can see or change it Everyone. **Previous day** An arrow button to the left of Date. Moves the date back one day. The label shows when you point to the arrow. What changes The grid shows the day before. Unavailable when the date is today. Who can see or change it Everyone. **Date** A date picker. The grid shows the day you select. Default Today. What changes The grid shows that day. Members can select up to 14 days ahead; staff, up to 60 days. Who can see or change it Everyone. **Next day** An arrow button to the right of Date. Moves the date forward one day. The label shows when you point to the arrow. What changes The grid shows the day after. Unavailable on the last day you can book. Who can see or change it Everyone. **Room size** A list of sizes: Any size, 1 to 2 people, 3 to 6 people, and 7 or more. The grid shows only rooms of the size you select. Default Any size. What changes Rows for rooms of other sizes are hidden. Their bookings are unaffected. Who can see or change it Everyone. **Accessible rooms only** A checkbox. When it’s selected, the grid shows only rooms with step-free access and an adjustable-height table. Default Cleared. What changes Other rooms are hidden from the grid. Library Rooms remembers the setting on this device. Who can see or change it Everyone. ### Staff tools A row of controls under the filters, headed Staff tools. Only staff and branch administrators see it. **Show names** A switch. Shows the booker’s name and purpose on each booked slot, instead of Booked. Default Off. What changes Names appear on the grid until you turn the switch off or sign out. Nobody else’s view changes. Who can see or change it Staff and branch administrators. Members never see other people’s names. **Book for a member** A button. Opens a search for a member by name or library card number, so you can book in their name. What changes A banner, Booking for and the member’s name, appears above the grid. Bookings you make count against that member’s weekly limit until you select Done in the banner. Who can see or change it Staff and branch administrators. **Block slots** A button. Turns on block mode, in which selecting a free slot blocks it instead of holding it. Selecting the button again turns block mode off. Default Block mode is off. What changes Blocked slots show gray stripes to everyone, and nobody can book them. A slot with a booking can’t be blocked until the booking is canceled. Who can see or change it Staff and branch administrators. ### Center of the screen The grid has one row per room and one column per half hour, from the branch’s opening time to its closing time. **Room names, such as Study room 3** The heading of each row: the room’s name, its capacity, and a wheelchair symbol if it has step-free access. Selecting a name opens the room’s details. Default Rooms are listed in alphabetical order of name. Who can see or change it Everyone. **Times, such as 9:00 a.m.** The heading of each column: the start of each half hour. Default The grid opens scrolled to the branch’s opening time, or, when the date is today, to the current time. **Slots (no label)** Each cell is one half hour in one room. Its color shows its status: - White: free - Gray, marked Booked: booked or held by someone else - Blue: booked or held by you - Gray stripes: blocked by staff Selecting a white slot opens the New booking panel. Selecting a blue slot opens your booking. What changes Selecting a white slot places a [*hold*](https://watership.ca/content-model/examples/hold.html) on it for 10 minutes, and everyone else sees it as booked. [Booking statuses](https://watership.ca/content-model/examples/booking-statuses.html) lists every status. Who can see or change it Members and staff can select free slots and their own bookings. Staff can also open anyone’s booking. **Red line (no label)** A vertical line across the grid that marks the current time. Default Shown only when the date is today. **Key** A link under the grid. Selecting it shows what each slot color means. Default The key is hidden. Who can see or change it Everyone. ### New booking A panel that opens on the right of the grid when you select a free slot. Its heading is New booking, followed by the room and the start time. It closes when you book, when you discard the hold, or when the hold ends. **Held for** A countdown of the time left on your hold, such as Held for 9:41. Default Starts at 10:00. What changes At 0:00 the panel closes and the slot is free for everyone again. Who can see or change it Only the person holding the slot sees it. **Length** A list of lengths in half hours, from the selected slot. Lengths that would run into another booking, or past closing time, are unavailable. Default 1 hour, or 30 minutes if the room is booked in the next slot. What changes The hold extends over the slots you add, and Hours left this week updates. Who can see or change it Everyone booking. Members can select up to 2 hours; staff, up to closing time. **Purpose** An optional text box for a short note about what the room is for, up to 80 characters. Default Empty. What changes The purpose appears in the confirmation email, and on the grid for staff who turn on Show names. Who can see or change it The booker and staff can see it. The booker can change it until the booking starts. **Hours left this week** Shows how much of your 6 hours weekly limit would be left after this booking. You can’t edit it. Default Your remaining hours, minus the selected length. What changes Updates when you change Length. If the booking would take you over the limit, the number turns red and Book is unavailable. Who can see or change it Members see their own hours. Staff booking for a member see that member’s hours; staff booking for themselves don’t see it. **Book** A button. Confirms the booking. Default Available while the hold lasts, if the booking is within the limit. What changes The panel closes, the slot turns blue, the booking is confirmed, and a confirmation email goes to the booker. Who can see or change it Everyone booking. **Discard** A button. Ends the hold without booking. What changes The panel closes, and the slot is free for everyone at once. Who can see or change it The person holding the slot. ### Tasks that use this screen - [Book a study room](https://watership.ca/content-model/examples/book-a-study-room.html) - [Set up a room and take a booking](https://watership.ca/content-model/examples/set-up-a-room.html) **Related reference** - [Interface guide](https://watership.ca/content-model/types/type-interface-guide.html) --- ## Set up a room and take a booking Address: https://watership.ca/content-model/examples/set-up-a-room.html Example Tutorial Add a new room to Library Rooms, make it bookable, and prove it works by booking it yourself. ### What you’ll build By the end, a room at your branch will be on the Room schedule, open for members to book, and you will have booked and canceled it once to check every part works. It takes about 10 minutes. This tutorial is for branch administrators setting up their first room. ### Before you start - A Library Rooms account with the branch administrator role. - A real room at your branch that isn’t in Library Rooms yet. This tutorial calls it Study room 7. - Access to the email inbox for your account, to see the confirmation. ### Steps 1. Select Branch settings in the main menu. You see Branch settings opens on the Rooms tab, with a list of the rooms at your branch. 2. Select Add room. You see The Add room form opens, with empty fields and the Save button unavailable. 3. Fill in the form with these values. | Field | Value | | --- | --- | | Name | `Study room 7` | | Capacity | `4` | | Step-free access | Selected | You see The Save button becomes available. 4. Select Save. You see Study room 7 appears in the list of rooms, with the status Not bookable: no hours. 5. Select Study room 7 in the list. You see The room’s details open on the Hours tab, with the message This room has no opening hours yet. 6. Select Same as branch. A room can’t be booked until it has opening hours. Using the branch’s hours is the usual choice. You see The branch’s opening hours fill in for each day of the week, and the status at the top changes to Bookable. 7. Select Rooms in the main menu. You see The Room schedule opens on today’s date at your branch. Study room 7 has its own row, and every slot in it is white. 8. Select the next white slot in the Study room 7 row. The slot is now held for you, so nobody else can take it while you book. [How holds and check-in work](https://watership.ca/content-model/examples/how-holds-work.html) explains holds. You see The New booking panel opens on the right, and Held for counts down from 10:00. 9. Select Book. You see The panel closes and the slot turns blue. Within a minute, an email titled “Booking confirmed: Study room 7” arrives in your inbox. 10. Select the blue slot. You see Your booking opens, with a Cancel booking button. 11. Select Cancel booking. You see The slot turns white again, and the room is free for members to book. ### What you built Study room 7 is now a bookable room. Members can find it on the Room schedule, filter for it by size and access, and book it. You checked each part the way a member would meet it: the room appeared on the schedule, a slot could be held and booked, the confirmation arrived, and the booking could be canceled. ### Next steps - To see how holds, the weekly limit, and check-in shape members’ bookings, read [How holds and check-in work](https://watership.ca/content-model/examples/how-holds-work.html). - For every control on the screen you just used, see [Room schedule](https://watership.ca/content-model/examples/room-schedule.html). - To book a room for yourself from now on, follow [Book a study room](https://watership.ca/content-model/examples/book-a-study-room.html). **Related reference** - [Tutorial](https://watership.ca/content-model/types/type-tutorial.html) --- ## hold Address: https://watership.ca/content-model/examples/hold.html Example Glossary entry A 10-minute claim on a free slot, placed when you select the slot on the Room schedule, so nobody else can book it while you fill in the booking. Use “hold” only for this short, unconfirmed state. Once you select Book, it’s a booking. Write “the slot is held” or “your hold ends”, not “your hold is confirmed”. ### Other forms - reservation (Don’t use) Readers take it to mean a confirmed booking. **Related concepts** - [How holds and check-in work](https://watership.ca/content-model/examples/how-holds-work.html) **Related reference** - [Glossary entry](https://watership.ca/content-model/types/type-glossary-entry.html) --- ## A free room shows as booked Address: https://watership.ca/content-model/examples/free-room-shows-booked.html Example Troubleshooting If a room is empty but its slot on the Room schedule is gray, one of three things is holding it. Find which one, and you’ll know whether you can book it. You’re at the branch, the room is empty, and the Room schedule shows the current slot for that room in gray, marked Booked, or in gray stripes. ### Someone booked it and hasn’t arrived The booking is waiting for its booker to check in. This is the most likely cause in the first 15 minutes of a slot. ### Wait for the booking to be released 1. Note the time the slot started. 2. Wait until 15 minutes after the start, then refresh the Room schedule. If nobody checked in, the slot is white, and you can book it. ### Someone is holding it Another person selected the slot and is filling in a booking. Holds last 10 minutes, so a slot that turned gray in the last few minutes is probably held. ### Wait for the hold to end Refresh the Room schedule after 10 minutes. If the other person didn’t book, the slot is white again. ### Staff blocked it Gray stripes mean staff have blocked the slot, usually for cleaning, repairs, or a library event. ### Ask at the front desk Branch staff Ask staff at the front desk whether the room can be used. Only staff can unblock a slot. If they do, it turns white and you can book it. ### None of these The slot is still plain gray more than 15 minutes after it started, with no stripes. The schedule may be wrong. ### Report it Select Report a problem at the bottom of any Library Rooms page, and give the branch, the room, and the time. The branch’s staff get the report and reply by email, usually the same day. **Related tasks** - [Book a study room](https://watership.ca/content-model/examples/book-a-study-room.html) **Related reference** - [Troubleshooting](https://watership.ca/content-model/types/type-troubleshooting.html) - [Booking statuses](https://watership.ca/content-model/examples/booking-statuses.html)