Difference between revisions of "Template:Cmd"

From ConTeXt wiki
Jump to navigationJump to search
m (Make examples consistent.)
(Move documentation to /doc page)
Line 1: Line 1:
Link to a command; any text in the second template parameter is comes right after the command, in typewriter font. Passing parameters is optional.
    <nowiki>{{cmd|section|{First section}}}</nowiki>
    <nowiki><tt>[[Command/startalignment|\startalignment]]{First section}</tt></nowiki>
* {{cmd|startalignment}}
* {{cmd|startalignment|[middle]}}
* {{cmd|section|{First section}}}

Revision as of 12:32, 20 July 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)