Difference between revisions of "Template:Cmd"
Jump to navigation
Jump to search
(The {{cmd|command}} template now accepts {{cmd|command|params}}. The params are displayed, only.) |
(It works! (Of course it works, I tested it.) Also: Examples need \startalignment, not \startalign.) |
||
Line 3: | Line 3: | ||
---- | ---- | ||
− | Link to a command; | + | Link to a command; any text in the second template parameter is comes right after the command, in typewriter font. Passing parameters is optional. |
Usage: | Usage: | ||
Line 20: | Line 20: | ||
Display: | Display: | ||
− | * {{cmd| | + | * {{cmd|startalignment}} |
− | * {{cmd| | + | * {{cmd|startalignment|[middle]}} |
* {{cmd|section|{First section}}} | * {{cmd|section|{First section}}} |
Revision as of 12:55, 14 June 2012
[[Command/{{{1}}}|\{{{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.
Usage:
{{cmd|startalign}} {{cmd|startalign|[middle]}} {{cmd|section|{First section}}}
Result:
<tt>[[Command/startalign|\startalign]]</tt> <tt>[[Command/startalign|\startalign]][middle]</tt> <tt>[[Command/startalign|\startalign]]{First section}</tt>
Display:
- \startalignment
- \startalignment[middle]
- \section{First section}