You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use [section annotations](/syntax/applies.md#section-annotations) immediately after a heading when the entire content between that heading and the next [heading](/syntax/headings.md) of the same and higher level.
@@ -59,12 +58,14 @@ Do **not** use [inline annotations](/syntax/applies.md#inline-annotations) with
The recommended placement of `applies_to` badges in definition lists varies based what part(s) of the list item relate to the badge.
66
65
67
-
**If the badge is relevant to the entire contents of a list item, put it at the end of the term.** This means using an inline annotation at the end of the same line as the term. For example, on the Kibana [Advanced settings](https://www.elastic.co/docs/reference/kibana/advanced-settings#kibana-banners-settings) page, the entire `banners:linkColor` option is only available in Elastic Stack 9.1.0 and later.
66
+
#### If the badge is relevant to the entire contents of a list item, put it at the end of the term [definition-list-item-full]
67
+
68
+
This means using an inline annotation at the end of the same line as the term. For example, on the Kibana [Advanced settings](https://www.elastic.co/docs/reference/kibana/advanced-settings#kibana-banners-settings) page, the entire `banners:linkColor` option is only available in Elastic Stack 9.1.0 and later.
@@ -80,44 +81,64 @@ Do **not** put the `applies_to` badge at the beginning or end of the definition
80
81
::::
81
82
:::
82
83
83
-
**If the badge is only relevant to a portion of the definition, follow the appropriate placement guidelines for the elements used in the definition.** This might include labeling just one of multiple paragraphs or one item in an ordered or unordered list. For example, on the ... page, ...
84
+
#### If the badge is only relevant to a portion of the definition, follow the appropriate placement guidelines for the elements used in the definition [definition-list-item-part]
85
+
86
+
This might include labeling just one of multiple paragraphs or one item in an ordered or unordered list. For example, on the ... page, ...
:alt: Correctly using inline applies_to in a portion of a definition list item
88
91
::::
89
92
90
-
% Reference: TBD
93
+
91
94
### Ordered and unordered lists
92
95
93
96
Reorganize content as needed so the `applies_to` badge is relevant to the entire contents of the list item.
94
97
The recommended placement of the badge varies based on the purpose of the list.
95
98
96
-
**If the purpose of the list is to illustrate the difference between situations, put a badge at the start of each item.**
99
+
#### If the purpose of the list is to illustrate the difference between situations, put a badge at the start of each item [list-compare-applies_to]
100
+
97
101
This could mean distinguishing between deployment types, products, lifecycles, or versions.
102
+
Placing the badge at the beginning of the list item, allows the reader to scan the list for the item that is relevant to them.
103
+
98
104
For example, the [Alerting and action settings in Kibana](https://www.elastic.co/docs/reference/kibana/configuration-reference/alerting-settings) page lists how the default value for the `xpack.actions.preconfigured.<connector-id>.config.defaultModel` setting varies in Serverless/Stack and across versions.
99
105
100
106
::::{image} ./images/list-correct.png
101
107
:screenshot:
102
108
:alt:
103
109
::::
104
110
105
-
**If the list just happens to have one or more items that are only relevant to a specific situation, put the badge at the end of the list item.**
#### If the list just happens to have one or more items that are only relevant to a specific situation, put the badge at the end of the list item [list-other]
112
+
113
+
Placing the badge at the end of the list item maintains the flow of the list without distracting the reader with badges while still making it clear that the content in that list item is only applicable to the specified situation.
114
+
115
+
For example, the [Add filter controls](https://www.elastic.co/docs/explore-analyze/dashboards/add-controls) page lists ways to configure ES|QL controls. Only one of the ways they can be controlled was added for the first time in 9.1.0.
116
+
117
+
::::{image} ./images/list-misc-correct.png
118
+
:screenshot:
119
+
:alt:
120
+
::::
107
121
108
-
<image>
109
122
110
123
% Reference: Slack conversation
111
124
### Tables
112
125
113
126
The recommended placement in tables varies based on what part(s) of the table related to the `applies_to` label.
114
127
115
-
**If the badge is relevant to the entire row, add the badge to the end of the first column.**
128
+
#### If the badge is relevant to the entire row, add the badge to the end of the first column [table-row]
129
+
116
130
For example, a table that contains one setting per row and a new setting is added in 9.1.0.
117
131
118
132
<image>
119
133
120
-
**If the badge is relevant to one cell or part of a cell, add the badge to the end of the line it applies to.**
134
+
#### If the badge is relevant to one cell or part of a cell, add the badge to the cell it applies to [table-cell]
135
+
136
+
For example, a new property is available in 9.1.0 for a setting that already existed before 9.1.0.
137
+
138
+
<image>
139
+
140
+
#### If the badge is relevant to part of a cell, add the badge to the end of the line it applies to [table-cell-part]
141
+
121
142
For example, a new property is available in 9.1.0 for a setting that already existed before 9.1.0.
122
143
123
144
<image>
@@ -129,6 +150,37 @@ If needed, break the contents of the cell into multiple lines using `<br>` to is
129
150
<image>
130
151
:::
131
152
153
+
### Tabs
154
+
155
+
In the future ([elastic/docs-builder#1436](https://github.com/elastic/docs-builder/issues/1436)), tabs will be able to accept `applies_to` information. Until then, if an `applies_to` badge is relevant to the entire tab item, add the badge to the beginning of the content.
156
+
157
+
<image>
158
+
159
+
### Admonitions
160
+
161
+
In the future ([elastic/docs-builder#1436](https://github.com/elastic/docs-builder/issues/1436)), admonitions will be able to accept `applies_to` information. Until then, if an `applies_to` badge is relevant to the entire admonition, add the badge to the beginning of the content.
162
+
163
+
::::{image} ./images/admonition-correct.png
164
+
:screenshot:
165
+
:alt:
166
+
::::
167
+
168
+
### Dropdowns
169
+
170
+
In the future ([elastic/docs-builder#1436](https://github.com/elastic/docs-builder/issues/1436)), dropdowns will be able to accept `applies_to` information. Until then, if an `applies_to` badge is relevant to the entire dropdown, add the badge to the beginning of the content.
171
+
172
+
<image>
173
+
174
+
### Code blocks
175
+
176
+
To specify `applies_to` information for a code block, refer to [](/contribute/cumulative-docs/content-patterns.md#code-block).
177
+
178
+
### Images
179
+
180
+
To specify `applies_to` information for an image, refer to [](/contribute/cumulative-docs/content-patterns.md#screenshot).
181
+
182
+
<!-- ### Stepper -->
183
+
132
184
<!-- ## Scenarios [scenarios]
133
185
134
186
There are several scenarios you will likely run into at some point when contributing to the docs.
0 commit comments