Difference between revisions of "Template:Cmd"

From ConTeXt wiki
Jump to navigationJump to search
(Created page with "[[Command/{{{#1}}}|\{{{#1}}}]]")
m (moved Template:cmd to Template:Cmd: move to Uppercase)
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#switch: {{{link|yes}}}
| yes      = <tt>[[Command/{{{1}}}|\{{{1}}}]]{{{2|}}}</tt>
| no      = <tt>\{{{1}}}{{{2|}}}</tt>
| #default = '''Error in {{tl|cmd}} template: the only valid values for {{code|link}} are {{code|yes}}, {{code|no}}, or leaving it unspecified.'''

Latest revision as of 14:49, 18 September 2012


[edit] [history] [purge] Documentation icon Template documentation

Link to a ConTeXt command in the command reference. You can mention some parameters while you're at it; and you can mention the command without linking to it by specifying link=no.

When the text passed to one of the template parameters contains an equals sign, you must explicitly address that template parameter by name or number. This will usually happen with template parameter 2, which is used to specify the ConTeXt parameters.




   (A warning)


  • \framed
  • \framed{text}
  • \framed[width=2em]{text}
  • \framed
  • \framed[width=2em]{text}
  • Error in {{cmd}} template: the only valid values for link are yes, no, or leaving it unspecified.