Template:Tcnc/doc

From Angelina Jordan Wiki
Revision as of 16:44, 25 October 2020 by Dcljr (talk | contribs) (+ cat:tdoc)
This is a subpage documenting Template:Tcnc. To change the template, edit that page; to change the template's documentation (seen below), edit this one.

Documentation

This template is used to display the wiki markup that would form a link to a template (i.e., using double curly-braces: {{}}). Unlike Template:Tl and Template:Tlnc, the name of the template is not linked to the template page. This should only be used on talk pages or in template documentation (or help pages, user pages, etc.), not in articles. If no input is given to the template, it uses its own name, "tcnc" (see examples below).

This template displays the sample template call as plain text ( {{like this}} ). To style the template call as code ({{like this}}), use Template:Tc.

The name of the template is based on the phrase "template call no code".

Usage

  • {{tcnc|template name}}
  • {{tcnc|template name|parameter}}
  • {{tcnc|template name|parameter1{{!}}parameter2…}}

The third form shows how to display more than one parameter. Any number of them can be separated by {{!}}. (Even though treating the first parameter differently from the rest is not actually necessary for this template, since it doesn't form a wikilink, the syntax of Template:Tl and Template:Tlnc has been retained here for consistency and therefore ease of learning/remembering how to use all these similar templates.)

Examples

  • {{tcnc}} ⇒ {{template call}}
  • {{tcnc|noop}} ⇒ {{noop}}
  • {{tcnc|code|span}} ⇒ {{code|span}}
  • {{tcnc|abbr|NOK{{!}}Norwegian krone}} ⇒ {{abbr|NOK|Norwegian krone}}

See also

  • {{tc}} — same as this template, but styles the sample template call as code