#title DocBook Conventions ||<>|| This page provides guidance on which Doc''''''Book tags to use in different situations. <> TODO: 1. How to use DocBook tags. 1. When to use a DocBook article and when to use a DocBook book. 1. How to markup screenshots and other graphics, sections, cross-references, tables, etc. == Referring to the User Interface == The standard methods of tagging items in user interfaces (UI) are detailed below. === Buttons === For push buttons, use the tag {{{Button Caption}}}. The caption should match the exact caption used by the button in the UI. The following controls should be referred to when using the {{{}}} tag: * Normal push buttons {{attachment:button.png}} * Toggle buttons === Labels === For labels such as the names of text entries and tabs, use the tag {{{Label Text}}}. The label text should exactly match the text used in the UI, minus the trailing colon (":") if there is one. The following controls should be referred to when using the {{{}}} tag: || '''Control''' || '''Image''' || |||| '''Example''' || || '''Label''' || {{attachment:label.png}} || |||| {{{Find the section named Cursor Blinking.}}} || || '''Text entry''' || {{attachment:label-textentry.png}} || |||| {{{Type the name of the repository into the APT line box.}}} || || '''Checkbox''' || {{attachment:label-checkbox.png}} || |||| {{{Check Vertical Scrolling to enable your touchpad to scroll up and down.}}} || || '''Radio button''' || {{attachment:label-radio.png}} || |||| {{{Ensure that Only notify about available updates is selected.}}} || || '''Drop-down selection box''' || {{attachment:label-dropdown.png}} || |||| {{{Select a country from the list labelled Download from.}}} || || '''Combo box''' || {{attachment:label-combo.png}} || |||| {{{Type an IP address into the Network address box or select a previous address from the list.}}} || || '''Slider''' || {{attachment:label-slider.png}} || |||| {{{Slide Timeout to the right to increase the wait time.}}} || || '''Expander''' || {{attachment:label-expander.png}} || |||| {{{Press Pressure sensitivity to see more options for this brush.}}} || == Referring to Files and Commands == This section describes the tags to be used when referring to files, directories, and commands that the user inputs into the terminal. === Files and Directories === When referring to a file, use {{{/path/to/file}}}. Refer to directories using {{{/path/to/directory}}}. Refer to file extensions using {{{.ext}}}. === Terminal Commands === The commands themselves should be placed in {{{ls /root}}} if the intent is to type the command into a terminal prompt. The tags {{{}}} can also be used outside the {{{}}} tags if appropriate. For example, inside {{{}}} tags. '''Output''' from terminal commands should be wrapped in {{{}}} tags as well. === Configuration Files and Source Code === Source code and configuration file examples should be placed in {{{}}} tags. ---- CategoryDocteam