Template:Code/doc

From Angelina Jordan Wiki
Revision as of 14:10, 28 October 2020 by Dcljr (talk | contribs) (ws)
This is a subpage documenting Template:Code. To change the template, edit that page; to change the template's documentation (seen below), edit this one.

Documentation

This template wraps its input in a code element. It is intended to be used for simple cases where writing <code>…</code> would be unnecessarily tedious. The template does not complain about missing input, but if no input is provided a small "empty" code box is generated, as seen above (which can look weird and confusing).

Usage

  • {{code|text}}

Examples

  • {{code|style}}style
  • {{code|style{{=}}"color:red"}}style="color:red"