Skip to content

Commit 1be328f

Browse files
authored
Update descriptions of comment-based help keywords (#12089)
1 parent 0633424 commit 1be328f

File tree

5 files changed

+166
-162
lines changed

5 files changed

+166
-162
lines changed

reference/5.1/Microsoft.PowerShell.Core/About/about_Comment_Based_Help.md

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how to write comment-based help content for functions and scripts.
33
Locale: en-US
4-
ms.date: 01/09/2025
4+
ms.date: 05/21/2025
55
no-loc: [.SYNOPSIS, .DESCRIPTION, .PARAMETER, .EXAMPLE, .INPUTS, .OUTPUTS, .NOTES, .LINK, .COMPONENT, .ROLE, .FUNCTIONALITY, .FORWARDHELPTARGETNAME, .FORWARDHELPCATEGORY, .REMOTEHELPRUNSPACE, .EXTERNALHELP]
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help?view=powershell-5.1&WT.mc_id=ps-gethelp
77
schema: 2.0.0
@@ -227,58 +227,54 @@ function Verb-Noun {
227227
}
228228
```
229229

230-
### .EXAMPLE
230+
### `.EXAMPLE`
231231

232232
A sample command that uses the function or script, optionally followed by
233233
sample output and a description. Repeat this keyword for each example.
234234

235-
### .INPUTS
235+
### `.INPUTS`
236236

237237
The .NET types of objects that can be piped to the function or script. You can
238-
also include a description of the input objects.
238+
also include a description of the input objects. Repeat this keyword for each
239+
input type.
239240

240-
### .OUTPUTS
241+
### `.OUTPUTS`
241242

242243
The .NET type of the objects that the cmdlet returns. You can also include a
243-
description of the returned objects.
244+
description of the returned objects. Repeat this keyword for each output type.
244245

245-
### .NOTES
246+
### `.NOTES`
246247

247248
Additional information about the function or script.
248249

249-
### .LINK
250+
### `.LINK`
250251

251-
The name of a related topic. The value appears on the line below the ".LINK"
252-
keyword and must be preceded by a comment symbol `#` or included in the
253-
comment block.
254-
255-
Repeat the `.LINK` keyword for each related topic.
256-
257-
This content appears in the Related Links section of the help topic.
252+
The name of a related topic. Repeat this keyword for each related topic. This
253+
content appears in the Related Links section of the Help topic.
258254

259255
The `.LINK` keyword content can also include a Uniform Resource Identifier
260256
(URI) to an online version of the same help topic. The online version opens
261257
when you use the **Online** parameter of `Get-Help`. The URI must begin with
262-
"http" or "https".
258+
`http` or `https`.
263259

264-
### .COMPONENT
260+
### `.COMPONENT`
265261

266262
The name of the technology or feature that the function or script uses, or to
267263
which it's related. The **Component** parameter of `Get-Help` uses this value
268264
to filter the search results returned by `Get-Help`.
269265

270-
### .ROLE
266+
### `.ROLE`
271267

272268
The name of the user role for the help topic. The **Role** parameter of
273269
`Get-Help` uses this value to filter the search results returned by `Get-Help`.
274270

275-
### .FUNCTIONALITY
271+
### `.FUNCTIONALITY`
276272

277273
The keywords that describe the intended use of the function. The
278274
**Functionality** parameter of `Get-Help` uses this value to filter the search
279275
results returned by `Get-Help`.
280276

281-
### .FORWARDHELPTARGETNAME
277+
### `.FORWARDHELPTARGETNAME <Command-Name>`
282278

283279
Redirects to the help topic for the specified command. You can redirect users
284280
to any help topic, including help content for a function, script, cmdlet, or
@@ -288,7 +284,7 @@ provider.
288284
# .FORWARDHELPTARGETNAME <Command-Name>
289285
```
290286

291-
### .FORWARDHELPCATEGORY
287+
### `.FORWARDHELPCATEGORY`
292288

293289
Specifies the help category of the item in `.FORWARDHELPTARGETNAME`. Valid
294290
values are `Alias`, `Cmdlet`, `HelpFile`, `Function`, `Provider`, `General`,
@@ -299,7 +295,7 @@ this keyword to avoid conflicts when there are commands with the same name.
299295
# .FORWARDHELPCATEGORY <Category>
300296
```
301297

302-
### .REMOTEHELPRUNSPACE
298+
### `.REMOTEHELPRUNSPACE <PSSession-variable>`
303299

304300
Specifies a session that contains the help topic. Enter a variable that
305301
contains a **PSSession** object. This keyword is used by the
@@ -310,7 +306,7 @@ commands.
310306
# .REMOTEHELPRUNSPACE <PSSession-variable>
311307
```
312308

313-
### .EXTERNALHELP
309+
### `.EXTERNALHELP`
314310

315311
Specifies an XML-based help file for the script or function.
316312

reference/7.4/Microsoft.PowerShell.Core/About/about_Comment_Based_Help.md

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how to write comment-based help content for functions and scripts.
33
Locale: en-US
4-
ms.date: 01/09/2025
4+
ms.date: 05/21/2025
55
no-loc: [.SYNOPSIS, .DESCRIPTION, .PARAMETER, .EXAMPLE, .INPUTS, .OUTPUTS, .NOTES, .LINK, .COMPONENT, .ROLE, .FUNCTIONALITY, .FORWARDHELPTARGETNAME, .FORWARDHELPCATEGORY, .REMOTEHELPRUNSPACE, .EXTERNALHELP]
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help?view=powershell-7.4&WT.mc_id=ps-gethelp
77
schema: 2.0.0
@@ -227,58 +227,54 @@ function Verb-Noun {
227227
}
228228
```
229229

230-
### .EXAMPLE
230+
### `.EXAMPLE`
231231

232232
A sample command that uses the function or script, optionally followed by
233233
sample output and a description. Repeat this keyword for each example.
234234

235-
### .INPUTS
235+
### `.INPUTS`
236236

237237
The .NET types of objects that can be piped to the function or script. You can
238-
also include a description of the input objects.
238+
also include a description of the input objects. Repeat this keyword for each
239+
input type.
239240

240-
### .OUTPUTS
241+
### `.OUTPUTS`
241242

242243
The .NET type of the objects that the cmdlet returns. You can also include a
243-
description of the returned objects.
244+
description of the returned objects. Repeat this keyword for each output type.
244245

245-
### .NOTES
246+
### `.NOTES`
246247

247248
Additional information about the function or script.
248249

249-
### .LINK
250+
### `.LINK`
250251

251-
The name of a related topic. The value appears on the line below the ".LINK"
252-
keyword and must be preceded by a comment symbol `#` or included in the
253-
comment block.
254-
255-
Repeat the `.LINK` keyword for each related topic.
256-
257-
This content appears in the Related Links section of the help topic.
252+
The name of a related topic. Repeat this keyword for each related topic. This
253+
content appears in the Related Links section of the Help topic.
258254

259255
The `.LINK` keyword content can also include a Uniform Resource Identifier
260256
(URI) to an online version of the same help topic. The online version opens
261257
when you use the **Online** parameter of `Get-Help`. The URI must begin with
262-
"http" or "https".
258+
`http` or `https`.
263259

264-
### .COMPONENT
260+
### `.COMPONENT`
265261

266262
The name of the technology or feature that the function or script uses, or to
267263
which it's related. The **Component** parameter of `Get-Help` uses this value
268264
to filter the search results returned by `Get-Help`.
269265

270-
### .ROLE
266+
### `.ROLE`
271267

272268
The name of the user role for the help topic. The **Role** parameter of
273269
`Get-Help` uses this value to filter the search results returned by `Get-Help`.
274270

275-
### .FUNCTIONALITY
271+
### `.FUNCTIONALITY`
276272

277273
The keywords that describe the intended use of the function. The
278274
**Functionality** parameter of `Get-Help` uses this value to filter the search
279275
results returned by `Get-Help`.
280276

281-
### .FORWARDHELPTARGETNAME
277+
### `.FORWARDHELPTARGETNAME <Command-Name>`
282278

283279
Redirects to the help topic for the specified command. You can redirect users
284280
to any help topic, including help content for a function, script, cmdlet, or
@@ -288,7 +284,7 @@ provider.
288284
# .FORWARDHELPTARGETNAME <Command-Name>
289285
```
290286

291-
### .FORWARDHELPCATEGORY
287+
### `.FORWARDHELPCATEGORY`
292288

293289
Specifies the help category of the item in `.FORWARDHELPTARGETNAME`. Valid
294290
values are `Alias`, `Cmdlet`, `HelpFile`, `Function`, `Provider`, `General`,
@@ -299,7 +295,7 @@ this keyword to avoid conflicts when there are commands with the same name.
299295
# .FORWARDHELPCATEGORY <Category>
300296
```
301297

302-
### .REMOTEHELPRUNSPACE
298+
### `.REMOTEHELPRUNSPACE <PSSession-variable>`
303299

304300
Specifies a session that contains the help topic. Enter a variable that
305301
contains a **PSSession** object. This keyword is used by the
@@ -310,7 +306,7 @@ commands.
310306
# .REMOTEHELPRUNSPACE <PSSession-variable>
311307
```
312308

313-
### .EXTERNALHELP
309+
### `.EXTERNALHELP`
314310

315311
Specifies an XML-based help file for the script or function.
316312

reference/7.5/Microsoft.PowerShell.Core/About/about_Comment_Based_Help.md

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how to write comment-based help content for functions and scripts.
33
Locale: en-US
4-
ms.date: 01/09/2025
4+
ms.date: 05/21/2025
55
no-loc: [.SYNOPSIS, .DESCRIPTION, .PARAMETER, .EXAMPLE, .INPUTS, .OUTPUTS, .NOTES, .LINK, .COMPONENT, .ROLE, .FUNCTIONALITY, .FORWARDHELPTARGETNAME, .FORWARDHELPCATEGORY, .REMOTEHELPRUNSPACE, .EXTERNALHELP]
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help?view=powershell-7.5&WT.mc_id=ps-gethelp
77
schema: 2.0.0
@@ -227,58 +227,54 @@ function Verb-Noun {
227227
}
228228
```
229229

230-
### .EXAMPLE
230+
### `.EXAMPLE`
231231

232232
A sample command that uses the function or script, optionally followed by
233233
sample output and a description. Repeat this keyword for each example.
234234

235-
### .INPUTS
235+
### `.INPUTS`
236236

237237
The .NET types of objects that can be piped to the function or script. You can
238-
also include a description of the input objects.
238+
also include a description of the input objects. Repeat this keyword for each
239+
input type.
239240

240-
### .OUTPUTS
241+
### `.OUTPUTS`
241242

242243
The .NET type of the objects that the cmdlet returns. You can also include a
243-
description of the returned objects.
244+
description of the returned objects. Repeat this keyword for each output type.
244245

245-
### .NOTES
246+
### `.NOTES`
246247

247248
Additional information about the function or script.
248249

249-
### .LINK
250+
### `.LINK`
250251

251-
The name of a related topic. The value appears on the line below the ".LINK"
252-
keyword and must be preceded by a comment symbol `#` or included in the
253-
comment block.
254-
255-
Repeat the `.LINK` keyword for each related topic.
256-
257-
This content appears in the Related Links section of the help topic.
252+
The name of a related topic. Repeat this keyword for each related topic. This
253+
content appears in the Related Links section of the Help topic.
258254

259255
The `.LINK` keyword content can also include a Uniform Resource Identifier
260256
(URI) to an online version of the same help topic. The online version opens
261257
when you use the **Online** parameter of `Get-Help`. The URI must begin with
262-
"http" or "https".
258+
`http` or `https`.
263259

264-
### .COMPONENT
260+
### `.COMPONENT`
265261

266262
The name of the technology or feature that the function or script uses, or to
267263
which it's related. The **Component** parameter of `Get-Help` uses this value
268264
to filter the search results returned by `Get-Help`.
269265

270-
### .ROLE
266+
### `.ROLE`
271267

272268
The name of the user role for the help topic. The **Role** parameter of
273269
`Get-Help` uses this value to filter the search results returned by `Get-Help`.
274270

275-
### .FUNCTIONALITY
271+
### `.FUNCTIONALITY`
276272

277273
The keywords that describe the intended use of the function. The
278274
**Functionality** parameter of `Get-Help` uses this value to filter the search
279275
results returned by `Get-Help`.
280276

281-
### .FORWARDHELPTARGETNAME
277+
### `.FORWARDHELPTARGETNAME <Command-Name>`
282278

283279
Redirects to the help topic for the specified command. You can redirect users
284280
to any help topic, including help content for a function, script, cmdlet, or
@@ -288,7 +284,7 @@ provider.
288284
# .FORWARDHELPTARGETNAME <Command-Name>
289285
```
290286

291-
### .FORWARDHELPCATEGORY
287+
### `.FORWARDHELPCATEGORY`
292288

293289
Specifies the help category of the item in `.FORWARDHELPTARGETNAME`. Valid
294290
values are `Alias`, `Cmdlet`, `HelpFile`, `Function`, `Provider`, `General`,
@@ -299,7 +295,7 @@ this keyword to avoid conflicts when there are commands with the same name.
299295
# .FORWARDHELPCATEGORY <Category>
300296
```
301297

302-
### .REMOTEHELPRUNSPACE
298+
### `.REMOTEHELPRUNSPACE <PSSession-variable>`
303299

304300
Specifies a session that contains the help topic. Enter a variable that
305301
contains a **PSSession** object. This keyword is used by the
@@ -310,7 +306,7 @@ commands.
310306
# .REMOTEHELPRUNSPACE <PSSession-variable>
311307
```
312308

313-
### .EXTERNALHELP
309+
### `.EXTERNALHELP`
314310

315311
Specifies an XML-based help file for the script or function.
316312

0 commit comments

Comments
 (0)