Template:Command: Difference between revisions
Dorandraco (talk | contribs) Fill out templatedata |
Dorandraco (talk | contribs) Rename parameter to ordinal |
||
| Line 3: | Line 3: | ||
"description": "Represents user input.", | "description": "Represents user input.", | ||
"params": { | "params": { | ||
" | "1": { | ||
"label": "command", | "label": "command", | ||
"description": "The user command, optionally including one or more instances of Template:Command/Var.", | "description": "The user command, optionally including one or more instances of Template:Command/Var.", | ||
| Line 12: | Line 12: | ||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
" | "1" | ||
] | ] | ||
} | } | ||
Latest revision as of 22:15, 14 December 2025
Represents user input.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| command | 1 | The user command, optionally including one or more instances of Template:Command/Var.
| Content | required |
{{Command|contents here}}→ contents here
For placeholders, use Template:Command/Var.
{{Command|appraise {{Command/Var|item}}}}→ appraise item
When using placeholders, be sure to explain each in the surrounding text. This improves clarity, especially for users who rely on screen readers.
Example with context
To find the destination, you can use {{Command|pathfind {{Command/Var|PLACE}}}}, where {{Command/Var|PLACE}} is any part of the destination's name (e.g., {{Command|crossroads}} for The Crossroads Inn).
To find the destination, you can use pathfind PLACE, where PLACE is any part of the destination's name. For example, to find the Crossroads Inn, you could type pathfind crossroads.