Template:Sclx/doc

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search

Lua error: Internal error: The interpreter exited with status 127. Inspired by {{tlx}} (template link expanded), this template takes a shortcut, converts it to uppercase, and displays it with brackets in a ‎<code>...‎</code> tag. If no prefix (e.g. MOS:, H: or WT:) is added, the WP: alias is added.

Parameters

  • {{sclx|SHORTCUT}}

The template takes one unnamed parameter, SHORTCUT, that can be any uppercase shortcut. If no prefix is included, the WP: alias is added. If SHORTCUT is entered in lowercase, it will be converted to uppercase.

Usage

  • {{sclx|BASIC}} → [[[[Expression error: Unexpected < operator.BASIC]]]]
  • {{sclx|gng}} → [[[[Expression error: Unexpected < operator.GNG]]]]
  • {{sclx|MOS:ENGVAR}} → [[[[Expression error: Unexpected < operator.MOS:ENGVAR]]]]

Limitations

  • Will only work with shortcuts that are uppercase; will not work with mixed case shortcuts, e.g. WP:Source list.

See also

Other formatting templates

{{#lsth:Template:Template-linking_templates|Other formatting templates}}