Template:Command: Difference between revisions

From Unwritten Legends Wiki
Fill out templatedata
Rename parameter to ordinal
 
Line 3: Line 3:
   "description": "Represents user input.",
   "description": "Represents user input.",
   "params": {
   "params": {
     "command": {
     "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": [
     "command"
     "1"
   ]
   ]
}
}

Latest revision as of 22:15, 14 December 2025

Represents user input.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
command1

The user command, optionally including one or more instances of Template:Command/Var.

Example
contents here
Contentrequired
  • {{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.