Template:Command: Difference between revisions

From Unwritten Legends Wiki
Test templatedata
Fill out templatedata
Line 1: Line 1:
<includeonly><kbd>{{{1}}}</kbd></includeonly><noinclude>Represents user input.
<includeonly><kbd>{{{1}}}</kbd></includeonly><noinclude><templatedata>
{
  "description": "Represents user input.",
  "params": {
    "command": {
      "label": "command",
      "description": "The user command, optionally including one or more instances of Template:Command/Var.",
      "required": true,
      "example": "contents here",
      "type": "content"
    }
  },
  "paramOrder": [
    "command"
  ]
}
</templatedata>


*<code><nowiki>{{Command|contents here}}</nowiki></code> → {{Command|contents here}}
*<code><nowiki>{{Command|contents here}}</nowiki></code> → {{Command|contents here}}
Line 14: Line 30:


To find the destination, you can use {{Command|pathfind {{Command/Var|PLACE}}}}, where {{Command/Var|PLACE}} is any part of the destination's name. For example, to find the Crossroads Inn, you could type {{Command|pathfind crossroads}}.
To find the destination, you can use {{Command|pathfind {{Command/Var|PLACE}}}}, where {{Command/Var|PLACE}} is any part of the destination's name. For example, to find the Crossroads Inn, you could type {{Command|pathfind crossroads}}.
 
</noinclude>
<templatedata>
{
"description": "Represents user input."
}
</templatedata>

Revision as of 22:13, 14 December 2025

Represents user input.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
commandcommand

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.