Review the following guidelines when adding a new glossary entry or a new style guideline entry.
Use the following template for glossary entries:
[discrete] [[<id>]] ==== <term> (<class>) *Description*: <description> *Use it*: <yes/no/with caution> *Incorrect forms*: <incorrect-form> *See also*: xref:<another-term-id>[<another-term>]
Replace | With | Notes |
---|---|---|
|
The term in lowercase. |
If the term consists of more than one word, separate them with a hyphen ("-"). Do not use spaces, capital letters, or special characters (for example, slash "/") in the ID. |
|
The term to be described. |
|
|
The part of speech of the term. |
Possible values: noun, verb, adjective, adverb, pronoun, conjunction, preposition. Use noun for acronyms or abbreviations. Leave the field empty for symbols. |
|
The description of the term. |
Use full sentences with periods. If a term has more than one meaning, use numbers to separate them. For example: (1) <first-meaning>. (2) <second-meaning>. Add information about why we should use the term in this form. If we should not use the term, explain why. Alternatively, explain why the terms listed in the Incorrect forms field are incorrect. |
|
"yes" if the term should be used. "no" if the term should not be used. "with caution" if the term should be used sporadically or only in certain cases. |
Explain why we should or should not use the term in the Description field. |
|
The form of the term that we should not use. |
If there are multiple incorrect forms, separate them with a comma (","). |
|
The ID of another term related to this one. |
Always verify that this ID already exists in the document; otherwise, it will fail to validate if the ID does not exist. Do not include a space between |
|
The term related to this one. |
To link to another document or a web page, replace |
-
Do not combine two terms into one entry.
-
Keep all fields, even if a field is empty. An empty field serves as a placeholder if the field is required later.
-
Use quotation marks on the first occurrence of a term in the Description field. Do not include an acronym in parentheses within the quotation marks; for example, "Asynchronous Transfer Mode" (ATM) is a network technology based on transferring data in cells or packets of a fixed size.
-
If the Description field contains more than one paragraph, only the last paragraph is displayed in the Atom linter’s text. Ensure that word usage advice is contained in the last paragraph.
-
Use single lines with no breaks for each paragraph. In other words, do not hard wrap at 80 characters, for example.
-
If the term has a correct and an incorrect form, always use the correct form instead of
<term>
and list the incorrect form in the Incorrect forms field. Remember to explain why the incorrect form is incorrect in the Description field. -
If you want to add a term that we should not use and that does not have a correct form, use the incorrect version instead of
<term>
and add "no" to the Use it field. Explain why we should not use that term in the Description field. -
If you want to list a term in the Product-specific Conventions chapter that is already included in the General Conventions chapter, add the product-specific meaning to the Description field of the term in General Conventions. Use numbers to separate the meanings. In Product-specific Conventions add the following boilerplate text with a link to the entry in General Conventions:
==== <term> (<class>) See xref:<id-in-general-conventions>[<term>] in the _General Conventions_ chapter.
-
When creating IDs in accordance with the rules described in the template, the resulting IDs might be the same as those for separate entries. For example, the "kernel space" and "kernel-space" entries, or the "kB" and "KB" entries would have the same anchor tag ("kernel-space" and "kb"). If the IDs are not unique, however, it will cause an error in the document.
To avoid this issue, use different IDs:
-
For entries that have different class, append:
-
n
for nouns (kernel-space-n
) -
v
for verbs -
adj
for adjectives (kernel-space-adj
) -
adv
for adverbs -
conj
for conjunctions -
prep
for prepositions
-
-
For different entries with the same name, for example a command and a program or a programming language of the same name, append
command
to the command ID, for exampleceph-command
. -
For entries that differ in spelling, for example "kB" and "KB", preserve the letter case.
-
Use the following template when adding a new style guide entry:
[[<id>]] == <style-item> <description> .Example AsciiDoc ---- <example-asciidoc> ----
Replace | With | Notes |
---|---|---|
|
The style item in lowercase. |
If the style item consists of more than one word, separate them with a hyphen ("-"). Do not use spaces, capital letters, or special characters (for example, slash "/") in the ID. |
|
The style item to be described. |
|
|
The description of the style guidance. |
Use full sentences with periods. If applicable, add information about why this guidance is recommended. |
|
An AsciiDoc example. |
Only add an AsciiDoc example if it is applicable to the style guidance. |
-
Do not combine multiple guidelines into one entry.
-
Do not add style entries that duplicate guidance already covered by The IBM Style Guide.
-
Avoid linking to other resources to provide the style guidance. Incorporate the guidance from other resources into the entry description.
-
Use single lines with no breaks for each paragraph. In other words, do not hard wrap at 80 characters, for example.